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

Unified Diff: chrome/common/extensions/api/automation_internal.idl

Issue 1155183006: Reimplement automation API on top of C++-backed AXTree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@automation_faster_2
Patch Set: Copy observers 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: chrome/common/extensions/api/automation_internal.idl
diff --git a/chrome/common/extensions/api/automation_internal.idl b/chrome/common/extensions/api/automation_internal.idl
index b290c638c3153c1a935330b3f33e15df5705cea2..6f568cfac6eba888dc5bb48d03b7ed63d08dbf64 100644
--- a/chrome/common/extensions/api/automation_internal.idl
+++ b/chrome/common/extensions/api/automation_internal.idl
@@ -6,46 +6,10 @@
// essentially a translation of the internal accessibility tree update system
// into an extension API.
namespace automationInternal {
- dictionary Rect {
- long left;
- long top;
- long width;
- long height;
- };
-
- // A compact representation of the accessibility information for a
- // single web object, in a form that can be serialized and sent from
- // one process to another.
- // See ui/accessibility/ax_node_data.h
- dictionary AXNodeData {
- long id;
- DOMString role;
- object state;
- Rect location;
-
- object? boolAttributes;
- object? floatAttributes;
- object? htmlAttributes;
- object? intAttributes;
- object? intlistAttributes;
- object? stringAttributes;
- long[] childIds;
- };
-
- dictionary AXTreeUpdate {
- // ID of the node, if any, which should be invalidated before the new data
- // is applied.
- long nodeIdToClear;
-
- // A vector of nodes to update according to the rules described in
- // ui/accessibility/ax_tree_update.h.
- AXNodeData[] nodes;
- };
-
// Data for an accessibility event and/or an atomic change to an accessibility
// tree. See ui/accessibility/ax_tree_update.h for an extended explanation of
// the tree update format.
- dictionary AXEventParams {
+ [nocompile] dictionary AXEventParams {
// The tree id of the web contents that this update is for.
long treeID;
@@ -54,10 +18,6 @@ namespace automationInternal {
// The type of event that this update represents.
DOMString eventType;
-
- // Serialized changes to the tree structure and node data that should be
- // applied before processing the event.
- AXTreeUpdate update;
};
// All possible actions that can be performed on automation nodes.
@@ -133,5 +93,7 @@ namespace automationInternal {
static void onAccessibilityEvent(AXEventParams update);
static void onAccessibilityTreeDestroyed(long treeID);
+
+ static void onTreeChange(long treeID, long nodeID, DOMString changeType);
};
};
« no previous file with comments | « chrome/common/extensions/api/automation.idl ('k') | chrome/renderer/extensions/automation_internal_custom_bindings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698