| 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 15 matching lines...) Expand all Loading... |
| 26 double mouseX; | 26 double mouseX; |
| 27 double mouseY; | 27 double mouseY; |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 // All possible actions that can be performed on automation nodes. | 30 // All possible actions that can be performed on automation nodes. |
| 31 enum ActionType { | 31 enum ActionType { |
| 32 focus, | 32 focus, |
| 33 doDefault, | 33 doDefault, |
| 34 getImageData, | 34 getImageData, |
| 35 makeVisible, | 35 makeVisible, |
| 36 resumeMedia, |
| 36 setAccessibilityFocus, | 37 setAccessibilityFocus, |
| 37 setSequentialFocusNavigationStartingPoint, | 38 setSequentialFocusNavigationStartingPoint, |
| 38 setSelection, | 39 setSelection, |
| 40 startDuckingMedia, |
| 41 stopDuckingMedia, |
| 42 suspendMedia, |
| 39 showContextMenu | 43 showContextMenu |
| 40 }; | 44 }; |
| 41 | 45 |
| 42 // Arguments required for all actions supplied to performAction. | 46 // Arguments required for all actions supplied to performAction. |
| 43 dictionary PerformActionRequiredParams { | 47 dictionary PerformActionRequiredParams { |
| 44 long treeID; | 48 long treeID; |
| 45 long automationNodeID; | 49 long automationNodeID; |
| 46 ActionType actionType; | 50 ActionType actionType; |
| 47 }; | 51 }; |
| 48 | 52 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 long nodeID, | 122 long nodeID, |
| 119 DOMString changeType); | 123 DOMString changeType); |
| 120 | 124 |
| 121 static void onChildTreeID(long treeID, long nodeID); | 125 static void onChildTreeID(long treeID, long nodeID); |
| 122 | 126 |
| 123 static void onNodesRemoved(long treeID, long[] nodeIDs); | 127 static void onNodesRemoved(long treeID, long[] nodeIDs); |
| 124 | 128 |
| 125 static void onAccessibilityTreeSerializationError(long treeID); | 129 static void onAccessibilityTreeSerializationError(long treeID); |
| 126 }; | 130 }; |
| 127 }; | 131 }; |
| OLD | NEW |