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

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

Issue 2191833003: Use text affinity to return correct accessible line boundaries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bug in browser_accessibility_win.cc Created 4 years, 4 months 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
« no previous file with comments | « third_party/WebKit/public/web/WebAXEnums.h ('k') | ui/accessibility/ax_enums.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 // where the description was derived from, and a list of objects that were u sed to 179 // where the description was derived from, and a list of objects that were u sed to
180 // derive the description, if any. 180 // derive the description, if any.
181 BLINK_EXPORT WebString description(WebAXNameFrom, WebAXDescriptionFrom&, Web Vector<WebAXObject>& descriptionObjects) const; 181 BLINK_EXPORT WebString description(WebAXNameFrom, WebAXDescriptionFrom&, Web Vector<WebAXObject>& descriptionObjects) const;
182 // Takes the result of nameFrom and descriptionFrom from calling |name| and |description|, 182 // Takes the result of nameFrom and descriptionFrom from calling |name| and |description|,
183 // above, and retrieves the placeholder of the object, if present and if it wasn't already 183 // above, and retrieves the placeholder of the object, if present and if it wasn't already
184 // exposed by one of the two functions above. 184 // exposed by one of the two functions above.
185 BLINK_EXPORT WebString placeholder(WebAXNameFrom, WebAXDescriptionFrom) cons t; 185 BLINK_EXPORT WebString placeholder(WebAXNameFrom, WebAXDescriptionFrom) cons t;
186 186
187 // The following selection functions get or set the global document 187 // The following selection functions get or set the global document
188 // selection and can be called on any object in the tree. 188 // selection and can be called on any object in the tree.
189 BLINK_EXPORT void selection(WebAXObject& anchorObject, int& anchorOffset, 189 BLINK_EXPORT void selection(WebAXObject& anchorObject, int& anchorOffset, We bAXTextAffinity& anchorAffinity,
190 WebAXObject& focusObject, int& focusOffset) const; 190 WebAXObject& focusObject, int& focusOffset, WebAXTextAffinity& focusAffi nity) const;
191 BLINK_EXPORT void setSelection(const WebAXObject& anchorObject, int anchorOf fset, 191 BLINK_EXPORT void setSelection(const WebAXObject& anchorObject, int anchorOf fset,
192 const WebAXObject& focusObject, int focusOffset) const; 192 const WebAXObject& focusObject, int focusOffset) const;
193 193
194 // The following selection functions return text offsets calculated starting 194 // The following selection functions return text offsets calculated starting
195 // the current object. They only report on a selection that is placed on 195 // the current object. They only report on a selection that is placed on
196 // the current object or on any of its descendants. 196 // the current object or on any of its descendants.
197 BLINK_EXPORT unsigned selectionEnd() const; 197 BLINK_EXPORT unsigned selectionEnd() const;
198 BLINK_EXPORT unsigned selectionEndLineNumber() const; 198 BLINK_EXPORT unsigned selectionEndLineNumber() const;
199 BLINK_EXPORT unsigned selectionStart() const; 199 BLINK_EXPORT unsigned selectionStart() const;
200 BLINK_EXPORT unsigned selectionStartLineNumber() const; 200 BLINK_EXPORT unsigned selectionStartLineNumber() const;
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 operator AXObject*() const; 324 operator AXObject*() const;
325 #endif 325 #endif
326 326
327 private: 327 private:
328 WebPrivatePtr<AXObject> m_private; 328 WebPrivatePtr<AXObject> m_private;
329 }; 329 };
330 330
331 } // namespace blink 331 } // namespace blink
332 332
333 #endif 333 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebAXEnums.h ('k') | ui/accessibility/ax_enums.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698