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 // The <code>chrome.automation</code> API allows developers to access the | 5 // The <code>chrome.automation</code> API allows developers to access the |
6 // automation (accessibility) tree for the browser. The tree resembles the DOM | 6 // automation (accessibility) tree for the browser. The tree resembles the DOM |
7 // tree, but only exposes the <em>semantic</em> structure of a page. It can be | 7 // tree, but only exposes the <em>semantic</em> structure of a page. It can be |
8 // used to programmatically interact with a page by examining names, roles, and | 8 // used to programmatically interact with a page by examining names, roles, and |
9 // states, listening for events, and performing actions on nodes. | 9 // states, listening for events, and performing actions on nodes. |
10 [nocompile] namespace automation { | 10 [nocompile] namespace automation { |
(...skipping 23 matching lines...) Expand all Loading... |
34 menuPopupEnd, | 34 menuPopupEnd, |
35 menuPopupStart, | 35 menuPopupStart, |
36 menuStart, | 36 menuStart, |
37 rowCollapsed, | 37 rowCollapsed, |
38 rowCountChanged, | 38 rowCountChanged, |
39 rowExpanded, | 39 rowExpanded, |
40 scrollPositionChanged, | 40 scrollPositionChanged, |
41 scrolledToAnchor, | 41 scrolledToAnchor, |
42 selectedChildrenChanged, | 42 selectedChildrenChanged, |
43 selectedTextChanged, | 43 selectedTextChanged, |
44 selectionChanged, | 44 selection, |
| 45 selectionAdd, |
| 46 selectionRemove, |
45 show, | 47 show, |
46 textChanged, | 48 textChanged, |
47 textInserted, | 49 textInserted, |
48 textRemoved, | 50 textRemoved, |
| 51 textSelectionChanged, |
49 valueChanged | 52 valueChanged |
50 }; | 53 }; |
51 | 54 |
52 // Describes the purpose of an $(ref:automation.AutomationNode). | 55 // Describes the purpose of an $(ref:automation.AutomationNode). |
53 enum RoleType { | 56 enum RoleType { |
54 alertDialog, | 57 alertDialog, |
55 alert, | 58 alert, |
56 annotation, | 59 annotation, |
57 application, | 60 application, |
58 article, | 61 article, |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 // tree with a placeholder root node; listen for the "loadComplete" event to | 324 // tree with a placeholder root node; listen for the "loadComplete" event to |
322 // get a notification that the tree has fully loaded (the previous root node | 325 // get a notification that the tree has fully loaded (the previous root node |
323 // reference will stop working at or before this point). | 326 // reference will stop working at or before this point). |
324 [nocompile] static void getTree(optional long tabId, RootCallback callback); | 327 [nocompile] static void getTree(optional long tabId, RootCallback callback); |
325 | 328 |
326 // Get the automation tree for the whole desktop which consists of all on | 329 // Get the automation tree for the whole desktop which consists of all on |
327 // screen views. Note this API is currently only supported on Chrome OS. | 330 // screen views. Note this API is currently only supported on Chrome OS. |
328 [nocompile] static void getDesktop(RootCallback callback); | 331 [nocompile] static void getDesktop(RootCallback callback); |
329 }; | 332 }; |
330 }; | 333 }; |
OLD | NEW |