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

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: Created 5 years, 6 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
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..18e4f1a02fd0e7bb83492b703ef83885e7695803 100644
--- a/components/test_runner/web_ax_object_proxy.h
+++ b/components/test_runner/web_ax_object_proxy.h
@@ -69,10 +69,21 @@ 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
dmazzoni 2015/06/22 19:23:21 Did you mean "starting at this object".
+ // the object. They only report on a selection that is placed on the current
+ // object or on any of its descendants.
dmazzoni 2015/06/22 19:23:21 Wouldn't it be more accurate to say, they report o
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') | components/test_runner/web_ax_object_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698