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..302562c0fb0f142f72b711dcd6cb9a4c95c83819 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::Object> SelectionAnchorObject(); |
+ int SelectionAnchorOffset(); |
+ v8::Local<v8::Object> 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(); |