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

Unified Diff: components/test_runner/web_ax_object_proxy.h

Issue 1195223006: Reports the position of the caret and current selection in content editables. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased with master. Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/test_runner/web_ax_object_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « no previous file | components/test_runner/web_ax_object_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698