| 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 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 // The source of this event. | 22 // The source of this event. |
| 23 DOMString eventFrom; | 23 DOMString eventFrom; |
| 24 }; | 24 }; |
| 25 | 25 |
| 26 // All possible actions that can be performed on automation nodes. | 26 // All possible actions that can be performed on automation nodes. |
| 27 enum ActionType { | 27 enum ActionType { |
| 28 focus, | 28 focus, |
| 29 doDefault, | 29 doDefault, |
| 30 makeVisible, | 30 makeVisible, |
| 31 setAccessibilityFocus, |
| 31 setSelection, | 32 setSelection, |
| 32 showContextMenu | 33 showContextMenu |
| 33 }; | 34 }; |
| 34 | 35 |
| 35 // Arguments required for all actions supplied to performAction. | 36 // Arguments required for all actions supplied to performAction. |
| 36 dictionary PerformActionRequiredParams { | 37 dictionary PerformActionRequiredParams { |
| 37 long treeID; | 38 long treeID; |
| 38 long automationNodeID; | 39 long automationNodeID; |
| 39 ActionType actionType; | 40 ActionType actionType; |
| 40 }; | 41 }; |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 static void onTreeChange(long observerID, | 104 static void onTreeChange(long observerID, |
| 104 long treeID, | 105 long treeID, |
| 105 long nodeID, | 106 long nodeID, |
| 106 DOMString changeType); | 107 DOMString changeType); |
| 107 | 108 |
| 108 static void onChildTreeID(long treeID, long nodeID); | 109 static void onChildTreeID(long treeID, long nodeID); |
| 109 | 110 |
| 110 static void onNodesRemoved(long treeID, long[] nodeIDs); | 111 static void onNodesRemoved(long treeID, long[] nodeIDs); |
| 111 }; | 112 }; |
| 112 }; | 113 }; |
| OLD | NEW |