| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 static void querySelector(QuerySelectorRequiredParams args, | 90 static void querySelector(QuerySelectorRequiredParams args, |
| 91 QuerySelectorCallback callback); | 91 QuerySelectorCallback callback); |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 interface Events { | 94 interface Events { |
| 95 // Fired when an accessibility event occurs | 95 // Fired when an accessibility event occurs |
| 96 static void onAccessibilityEvent(AXEventParams update); | 96 static void onAccessibilityEvent(AXEventParams update); |
| 97 | 97 |
| 98 static void onAccessibilityTreeDestroyed(long treeID); | 98 static void onAccessibilityTreeDestroyed(long treeID); |
| 99 | 99 |
| 100 static void onTreeChange(long treeID, long nodeID, DOMString changeType); | 100 static void onTreeChange(long observerID, |
| 101 long treeID, |
| 102 long nodeID, |
| 103 DOMString changeType); |
| 104 |
| 105 static void onChildTreeID(long treeID, long nodeID); |
| 106 |
| 107 static void onNodesRemoved(long treeID, long[] nodeIDs); |
| 101 }; | 108 }; |
| 102 }; | 109 }; |
| OLD | NEW |