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

Unified Diff: chrome/renderer/extensions/automation_internal_custom_bindings.h

Issue 1407413002: Move some AX attrs from AXNodeData to AXTreeData. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Finish automation API changes Created 5 years, 2 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: chrome/renderer/extensions/automation_internal_custom_bindings.h
diff --git a/chrome/renderer/extensions/automation_internal_custom_bindings.h b/chrome/renderer/extensions/automation_internal_custom_bindings.h
index 6b126c5a896292a18d38d0cff6e467fd06e214b2..f818e4bc460edde753b36130d789cdf837398c4b 100644
--- a/chrome/renderer/extensions/automation_internal_custom_bindings.h
+++ b/chrome/renderer/extensions/automation_internal_custom_bindings.h
@@ -72,6 +72,30 @@ class AutomationInternalCustomBindings : public ObjectBackedNativeHandler,
// Args: int ax_tree_id, Returns: int root_node_id.
void GetRootID(const v8::FunctionCallbackInfo<v8::Value>& args);
+ // Args: int ax_tree_id, Returns: string url.
+ void GetDocURL(const v8::FunctionCallbackInfo<v8::Value>& args);
+
+ // Args: int ax_tree_id, Returns: string title.
+ void GetDocTitle(const v8::FunctionCallbackInfo<v8::Value>& args);
+
+ // Args: int ax_tree_id, Returns: bool, true if doc loaded.
+ void GetDocLoaded(const v8::FunctionCallbackInfo<v8::Value>& args);
+
+ // Args: int ax_tree_id, Returns: float loading progress.
+ void GetDocLoadingProgress(const v8::FunctionCallbackInfo<v8::Value>& args);
+
+ // Args: int ax_tree_id, Returns: int selection anchor object ID.
+ void GetAnchorObjectID(const v8::FunctionCallbackInfo<v8::Value>& args);
+
+ // Args: int ax_tree_id, Returns: int selection anchor offset.
+ void GetAnchorOffset(const v8::FunctionCallbackInfo<v8::Value>& args);
+
+ // Args: int ax_tree_id, Returns: int selection focus object ID.
+ void GetFocusObjectID(const v8::FunctionCallbackInfo<v8::Value>& args);
+
+ // Args: int ax_tree_id, Returns: int selection focus offset.
+ void GetFocusOffset(const v8::FunctionCallbackInfo<v8::Value>& args);
+
// Args: int ax_tree_id, int node_id, Returns: int parent_node_id.
void GetParentID(const v8::FunctionCallbackInfo<v8::Value>& args);
@@ -152,6 +176,7 @@ class AutomationInternalCustomBindings : public ObjectBackedNativeHandler,
bool is_active_profile);
// AXTreeDelegate implementation.
+ void OnTreeDataChanged(ui::AXTree* tree) override;
void OnNodeWillBeDeleted(ui::AXTree* tree, ui::AXNode* node) override;
void OnSubtreeWillBeDeleted(ui::AXTree* tree, ui::AXNode* node) override;
void OnNodeCreated(ui::AXTree* tree, ui::AXNode* node) override;

Powered by Google App Engine
This is Rietveld 408576698