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 |
(...skipping 18 matching lines...) Expand all Loading... | |
29 showContextMenu | 29 showContextMenu |
30 }; | 30 }; |
31 | 31 |
32 // Arguments required for all actions supplied to performAction. | 32 // Arguments required for all actions supplied to performAction. |
33 dictionary PerformActionRequiredParams { | 33 dictionary PerformActionRequiredParams { |
34 long treeID; | 34 long treeID; |
35 long automationNodeID; | 35 long automationNodeID; |
36 ActionType actionType; | 36 ActionType actionType; |
37 }; | 37 }; |
38 | 38 |
39 // Arguments for the set_selection action supplied to performAction. | 39 // Arguments for the setSelection action supplied to performAction. |
40 dictionary SetSelectionParams { | 40 dictionary SetSelectionParams { |
41 long startIndex; | 41 // automationNodeID of performActionRequiredParams is used for the |
David Tseng
2015/09/23 17:57:41
nit: one space between sentences in this file.
Com
| |
42 long endIndex; | 42 // anchor node ID. treeID applies to focusNodeID as well. |
43 long focusNodeID; | |
44 long anchorOffset; | |
45 long focusOffset; | |
43 }; | 46 }; |
44 | 47 |
45 // Arguments for the querySelector function. | 48 // Arguments for the querySelector function. |
46 dictionary QuerySelectorRequiredParams { | 49 dictionary QuerySelectorRequiredParams { |
47 long treeID; | 50 long treeID; |
48 long automationNodeID; | 51 long automationNodeID; |
49 DOMString selector; | 52 DOMString selector; |
50 }; | 53 }; |
51 | 54 |
52 // Arguments for the enableTab function. | 55 // Arguments for the enableTab function. |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
90 | 93 |
91 interface Events { | 94 interface Events { |
92 // Fired when an accessibility event occurs | 95 // Fired when an accessibility event occurs |
93 static void onAccessibilityEvent(AXEventParams update); | 96 static void onAccessibilityEvent(AXEventParams update); |
94 | 97 |
95 static void onAccessibilityTreeDestroyed(long treeID); | 98 static void onAccessibilityTreeDestroyed(long treeID); |
96 | 99 |
97 static void onTreeChange(long treeID, long nodeID, DOMString changeType); | 100 static void onTreeChange(long treeID, long nodeID, DOMString changeType); |
98 }; | 101 }; |
99 }; | 102 }; |
OLD | NEW |