Index: components/test_runner/web_ax_object_proxy.h |
diff --git a/components/test_runner/web_ax_object_proxy.h b/components/test_runner/web_ax_object_proxy.h |
index 1b8c4690598074ea359c42fa629d417d023fdb08..a52809c8d4323030f3d42eb2e44f3b18037985a2 100644 |
--- a/components/test_runner/web_ax_object_proxy.h |
+++ b/components/test_runner/web_ax_object_proxy.h |
@@ -69,10 +69,24 @@ class WebAXObjectProxy : public gin::Wrappable<WebAXObjectProxy> { |
int MaxValue(); |
std::string ValueDescription(); |
int ChildrenCount(); |
+ |
+ // The following selection functions return global information about the |
+ // current selection and can be called on any object in the tree. |
+ v8::Local<v8::Value> SelectionAnchorObject(); |
+ int SelectionAnchorOffset(); |
+ v8::Local<v8::Value> SelectionFocusObject(); |
+ int SelectionFocusOffset(); |
+ |
+ // The following selection functions return text offsets calculated starting |
+ // at this object. They only report on a selection that is placed on the |
+ // current object or on any of its descendants. |
+ // For example, they can be used to retrieve the selection in an input or |
+ // a textarea. |
int SelectionStart(); |
int SelectionEnd(); |
int SelectionStartLineNumber(); |
int SelectionEndLineNumber(); |
+ |
bool IsEnabled(); |
bool IsRequired(); |
bool IsRichlyEditable(); |