Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXLayoutObject.h

Issue 1435113003: Make use of new AX name calc in Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix issue with ariaTextAlternative Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 AXObject* previousOnLine() const override; 118 AXObject* previousOnLine() const override;
119 119
120 // Properties of interactive elements. 120 // Properties of interactive elements.
121 String actionVerb() const override; 121 String actionVerb() const override;
122 String stringValue() const override; 122 String stringValue() const override;
123 123
124 // ARIA attributes. 124 // ARIA attributes.
125 AXObject* activeDescendant() const override; 125 AXObject* activeDescendant() const override;
126 void ariaFlowToElements(AXObjectVector&) const override; 126 void ariaFlowToElements(AXObjectVector&) const override;
127 void ariaControlsElements(AXObjectVector&) const override; 127 void ariaControlsElements(AXObjectVector&) const override;
128 void deprecatedAriaDescribedbyElements(AXObjectVector&) const override; 128 void ariaDescribedbyElements(AXObjectVector&) const override;
129 void deprecatedAriaLabelledbyElements(AXObjectVector&) const override; 129 void ariaLabelledbyElements(AXObjectVector&) const override;
130 void ariaOwnsElements(AXObjectVector&) const override; 130 void ariaOwnsElements(AXObjectVector&) const override;
131 131
132 bool ariaHasPopup() const override; 132 bool ariaHasPopup() const override;
133 bool ariaRoleHasPresentationalChildren() const override; 133 bool ariaRoleHasPresentationalChildren() const override;
134 AXObject* ancestorForWhichThisIsAPresentationalChild() const override; 134 AXObject* ancestorForWhichThisIsAPresentationalChild() const override;
135 bool shouldFocusActiveDescendant() const override; 135 bool shouldFocusActiveDescendant() const override;
136 bool supportsARIADragging() const override; 136 bool supportsARIADragging() const override;
137 bool supportsARIADropping() const override; 137 bool supportsARIADropping() const override;
138 bool supportsARIAFlowTo() const override; 138 bool supportsARIAFlowTo() const override;
139 bool supportsARIAOwns() const override; 139 bool supportsARIAOwns() const override;
140 140
141 // ARIA live-region features. 141 // ARIA live-region features.
142 const AtomicString& liveRegionStatus() const override; 142 const AtomicString& liveRegionStatus() const override;
143 const AtomicString& liveRegionRelevant() const override; 143 const AtomicString& liveRegionRelevant() const override;
144 bool liveRegionAtomic() const override; 144 bool liveRegionAtomic() const override;
145 bool liveRegionBusy() const override; 145 bool liveRegionBusy() const override;
146 146
147 // Accessibility Text. 147 // AX name calc.
148 String deprecatedTextUnderElement(TextUnderElementMode) const override; 148 String textAlternative(bool recursive, bool inAriaLabelledByTraversal, AXObj ectSet& visited, AXNameFrom&, AXRelatedObjectVector*, NameSources*) const overri de;
149
150 // Accessibility Text - (To be deprecated).
151 String deprecatedHelpText() const override;
152 149
153 // Methods that retrieve or manipulate the current selection. 150 // Methods that retrieve or manipulate the current selection.
154 151
155 AXRange selection() const override; 152 AXRange selection() const override;
156 AXRange selectionUnderObject() const override; 153 AXRange selectionUnderObject() const override;
157 void setSelection(const AXRange&) override; 154 void setSelection(const AXRange&) override;
158 155
159 // Location and click point in frame-relative coordinates. 156 // Location and click point in frame-relative coordinates.
160 void markCachedElementRectDirty() const override; 157 void markCachedElementRectDirty() const override;
161 IntPoint clickPoint() override; 158 IntPoint clickPoint() override;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 AXRange textControlSelection() const; 223 AXRange textControlSelection() const;
227 int indexForVisiblePosition(const VisiblePosition&) const; 224 int indexForVisiblePosition(const VisiblePosition&) const;
228 AXLayoutObject* getUnignoredObjectFromNode(Node&) const; 225 AXLayoutObject* getUnignoredObjectFromNode(Node&) const;
229 }; 226 };
230 227
231 DEFINE_AX_OBJECT_TYPE_CASTS(AXLayoutObject, isAXLayoutObject()); 228 DEFINE_AX_OBJECT_TYPE_CASTS(AXLayoutObject, isAXLayoutObject());
232 229
233 } // namespace blink 230 } // namespace blink
234 231
235 #endif // AXLayoutObject_h 232 #endif // AXLayoutObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698