| 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, | |
| 32 setSelection, | 31 setSelection, |
| 33 showContextMenu | 32 showContextMenu |
| 34 }; | 33 }; |
| 35 | 34 |
| 36 // Arguments required for all actions supplied to performAction. | 35 // Arguments required for all actions supplied to performAction. |
| 37 dictionary PerformActionRequiredParams { | 36 dictionary PerformActionRequiredParams { |
| 38 long treeID; | 37 long treeID; |
| 39 long automationNodeID; | 38 long automationNodeID; |
| 40 ActionType actionType; | 39 ActionType actionType; |
| 41 }; | 40 }; |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 static void onTreeChange(long observerID, | 103 static void onTreeChange(long observerID, |
| 105 long treeID, | 104 long treeID, |
| 106 long nodeID, | 105 long nodeID, |
| 107 DOMString changeType); | 106 DOMString changeType); |
| 108 | 107 |
| 109 static void onChildTreeID(long treeID, long nodeID); | 108 static void onChildTreeID(long treeID, long nodeID); |
| 110 | 109 |
| 111 static void onNodesRemoved(long treeID, long[] nodeIDs); | 110 static void onNodesRemoved(long treeID, long[] nodeIDs); |
| 112 }; | 111 }; |
| 113 }; | 112 }; |
| OLD | NEW |