| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |