Chromium Code Reviews| Index: public/web/WebAXObject.h |
| diff --git a/public/web/WebAXObject.h b/public/web/WebAXObject.h |
| index a1c551ef3e4b74009431ff5e84fbeefb797d562a..5a3899719e0fc2c55614bae50085f05612c851c3 100644 |
| --- a/public/web/WebAXObject.h |
| +++ b/public/web/WebAXObject.h |
| @@ -155,6 +155,15 @@ public: |
| BLINK_EXPORT WebString language() const; |
| BLINK_EXPORT WebAXOrientation orientation() const; |
| BLINK_EXPORT WebAXRole role() const; |
| + // The following selection functions get or set the global document |
|
dmazzoni
2015/06/22 17:13:35
Put these in their own section in the file
|
| + // selection and can be called on any object in the tree. |
| + BLINK_EXPORT void selection(WebAXObject& anchorObject, int& anchorOffset, |
| + WebAXObject& focusObject, int& focusOffset) const; |
| + BLINK_EXPORT void setSelection(const WebAXObject& anchorObject, int anchorOffset, |
| + const WebAXObject& focusObject, int focusOffset) const; |
| + // The following selection functions return text offsets calculated starting |
| + // the current object. They only report on a selection that is placed on |
| + // the current object or on any of its descendants. |
| BLINK_EXPORT unsigned selectionEnd() const; |
| BLINK_EXPORT unsigned selectionEndLineNumber() const; |
| BLINK_EXPORT unsigned selectionStart() const; |