| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 | 91 |
| 92 // Callback called when enableDesktop() returns. | 92 // Callback called when enableDesktop() returns. |
| 93 callback EnableDesktopCallback = void(); | 93 callback EnableDesktopCallback = void(); |
| 94 | 94 |
| 95 interface Functions { | 95 interface Functions { |
| 96 // Enable automation of the tab with the given id, or the active tab if no | 96 // Enable automation of the tab with the given id, or the active tab if no |
| 97 // tab id is given, and retrieves its process and routing ids for use in | 97 // tab id is given, and retrieves its process and routing ids for use in |
| 98 // future updates. | 98 // future updates. |
| 99 static void enableTab(optional long tabId, EnableTabCallback callback); | 99 static void enableTab(optional long tabId, EnableTabCallback callback); |
| 100 | 100 |
| 101 // Enable automation of the frame with the given process id and routing |
| 102 //id. |
| 103 static void enableFrame(long processID, long routingID); |
| 104 |
| 101 // Enables desktop automation. | 105 // Enables desktop automation. |
| 102 static void enableDesktop(EnableDesktopCallback callback); | 106 static void enableDesktop(EnableDesktopCallback callback); |
| 103 | 107 |
| 104 // Performs an action on an automation node. | 108 // Performs an action on an automation node. |
| 105 static void performAction(PerformActionRequiredParams args, | 109 static void performAction(PerformActionRequiredParams args, |
| 106 object opt_args); | 110 object opt_args); |
| 107 }; | 111 }; |
| 108 | 112 |
| 109 interface Events { | 113 interface Events { |
| 110 // Fired when an accessibility event occurs | 114 // Fired when an accessibility event occurs |
| 111 static void onAccessibilityEvent(AXEventParams update); | 115 static void onAccessibilityEvent(AXEventParams update); |
| 112 | 116 |
| 113 static void onAccessibilityTreeDestroyed(long processID, long routingID); | 117 static void onAccessibilityTreeDestroyed(long processID, long routingID); |
| 114 }; | 118 }; |
| 115 }; | 119 }; |
| OLD | NEW |