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 20 matching lines...) Expand all Loading... |
31 object? stringAttributes; | 31 object? stringAttributes; |
32 long[] childIds; | 32 long[] childIds; |
33 }; | 33 }; |
34 | 34 |
35 dictionary AXTreeUpdate { | 35 dictionary AXTreeUpdate { |
36 // ID of the node, if any, which should be invalidated before the new data | 36 // ID of the node, if any, which should be invalidated before the new data |
37 // is applied. | 37 // is applied. |
38 long nodeIdToClear; | 38 long nodeIdToClear; |
39 | 39 |
40 // A vector of nodes to update according to the rules described in | 40 // A vector of nodes to update according to the rules described in |
41 // ui/accesibility/ax_tree_update.h. | 41 // ui/accessibility/ax_tree_update.h. |
42 AXNodeData[] nodes; | 42 AXNodeData[] nodes; |
43 }; | 43 }; |
44 | 44 |
45 // Data for an accessibility event and/or an atomic change to an accessibility | 45 // Data for an accessibility event and/or an atomic change to an accessibility |
46 // tree. See ui/accessibility/ax_tree_update.h for an extended explanation of | 46 // tree. See ui/accessibility/ax_tree_update.h for an extended explanation of |
47 // the tree update format. | 47 // the tree update format. |
48 dictionary AXEventParams { | 48 dictionary AXEventParams { |
49 // The process id of the renderer host. | 49 // The process id of the renderer host. |
50 long processID; | 50 long processID; |
51 | 51 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 object opt_args); | 106 object opt_args); |
107 }; | 107 }; |
108 | 108 |
109 interface Events { | 109 interface Events { |
110 // Fired when an accessibility event occurs | 110 // Fired when an accessibility event occurs |
111 static void onAccessibilityEvent(AXEventParams update); | 111 static void onAccessibilityEvent(AXEventParams update); |
112 | 112 |
113 static void onAccessibilityTreeDestroyed(long processID, long routingID); | 113 static void onAccessibilityTreeDestroyed(long processID, long routingID); |
114 }; | 114 }; |
115 }; | 115 }; |
OLD | NEW |