From 77074fa3b0a6e537bdde5ee03cad9fa72761bc37 Mon Sep 17 00:00:00 2001 From: Elliott Sprehn Date: Thu, 23 Oct 2014 16:26:34 -0700 Subject: [PATCH] Remove remaining AX code. R=abarth@chromium.org Review URL: https://codereview.chromium.org/673993002 --- engine/public/web/WebAXEnums.h | 226 ----------- engine/public/web/WebAXObject.h | 223 ----------- engine/public/web/WebDocument.h | 1 - engine/public/web/WebFrameClient.h | 7 - engine/public/web/WebView.h | 1 - engine/public/web/WebViewClient.h | 9 - engine/web/BUILD.gn | 1 - engine/web/ChromeClientImpl.cpp | 1 - engine/web/WebAXObject.cpp | 585 ----------------------------- engine/web/WebDocument.cpp | 1 - engine/web/WebViewImpl.cpp | 1 - 11 files changed, 1056 deletions(-) delete mode 100644 engine/public/web/WebAXEnums.h delete mode 100644 engine/public/web/WebAXObject.h delete mode 100644 engine/web/WebAXObject.cpp diff --git a/engine/public/web/WebAXEnums.h b/engine/public/web/WebAXEnums.h deleted file mode 100644 index 9b854a9f3..000000000 --- a/engine/public/web/WebAXEnums.h +++ /dev/null @@ -1,226 +0,0 @@ -/* - * Copyright (C) 2013 Google Inc. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following disclaimer - * in the documentation and/or other materials provided with the - * distribution. - * * Neither the name of Google Inc. nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef WebAXEnums_h -#define WebAXEnums_h - -namespace blink { - -// Accessibility events sent from Blink to the embedder. -// These values must match blink::AXObjectCache::AXNotification values. -// Enforced in AssertMatchingEnums.cpp. -enum WebAXEvent { - WebAXEventActiveDescendantChanged, - WebAXEventAlert, - WebAXEventAriaAttributeChanged, - WebAXEventAutocorrectionOccured, - WebAXEventBlur, - WebAXEventCheckedStateChanged, - WebAXEventChildrenChanged, - WebAXEventFocus, - WebAXEventHide, - WebAXEventInvalidStatusChanged, - WebAXEventLayoutComplete, - WebAXEventLiveRegionChanged, - WebAXEventLoadComplete, - WebAXEventLocationChanged, - WebAXEventMenuListItemSelected, - WebAXEventMenuListValueChanged, - WebAXEventRowCollapsed, - WebAXEventRowCountChanged, - WebAXEventRowExpanded, - WebAXEventScrollPositionChanged, - WebAXEventScrolledToAnchor, - WebAXEventSelectedChildrenChanged, - WebAXEventSelectedTextChanged, - WebAXEventShow, - WebAXEventTextChanged, - WebAXEventTextInserted, - WebAXEventTextRemoved, - WebAXEventValueChanged -}; - -// Accessibility roles. -// These values must match blink::AccessibilityRole values. -// Enforced in AssertMatchingEnums.cpp. -enum WebAXRole { - WebAXRoleAlertDialog = 1, - WebAXRoleAlert, - WebAXRoleAnnotation, - WebAXRoleApplication, - WebAXRoleArticle, - WebAXRoleBanner, - WebAXRoleBrowser, - WebAXRoleBusyIndicator, - WebAXRoleButton, - WebAXRoleCanvas, - WebAXRoleCell, - WebAXRoleCheckBox, - WebAXRoleColorWell, - WebAXRoleColumnHeader, - WebAXRoleColumn, - WebAXRoleComboBox, - WebAXRoleComplementary, - WebAXRoleContentInfo, - WebAXRoleDefinition, - WebAXRoleDescriptionListDetail, - WebAXRoleDescriptionListTerm, - WebAXRoleDialog, - WebAXRoleDirectory, - WebAXRoleDisclosureTriangle, - WebAXRoleDiv, - WebAXRoleDocument, - WebAXRoleDrawer, - WebAXRoleEditableText, - WebAXRoleEmbeddedObject, - WebAXRoleFigcaption, - WebAXRoleFigure, - WebAXRoleFooter, - WebAXRoleForm, - WebAXRoleGrid, - WebAXRoleGroup, - WebAXRoleGrowArea, - WebAXRoleHeading, - WebAXRoleHelpTag, - WebAXRoleHorizontalRule, - WebAXRoleIframe, - WebAXRoleIgnored, - WebAXRoleImageMapLink, - WebAXRoleImageMap, - WebAXRoleImage, - WebAXRoleIncrementor, - WebAXRoleInlineTextBox, - WebAXRoleLabel, - WebAXRoleLegend, - WebAXRoleLink, - WebAXRoleListBoxOption, - WebAXRoleListBox, - WebAXRoleListItem, - WebAXRoleListMarker, - WebAXRoleList, - WebAXRoleLog, - WebAXRoleMain, - WebAXRoleMathElement, - WebAXRoleMath, - WebAXRoleMatte, - WebAXRoleMenuBar, - WebAXRoleMenuButton, - WebAXRoleMenuItem, - WebAXRoleMenuListOption, - WebAXRoleMenuListPopup, - WebAXRoleMenu, - WebAXRoleNavigation, - WebAXRoleNote, - WebAXRoleOutline, - WebAXRoleParagraph, - WebAXRolePopUpButton, - WebAXRolePresentational, - WebAXRoleProgressIndicator, - WebAXRoleRadioButton, - WebAXRoleRadioGroup, - WebAXRoleRegion, - WebAXRoleRootWebArea, - WebAXRoleRowHeader, - WebAXRoleRow, - WebAXRoleRulerMarker, - WebAXRoleRuler, - WebAXRoleSVGRoot, - WebAXRoleScrollArea, - WebAXRoleScrollBar, - WebAXRoleSeamlessWebArea, - WebAXRoleSearch, - WebAXRoleSheet, - WebAXRoleSlider, - WebAXRoleSliderThumb, - WebAXRoleSpinButtonPart, - WebAXRoleSpinButton, - WebAXRoleSplitGroup, - WebAXRoleSplitter, - WebAXRoleStaticText, - WebAXRoleStatus, - WebAXRoleSystemWide, - WebAXRoleTabGroup, - WebAXRoleTabList, - WebAXRoleTabPanel, - WebAXRoleTab, - WebAXRoleTableHeaderContainer, - WebAXRoleTable, - WebAXRoleTextArea, - WebAXRoleTextField, - WebAXRoleTimer, - WebAXRoleToggleButton, - WebAXRoleToolbar, - WebAXRoleTreeGrid, - WebAXRoleTreeItem, - WebAXRoleTree, - WebAXRoleUnknown, - WebAXRoleUserInterfaceTooltip, - WebAXRoleValueIndicator, - WebAXRoleWebArea, - WebAXRoleWindow, -}; - -// Accessibility states, used as a bitmask. -enum WebAXState { - WebAXStateBusy, - WebAXStateChecked, - WebAXStateCollapsed, - WebAXStateEnabled, - WebAXStateExpanded, - WebAXStateFocusable, - WebAXStateFocused, - WebAXStateHaspopup, - WebAXStateHovered, - WebAXStateIndeterminate, - WebAXStateInvisible, - WebAXStateLinked, - WebAXStateMultiselectable, - WebAXStateOffscreen, - WebAXStatePressed, - WebAXStateProtected, - WebAXStateReadonly, - WebAXStateRequired, - WebAXStateSelectable, - WebAXStateSelected, - WebAXStateVertical, - WebAXStateVisited, -}; - -// Text direction, only used for role=WebAXRoleInlineTextBox. -enum WebAXTextDirection { - WebAXTextDirectionLR, - WebAXTextDirectionRL, - WebAXTextDirectionTB, - WebAXTextDirectionBT -}; - -} // namespace blink - -#endif diff --git a/engine/public/web/WebAXObject.h b/engine/public/web/WebAXObject.h deleted file mode 100644 index 4d96c8f2c..000000000 --- a/engine/public/web/WebAXObject.h +++ /dev/null @@ -1,223 +0,0 @@ -/* - * Copyright (C) 2009 Google Inc. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following disclaimer - * in the documentation and/or other materials provided with the - * distribution. - * * Neither the name of Google Inc. nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef WebAXObject_h -#define WebAXObject_h - -#include "../platform/WebCommon.h" -#include "../platform/WebPrivatePtr.h" -#include "../platform/WebVector.h" -#include "WebAXEnums.h" - -#if BLINK_IMPLEMENTATION -namespace WTF { template class PassRefPtr; } -#endif - -namespace blink { - -class AXObject; -class WebNode; -class WebDocument; -class WebString; -class WebURL; -struct WebPoint; -struct WebRect; - -// A container for passing around a reference to AXObject. -class WebAXObject { -public: - ~WebAXObject() { reset(); } - - WebAXObject() { } - WebAXObject(const WebAXObject& o) { assign(o); } - WebAXObject& operator=(const WebAXObject& o) - { - assign(o); - return *this; - } - - BLINK_EXPORT void reset(); - BLINK_EXPORT void assign(const WebAXObject&); - BLINK_EXPORT bool equals(const WebAXObject&) const; - - bool isNull() const { return m_private.isNull(); } - // isDetached also checks for null, so it's safe to just call isDetached. - BLINK_EXPORT bool isDetached() const; - - BLINK_EXPORT int axID() const; - - // Update layout on the underlying tree, and return true if this object is - // still valid (not detached). Note that calling this method - // can cause other WebAXObjects to become invalid, too, - // so always call isDetached if updateBackingStoreAndCheckValidity - // has been called on any object, or if any other WebCore code has run. - BLINK_EXPORT bool updateLayoutAndCheckValidity(); - - // FIXME: Deprecated - remove once callers use updateLayoutAndCheckValidity, instead. - BLINK_EXPORT bool updateBackingStoreAndCheckValidity(); - - BLINK_EXPORT WebString accessibilityDescription() const; - BLINK_EXPORT unsigned childCount() const; - - BLINK_EXPORT WebAXObject childAt(unsigned) const; - BLINK_EXPORT WebAXObject parentObject() const; - - BLINK_EXPORT bool isAnchor() const; - BLINK_EXPORT bool isAriaReadOnly() const; - BLINK_EXPORT bool isButtonStateMixed() const; - BLINK_EXPORT bool isChecked() const; - BLINK_EXPORT bool isClickable() const; - BLINK_EXPORT bool isCollapsed() const; - BLINK_EXPORT bool isControl() const; - BLINK_EXPORT bool isEnabled() const; - BLINK_EXPORT bool isFocused() const; - BLINK_EXPORT bool isHovered() const; - BLINK_EXPORT bool isIndeterminate() const; - BLINK_EXPORT bool isLinked() const; - BLINK_EXPORT bool isLoaded() const; - BLINK_EXPORT bool isMultiSelectable() const; - BLINK_EXPORT bool isOffScreen() const; - BLINK_EXPORT bool isPasswordField() const; - BLINK_EXPORT bool isPressed() const; - BLINK_EXPORT bool isReadOnly() const; - BLINK_EXPORT bool isRequired() const; - BLINK_EXPORT bool isSelected() const; - BLINK_EXPORT bool isSelectedOptionActive() const; - BLINK_EXPORT bool isVertical() const; - BLINK_EXPORT bool isVisible() const; - BLINK_EXPORT bool isVisited() const; - - BLINK_EXPORT WebString accessKey() const; - BLINK_EXPORT WebAXObject ariaActiveDescendant() const; - BLINK_EXPORT bool ariaControls(WebVector& controlsElements) const; - BLINK_EXPORT bool ariaDescribedby(WebVector& describedbyElements) const; - BLINK_EXPORT bool ariaFlowTo(WebVector& flowToElements) const; - BLINK_EXPORT bool ariaHasPopup() const; - BLINK_EXPORT bool ariaLabelledby(WebVector& labelledbyElements) const; - BLINK_EXPORT bool ariaLiveRegionAtomic() const; - BLINK_EXPORT bool ariaLiveRegionBusy() const; - BLINK_EXPORT WebString ariaLiveRegionRelevant() const; - BLINK_EXPORT WebString ariaLiveRegionStatus() const; - BLINK_EXPORT bool ariaOwns(WebVector& ownsElements) const; - BLINK_EXPORT WebRect boundingBoxRect() const; - BLINK_EXPORT bool canvasHasFallbackContent() const; - BLINK_EXPORT WebPoint clickPoint() const; - BLINK_EXPORT void colorValue(int& r, int& g, int& b) const; - BLINK_EXPORT double estimatedLoadingProgress() const; - BLINK_EXPORT WebString helpText() const; - BLINK_EXPORT int headingLevel() const; - BLINK_EXPORT int hierarchicalLevel() const; - BLINK_EXPORT WebAXObject hitTest(const WebPoint&) const; - BLINK_EXPORT WebString keyboardShortcut() const; - BLINK_EXPORT WebAXRole role() const; - BLINK_EXPORT unsigned selectionEnd() const; - BLINK_EXPORT unsigned selectionEndLineNumber() const; - BLINK_EXPORT unsigned selectionStart() const; - BLINK_EXPORT unsigned selectionStartLineNumber() const; - BLINK_EXPORT WebString stringValue() const; - BLINK_EXPORT WebString title() const; - BLINK_EXPORT WebAXObject titleUIElement() const; - BLINK_EXPORT WebURL url() const; - - BLINK_EXPORT bool supportsRangeValue() const; - BLINK_EXPORT WebString valueDescription() const; - BLINK_EXPORT float valueForRange() const; - BLINK_EXPORT float maxValueForRange() const; - BLINK_EXPORT float minValueForRange() const; - - BLINK_EXPORT WebNode node() const; - BLINK_EXPORT WebDocument document() const; - BLINK_EXPORT bool hasComputedStyle() const; - BLINK_EXPORT WebString computedStyleDisplay() const; - BLINK_EXPORT bool accessibilityIsIgnored() const; - BLINK_EXPORT bool lineBreaks(WebVector&) const; - - // Actions - BLINK_EXPORT WebString actionVerb() const; // The verb corresponding to performDefaultAction. - BLINK_EXPORT bool canDecrement() const; - BLINK_EXPORT bool canIncrement() const; - BLINK_EXPORT bool canPress() const; - BLINK_EXPORT bool canSetFocusAttribute() const; - BLINK_EXPORT bool canSetSelectedAttribute() const; - BLINK_EXPORT bool canSetValueAttribute() const; - BLINK_EXPORT bool performDefaultAction() const; - BLINK_EXPORT bool press() const; - BLINK_EXPORT bool increment() const; - BLINK_EXPORT bool decrement() const; - BLINK_EXPORT void setFocused(bool) const; - BLINK_EXPORT void setSelectedTextRange(int selectionStart, int selectionEnd) const; - - // For a table - BLINK_EXPORT unsigned columnCount() const; - BLINK_EXPORT unsigned rowCount() const; - BLINK_EXPORT WebAXObject cellForColumnAndRow(unsigned column, unsigned row) const; - BLINK_EXPORT WebAXObject headerContainerObject() const; - BLINK_EXPORT WebAXObject rowAtIndex(unsigned rowIndex) const; - BLINK_EXPORT WebAXObject columnAtIndex(unsigned columnIndex) const; - - // For a table row - BLINK_EXPORT unsigned rowIndex() const; - BLINK_EXPORT WebAXObject rowHeader() const; - - // For a table column - BLINK_EXPORT unsigned columnIndex() const; - BLINK_EXPORT WebAXObject columnHeader() const; - - // For a table cell - BLINK_EXPORT unsigned cellColumnIndex() const; - BLINK_EXPORT unsigned cellColumnSpan() const; - BLINK_EXPORT unsigned cellRowIndex() const; - BLINK_EXPORT unsigned cellRowSpan() const; - - // For an inline text box. - BLINK_EXPORT WebAXTextDirection textDirection() const; - BLINK_EXPORT void characterOffsets(WebVector&) const; - BLINK_EXPORT void wordBoundaries(WebVector& starts, WebVector& ends) const; - - // Make this object visible by scrolling as many nested scrollable views as needed. - BLINK_EXPORT void scrollToMakeVisible() const; - // Same, but if the whole object can't be made visible, try for this subrect, in local coordinates. - BLINK_EXPORT void scrollToMakeVisibleWithSubFocus(const WebRect&) const; - // Scroll this object to a given point in global coordinates of the top-level window. - BLINK_EXPORT void scrollToGlobalPoint(const WebPoint&) const; - -#if BLINK_IMPLEMENTATION - WebAXObject(const WTF::PassRefPtr&); - WebAXObject& operator=(const WTF::PassRefPtr&); - operator WTF::PassRefPtr() const; -#endif - -private: - WebPrivatePtr m_private; -}; - -} // namespace blink - -#endif diff --git a/engine/public/web/WebDocument.h b/engine/public/web/WebDocument.h index 6f6122d65..0354fc7b6 100644 --- a/engine/public/web/WebDocument.h +++ b/engine/public/web/WebDocument.h @@ -50,7 +50,6 @@ namespace blink { class Document; class DocumentType; -class WebAXObject; class WebDocumentType; class WebElement; class WebString; diff --git a/engine/public/web/WebFrameClient.h b/engine/public/web/WebFrameClient.h index 693fc67f8..a17667171 100644 --- a/engine/public/web/WebFrameClient.h +++ b/engine/public/web/WebFrameClient.h @@ -32,7 +32,6 @@ #define WebFrameClient_h #include "../platform/WebColor.h" -#include "WebAXObject.h" #include "WebFrame.h" #include "WebIconURL.h" #include "WebNavigationPolicy.h" @@ -265,12 +264,6 @@ public: // Send initial drawing parameters to a child frame that is being rendered out of process. virtual void initializeChildFrame(const WebRect& frameRect, float scaleFactor) { } - - // Accessibility ------------------------------------------------------- - - // Notifies embedder about an accessibility event. - virtual void postAccessibilityEvent(const WebAXObject&, WebAXEvent) { } - protected: virtual ~WebFrameClient() { } }; diff --git a/engine/public/web/WebView.h b/engine/public/web/WebView.h index fcadb6963..34e96a50f 100644 --- a/engine/public/web/WebView.h +++ b/engine/public/web/WebView.h @@ -40,7 +40,6 @@ namespace blink { -class WebAXObject; class WebFrame; class WebFrameClient; class WebGraphicsContext3D; diff --git a/engine/public/web/WebViewClient.h b/engine/public/web/WebViewClient.h index 649549f0e..8e98aba6d 100644 --- a/engine/public/web/WebViewClient.h +++ b/engine/public/web/WebViewClient.h @@ -33,7 +33,6 @@ #include "../platform/WebGraphicsContext3D.h" #include "../platform/WebString.h" -#include "WebAXEnums.h" #include "WebContentDetectionResult.h" #include "WebDragOperation.h" #include "WebFrame.h" @@ -45,7 +44,6 @@ namespace blink { -class WebAXObject; class WebCompositorOutputSurface; class WebElement; class WebGestureEvent; @@ -115,13 +113,6 @@ public: // Returns comma separated list of accept languages. virtual WebString acceptLanguages() { return WebString(); } - - // Accessibility ------------------------------------------------------- - - // Notifies embedder about an accessibility event. - virtual void postAccessibilityEvent(const WebAXObject&, WebAXEvent) { } - - // Developer tools ----------------------------------------------------- // Called to notify the client that the inspector's settings were diff --git a/engine/web/BUILD.gn b/engine/web/BUILD.gn index d73d3f369..bb5eceb2d 100644 --- a/engine/web/BUILD.gn +++ b/engine/web/BUILD.gn @@ -62,7 +62,6 @@ component("web") { "SpellCheckerClientImpl.h", "ViewportAnchor.cpp", "ViewportAnchor.h", - "WebAXObject.cpp", "WebArrayBufferConverter.cpp", "WebArrayBufferView.cpp", "WebCache.cpp", diff --git a/engine/web/ChromeClientImpl.cpp b/engine/web/ChromeClientImpl.cpp index 7075c9704..b11b97057 100644 --- a/engine/web/ChromeClientImpl.cpp +++ b/engine/web/ChromeClientImpl.cpp @@ -58,7 +58,6 @@ #include "public/platform/WebRect.h" #include "public/platform/WebURLRequest.h" #include "public/web/Sky.h" -#include "public/web/WebAXObject.h" #include "public/web/WebColorSuggestion.h" #include "public/web/WebConsoleMessage.h" #include "public/web/WebFrameClient.h" diff --git a/engine/web/WebAXObject.cpp b/engine/web/WebAXObject.cpp deleted file mode 100644 index 775eca2b3..000000000 --- a/engine/web/WebAXObject.cpp +++ /dev/null @@ -1,585 +0,0 @@ -/* - * Copyright (C) 2009 Google Inc. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following disclaimer - * in the documentation and/or other materials provided with the - * distribution. - * * Neither the name of Google Inc. nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include "config.h" -#include "public/web/WebAXObject.h" - -#include "public/platform/WebPoint.h" -#include "public/platform/WebRect.h" -#include "public/platform/WebString.h" -#include "public/platform/WebURL.h" -#include "public/web/WebDocument.h" -#include "public/web/WebNode.h" - -using namespace blink; - -namespace blink { - -void WebAXObject::reset() -{ -} - -void WebAXObject::assign(const WebAXObject& other) -{ -} - -bool WebAXObject::equals(const WebAXObject& n) const -{ - return false; -} - -bool WebAXObject::isDetached() const -{ - return true; -} - -int WebAXObject::axID() const -{ - return -1; -} - -bool WebAXObject::updateLayoutAndCheckValidity() -{ - return false; -} - -bool WebAXObject::updateBackingStoreAndCheckValidity() -{ - return false; -} - -WebString WebAXObject::accessibilityDescription() const -{ - return WebString(); -} - -WebString WebAXObject::actionVerb() const -{ - return WebString(); -} - -bool WebAXObject::canDecrement() const -{ - return false; -} - -bool WebAXObject::canIncrement() const -{ - return false; -} - -bool WebAXObject::canPress() const -{ - return false; -} - -bool WebAXObject::canSetFocusAttribute() const -{ - return false; -} - -bool WebAXObject::canSetValueAttribute() const -{ - return false; -} - -unsigned WebAXObject::childCount() const -{ - return 0; -} - -WebAXObject WebAXObject::childAt(unsigned index) const -{ - return WebAXObject(); -} - -WebAXObject WebAXObject::parentObject() const -{ - return WebAXObject(); -} - -bool WebAXObject::canSetSelectedAttribute() const -{ - return 0; -} - -bool WebAXObject::isAnchor() const -{ - return 0; -} - -bool WebAXObject::isAriaReadOnly() const -{ - return 0; -} - -bool WebAXObject::isButtonStateMixed() const -{ - return 0; -} - -bool WebAXObject::isChecked() const -{ - return 0; -} - -bool WebAXObject::isClickable() const -{ - return 0; -} - -bool WebAXObject::isCollapsed() const -{ - return 0; -} - -bool WebAXObject::isControl() const -{ - return 0; -} - -bool WebAXObject::isEnabled() const -{ - return 0; -} - -bool WebAXObject::isFocused() const -{ - return 0; -} - -bool WebAXObject::isHovered() const -{ - return 0; -} - -bool WebAXObject::isIndeterminate() const -{ - return 0; -} - -bool WebAXObject::isLinked() const -{ - return 0; -} - -bool WebAXObject::isLoaded() const -{ - return 0; -} - -bool WebAXObject::isMultiSelectable() const -{ - return 0; -} - -bool WebAXObject::isOffScreen() const -{ - return 0; -} - -bool WebAXObject::isPasswordField() const -{ - return 0; -} - -bool WebAXObject::isPressed() const -{ - return 0; -} - -bool WebAXObject::isReadOnly() const -{ - return 0; -} - -bool WebAXObject::isRequired() const -{ - return 0; -} - -bool WebAXObject::isSelected() const -{ - return 0; -} - -bool WebAXObject::isSelectedOptionActive() const -{ - return false; -} - -bool WebAXObject::isVertical() const -{ - return 0; -} - -bool WebAXObject::isVisible() const -{ - return 0; -} - -bool WebAXObject::isVisited() const -{ - return 0; -} - -WebString WebAXObject::accessKey() const -{ - return WebString(); -} - -WebAXObject WebAXObject::ariaActiveDescendant() const -{ - return WebAXObject(); -} - -bool WebAXObject::ariaControls(WebVector& controlsElements) const -{ - return false; -} - -bool WebAXObject::ariaDescribedby(WebVector& describedbyElements) const -{ - return false; -} - -bool WebAXObject::ariaHasPopup() const -{ - return 0; -} - -bool WebAXObject::ariaFlowTo(WebVector& flowToElements) const -{ - return false; -} - -bool WebAXObject::ariaLabelledby(WebVector& labelledbyElements) const -{ - return false; -} - -bool WebAXObject::ariaLiveRegionAtomic() const -{ - return 0; -} - -bool WebAXObject::ariaLiveRegionBusy() const -{ - return 0; -} - -WebString WebAXObject::ariaLiveRegionRelevant() const -{ - return WebString(); -} - -WebString WebAXObject::ariaLiveRegionStatus() const -{ - return WebString(); -} - -bool WebAXObject::ariaOwns(WebVector& ownsElements) const -{ - return false; -} - -WebRect WebAXObject::boundingBoxRect() const -{ - return WebRect(); -} - -bool WebAXObject::canvasHasFallbackContent() const -{ - return false; -} - -WebPoint WebAXObject::clickPoint() const -{ - return WebPoint(); -} - -void WebAXObject::colorValue(int& r, int& g, int& b) const -{ -} - -double WebAXObject::estimatedLoadingProgress() const -{ - return 0.0; -} - -WebString WebAXObject::helpText() const -{ - return WebString(); -} - -int WebAXObject::headingLevel() const -{ - return 0; -} - -int WebAXObject::hierarchicalLevel() const -{ - return 0; -} - -WebAXObject WebAXObject::hitTest(const WebPoint& point) const -{ - return WebAXObject(); -} - -WebString WebAXObject::keyboardShortcut() const -{ - return WebString(); -} - -bool WebAXObject::performDefaultAction() const -{ - return false; -} - -bool WebAXObject::increment() const -{ - return false; -} - -bool WebAXObject::decrement() const -{ - return false; -} - -bool WebAXObject::press() const -{ - return false; -} - -WebAXRole WebAXObject::role() const -{ - return WebAXRoleUnknown; -} - -unsigned WebAXObject::selectionEnd() const -{ - return 0; -} - -unsigned WebAXObject::selectionStart() const -{ - return 0; -} - -unsigned WebAXObject::selectionEndLineNumber() const -{ - return 0; -} - -unsigned WebAXObject::selectionStartLineNumber() const -{ - return 0; -} - -void WebAXObject::setFocused(bool on) const -{ -} - -void WebAXObject::setSelectedTextRange(int selectionStart, int selectionEnd) const -{ -} - -WebString WebAXObject::stringValue() const -{ - return WebString(); -} - -WebString WebAXObject::title() const -{ - return WebString(); -} - -WebAXObject WebAXObject::titleUIElement() const -{ - return WebAXObject(); -} - -WebURL WebAXObject::url() const -{ - return WebURL(); -} - -bool WebAXObject::supportsRangeValue() const -{ - return false; -} - -WebString WebAXObject::valueDescription() const -{ - return WebString(); -} - -float WebAXObject::valueForRange() const -{ - return 0.0; -} - -float WebAXObject::maxValueForRange() const -{ - return 0.0; -} - -float WebAXObject::minValueForRange() const -{ - return 0.0; -} - -WebNode WebAXObject::node() const -{ - return WebNode(); -} - -WebDocument WebAXObject::document() const -{ - return WebDocument(); -} - -bool WebAXObject::hasComputedStyle() const -{ - return false; -} - -WebString WebAXObject::computedStyleDisplay() const -{ - return WebString(); -} - -bool WebAXObject::accessibilityIsIgnored() const -{ - return false; -} - -bool WebAXObject::lineBreaks(WebVector& result) const -{ - return false; -} - -unsigned WebAXObject::columnCount() const -{ - return false; -} - -unsigned WebAXObject::rowCount() const -{ - return false; -} - -WebAXObject WebAXObject::cellForColumnAndRow(unsigned column, unsigned row) const -{ - return WebAXObject(); -} - -WebAXObject WebAXObject::headerContainerObject() const -{ - return WebAXObject(); -} - -WebAXObject WebAXObject::rowAtIndex(unsigned rowIndex) const -{ - return WebAXObject(); -} - -WebAXObject WebAXObject::columnAtIndex(unsigned columnIndex) const -{ - return WebAXObject(); -} - -unsigned WebAXObject::rowIndex() const -{ - return 0; -} - -WebAXObject WebAXObject::rowHeader() const -{ - return WebAXObject(); -} - -unsigned WebAXObject::columnIndex() const -{ - return 0; -} - -WebAXObject WebAXObject::columnHeader() const -{ - return WebAXObject(); -} - -unsigned WebAXObject::cellColumnIndex() const -{ - return 0; -} - -unsigned WebAXObject::cellColumnSpan() const -{ - return 0; -} - -unsigned WebAXObject::cellRowIndex() const -{ - return 0; -} - -unsigned WebAXObject::cellRowSpan() const -{ - return 0; -} - -WebAXTextDirection WebAXObject::textDirection() const -{ - return WebAXTextDirectionLR; -} - -void WebAXObject::characterOffsets(WebVector& offsets) const -{ -} - -void WebAXObject::wordBoundaries(WebVector& starts, WebVector& ends) const -{ -} - -void WebAXObject::scrollToMakeVisible() const -{ -} - -void WebAXObject::scrollToMakeVisibleWithSubFocus(const WebRect& subfocus) const -{ -} - -void WebAXObject::scrollToGlobalPoint(const WebPoint& point) const -{ -} - -} // namespace blink diff --git a/engine/web/WebDocument.cpp b/engine/web/WebDocument.cpp index 4914afab0..7cc4af4fd 100644 --- a/engine/web/WebDocument.cpp +++ b/engine/web/WebDocument.cpp @@ -44,7 +44,6 @@ #include "core/rendering/RenderObject.h" #include "core/rendering/RenderView.h" #include "public/platform/WebURL.h" -#include "public/web/WebAXObject.h" #include "public/web/WebDOMEvent.h" #include "public/web/WebDocumentType.h" #include "public/web/WebElement.h" diff --git a/engine/web/WebViewImpl.cpp b/engine/web/WebViewImpl.cpp index 1322e3889..732ea7f79 100644 --- a/engine/web/WebViewImpl.cpp +++ b/engine/web/WebViewImpl.cpp @@ -93,7 +93,6 @@ #include "public/platform/WebLayerTreeView.h" #include "public/platform/WebURLRequest.h" #include "public/platform/WebVector.h" -#include "public/web/WebAXObject.h" #include "public/web/WebActiveWheelFlingParameters.h" #include "public/web/WebBeginFrameArgs.h" #include "public/web/WebFrameClient.h" -- GitLab