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 // Data for an accessibility event and/or an atomic change to an accessibility | 9 // Data for an accessibility event and/or an atomic change to an accessibility |
10 // tree. See ui/accessibility/ax_tree_update.h for an extended explanation of | 10 // tree. See ui/accessibility/ax_tree_update.h for an extended explanation of |
11 // the tree update format. | 11 // the tree update format. |
12 [nocompile] dictionary AXEventParams { | 12 [nocompile] dictionary AXEventParams { |
13 // The tree id of the web contents that this update is for. | 13 // The tree id of the web contents that this update is for. |
14 long treeID; | 14 long treeID; |
15 | 15 |
16 // ID of the node that the event applies to. | 16 // ID of the node that the event applies to. |
17 long targetID; | 17 long targetID; |
18 | 18 |
19 // The type of event that this update represents. | 19 // The type of event that this update represents. |
20 DOMString eventType; | 20 DOMString eventType; |
| 21 |
| 22 // The source of this event. |
| 23 DOMString eventFrom; |
21 }; | 24 }; |
22 | 25 |
23 // All possible actions that can be performed on automation nodes. | 26 // All possible actions that can be performed on automation nodes. |
24 enum ActionType { | 27 enum ActionType { |
25 focus, | 28 focus, |
26 doDefault, | 29 doDefault, |
27 makeVisible, | 30 makeVisible, |
28 setSelection, | 31 setSelection, |
29 showContextMenu | 32 showContextMenu |
30 }; | 33 }; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 static void onTreeChange(long observerID, | 103 static void onTreeChange(long observerID, |
101 long treeID, | 104 long treeID, |
102 long nodeID, | 105 long nodeID, |
103 DOMString changeType); | 106 DOMString changeType); |
104 | 107 |
105 static void onChildTreeID(long treeID, long nodeID); | 108 static void onChildTreeID(long treeID, long nodeID); |
106 | 109 |
107 static void onNodesRemoved(long treeID, long[] nodeIDs); | 110 static void onNodesRemoved(long treeID, long[] nodeIDs); |
108 }; | 111 }; |
109 }; | 112 }; |
OLD | NEW |