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

Side by Side Diff: third_party/WebKit/public/web/WebAXObject.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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 BLINK_EXPORT WebAXObject hitTest(const WebPoint&) const; 155 BLINK_EXPORT WebAXObject hitTest(const WebPoint&) const;
156 BLINK_EXPORT WebString keyboardShortcut() const; 156 BLINK_EXPORT WebString keyboardShortcut() const;
157 BLINK_EXPORT WebString language() const; 157 BLINK_EXPORT WebString language() const;
158 BLINK_EXPORT WebAXOrientation orientation() const; 158 BLINK_EXPORT WebAXOrientation orientation() const;
159 BLINK_EXPORT WebAXRole role() const; 159 BLINK_EXPORT WebAXRole role() const;
160 BLINK_EXPORT WebString stringValue() const; 160 BLINK_EXPORT WebString stringValue() const;
161 BLINK_EXPORT WebAXTextDirection textDirection() const; 161 BLINK_EXPORT WebAXTextDirection textDirection() const;
162 BLINK_EXPORT WebAXTextStyle textStyle() const; 162 BLINK_EXPORT WebAXTextStyle textStyle() const;
163 BLINK_EXPORT WebURL url() const; 163 BLINK_EXPORT WebURL url() const;
164 164
165 // Deprecated text alternative calculation API. All of these will be replace d
166 // with the new API, below (under "New text alternative calculation API".
167 BLINK_EXPORT WebString deprecatedAccessibilityDescription() const;
168 BLINK_EXPORT bool deprecatedAriaDescribedby(WebVector<WebAXObject>& describe dbyElements) const;
169 BLINK_EXPORT bool deprecatedAriaLabelledby(WebVector<WebAXObject>& labelledb yElements) const;
170 BLINK_EXPORT WebString deprecatedHelpText() const;
171 BLINK_EXPORT WebString deprecatedPlaceholder() const;
172 BLINK_EXPORT WebString deprecatedTitle() const;
173 BLINK_EXPORT WebAXObject deprecatedTitleUIElement() const;
174
175 // FIXME(dmazzoni): remove these ASAP once Chromium only calls either explic itly-deprecated
176 // functions, above, or the new APIs, below.
177 BLINK_EXPORT WebString accessibilityDescription() const;
178 BLINK_EXPORT bool ariaDescribedby(WebVector<WebAXObject>& describedbyElement s) const;
179 BLINK_EXPORT bool ariaLabelledby(WebVector<WebAXObject>& labelledbyElements) const;
180 BLINK_EXPORT WebString helpText() const;
181 BLINK_EXPORT WebString placeholder() const;
182 BLINK_EXPORT WebString title() const;
183 BLINK_EXPORT WebAXObject titleUIElement() const;
184
185 // New text alternative calculation API (under development).
186
187 // Retrieves the accessible name of the object, an enum indicating where the name 165 // Retrieves the accessible name of the object, an enum indicating where the name
188 // was derived from, and a list of related objects that were used to derive the name, if any. 166 // was derived from, and a list of related objects that were used to derive the name, if any.
189 BLINK_EXPORT WebString name(WebAXNameFrom&, WebVector<WebAXObject>& nameObje cts) const; 167 BLINK_EXPORT WebString name(WebAXNameFrom&, WebVector<WebAXObject>& nameObje cts) const;
168 // Simplified version of |name| when nameFrom and nameObjects aren't needed.
169 BLINK_EXPORT WebString name() const;
190 // Takes the result of nameFrom from calling |name|, above, and retrieves th e 170 // Takes the result of nameFrom from calling |name|, above, and retrieves th e
191 // accessible description of the object, which is secondary to |name|, an en um indicating 171 // accessible description of the object, which is secondary to |name|, an en um indicating
192 // where the description was derived from, and a list of objects that were u sed to 172 // where the description was derived from, and a list of objects that were u sed to
193 // derive the description, if any. 173 // derive the description, if any.
194 BLINK_EXPORT WebString description(WebAXNameFrom, WebAXDescriptionFrom&, Web Vector<WebAXObject>& descriptionObjects) const; 174 BLINK_EXPORT WebString description(WebAXNameFrom, WebAXDescriptionFrom&, Web Vector<WebAXObject>& descriptionObjects) const;
195 // Takes the result of nameFrom and descriptionFrom from calling |name| and |description|, 175 // Takes the result of nameFrom and descriptionFrom from calling |name| and |description|,
196 // above, and retrieves the placeholder of the object, if present and if it wasn't already 176 // above, and retrieves the placeholder of the object, if present and if it wasn't already
197 // exposed by one of the two functions above. 177 // exposed by one of the two functions above.
198 BLINK_EXPORT WebString placeholder(WebAXNameFrom, WebAXDescriptionFrom) cons t; 178 BLINK_EXPORT WebString placeholder(WebAXNameFrom, WebAXDescriptionFrom) cons t;
199 179
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 operator AXObject*() const; 295 operator AXObject*() const;
316 #endif 296 #endif
317 297
318 private: 298 private:
319 WebPrivatePtr<AXObject> m_private; 299 WebPrivatePtr<AXObject> m_private;
320 }; 300 };
321 301
322 } // namespace blink 302 } // namespace blink
323 303
324 #endif 304 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/VisualViewportTest.cpp ('k') | ui/accessibility/ax_enums.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698