OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This is the implementation layer of the chrome.automation API, and is | 5 // This is the implementation layer of the chrome.automation API, and is |
6 // essentially a translation of the internal accessibility tree update system | 6 // essentially a translation of the internal accessibility tree update system |
7 // into an extension API. | 7 // into an extension API. |
8 namespace automationInternal { | 8 namespace automationInternal { |
9 dictionary Rect { | 9 dictionary Rect { |
10 long left; | 10 long left; |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
95 // Callback called when enableDesktop() returns. | 95 // Callback called when enableDesktop() returns. |
96 callback EnableDesktopCallback = void(); | 96 callback EnableDesktopCallback = void(); |
97 | 97 |
98 // Callback called when querySelector() returns. | 98 // Callback called when querySelector() returns. |
99 callback QuerySelectorCallback = void(long resultAutomationNodeID); | 99 callback QuerySelectorCallback = void(long resultAutomationNodeID); |
100 | 100 |
101 interface Functions { | 101 interface Functions { |
102 // Enable automation of the tab with the given id, or the active tab if no | 102 // Enable automation of the tab with the given id, or the active tab if no |
103 // tab id is given, and retrieves accessibility tree id for use in | 103 // tab id is given, and retrieves accessibility tree id for use in |
104 // future updates. | 104 // future updates. |
105 static void enableTab(optional long tabId, EnableTabCallback callback); | 105 static void enableTab(long routingId, |
106 optional long tabId, | |
not at google - send to devlin
2015/06/02 23:59:24
This is going to get a bit confusing with the 2 in
dmazzoni
2015/06/04 20:07:39
Sure, done.
| |
107 EnableTabCallback callback); | |
106 | 108 |
107 // Enable automation of the frame with the given tree id. | 109 // Enable automation of the frame with the given tree id. |
108 static void enableFrame(long tree_id); | 110 static void enableFrame(long tree_id); |
109 | 111 |
110 // Enables desktop automation. | 112 // Enables desktop automation. |
111 static void enableDesktop(EnableDesktopCallback callback); | 113 static void enableDesktop(long routingId, |
114 EnableDesktopCallback callback); | |
112 | 115 |
113 // Performs an action on an automation node. | 116 // Performs an action on an automation node. |
114 static void performAction(PerformActionRequiredParams args, | 117 static void performAction(PerformActionRequiredParams args, |
115 object opt_args); | 118 object opt_args); |
116 | 119 |
117 // Performs a query selector query. | 120 // Performs a query selector query. |
118 static void querySelector(QuerySelectorRequiredParams args, | 121 static void querySelector(QuerySelectorRequiredParams args, |
119 QuerySelectorCallback callback); | 122 QuerySelectorCallback callback); |
120 }; | 123 }; |
121 | 124 |
122 interface Events { | 125 interface Events { |
123 // Fired when an accessibility event occurs | 126 // Fired when an accessibility event occurs |
124 static void onAccessibilityEvent(AXEventParams update); | 127 static void onAccessibilityEvent(AXEventParams update); |
125 | 128 |
126 static void onAccessibilityTreeDestroyed(long treeID); | 129 static void onAccessibilityTreeDestroyed(long treeID); |
127 }; | 130 }; |
128 }; | 131 }; |
OLD | NEW |