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

Side by Side Diff: third_party/WebKit/public/web/WebAXObject.h

Issue 2492083002: Implement aria-placeholder (Closed)
Patch Set: Rebaseline android placeholder test Created 4 years 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 // accessible description of the object, which is secondary to |name|, an enum 183 // accessible description of the object, which is secondary to |name|, an enum
184 // indicating where the description was derived from, and a list of objects 184 // indicating where the description was derived from, and a list of objects
185 // that were used to derive the description, if any. 185 // that were used to derive the description, if any.
186 BLINK_EXPORT WebString 186 BLINK_EXPORT WebString
187 description(WebAXNameFrom, 187 description(WebAXNameFrom,
188 WebAXDescriptionFrom&, 188 WebAXDescriptionFrom&,
189 WebVector<WebAXObject>& descriptionObjects) const; 189 WebVector<WebAXObject>& descriptionObjects) const;
190 // Takes the result of nameFrom and descriptionFrom from calling |name| and 190 // Takes the result of nameFrom and descriptionFrom from calling |name| and
191 // |description|, above, and retrieves the placeholder of the object, if 191 // |description|, above, and retrieves the placeholder of the object, if
192 // present and if it wasn't already exposed by one of the two functions above. 192 // present and if it wasn't already exposed by one of the two functions above.
193 BLINK_EXPORT WebString placeholder(WebAXNameFrom, WebAXDescriptionFrom) const; 193 BLINK_EXPORT WebString placeholder(WebAXNameFrom) const;
194 194
195 // The following selection functions get or set the global document 195 // The following selection functions get or set the global document
196 // selection and can be called on any object in the tree. 196 // selection and can be called on any object in the tree.
197 BLINK_EXPORT void selection(WebAXObject& anchorObject, 197 BLINK_EXPORT void selection(WebAXObject& anchorObject,
198 int& anchorOffset, 198 int& anchorOffset,
199 WebAXTextAffinity& anchorAffinity, 199 WebAXTextAffinity& anchorAffinity,
200 WebAXObject& focusObject, 200 WebAXObject& focusObject,
201 int& focusOffset, 201 int& focusOffset,
202 WebAXTextAffinity& focusAffinity) const; 202 WebAXTextAffinity& focusAffinity) const;
203 BLINK_EXPORT void setSelection(const WebAXObject& anchorObject, 203 BLINK_EXPORT void setSelection(const WebAXObject& anchorObject,
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 operator AXObject*() const; 340 operator AXObject*() const;
341 #endif 341 #endif
342 342
343 private: 343 private:
344 WebPrivatePtr<AXObject> m_private; 344 WebPrivatePtr<AXObject> m_private;
345 }; 345 };
346 346
347 } // namespace blink 347 } // namespace blink
348 348
349 #endif 349 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebAXEnums.h ('k') | tools/accessibility/rebase_dump_accessibility_tree_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698