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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 alert, | 56 alert, |
57 annotation, | 57 annotation, |
58 application, | 58 application, |
59 article, | 59 article, |
60 banner, | 60 banner, |
61 blockquote, | 61 blockquote, |
62 busyIndicator, | 62 busyIndicator, |
63 button, | 63 button, |
64 buttonDropDown, | 64 buttonDropDown, |
65 canvas, | 65 canvas, |
| 66 caption, |
66 cell, | 67 cell, |
67 checkBox, | 68 checkBox, |
68 client, | 69 client, |
69 colorWell, | 70 colorWell, |
70 columnHeader, | 71 columnHeader, |
71 column, | 72 column, |
72 comboBox, | 73 comboBox, |
73 complementary, | 74 complementary, |
74 contentInfo, | 75 contentInfo, |
75 date, | 76 date, |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 // tree with a placeholder root node; listen for the "loadComplete" event to | 482 // tree with a placeholder root node; listen for the "loadComplete" event to |
482 // get a notification that the tree has fully loaded (the previous root node | 483 // get a notification that the tree has fully loaded (the previous root node |
483 // reference will stop working at or before this point). | 484 // reference will stop working at or before this point). |
484 [nocompile] static void getTree(optional long tabId, RootCallback callback); | 485 [nocompile] static void getTree(optional long tabId, RootCallback callback); |
485 | 486 |
486 // Get the automation tree for the whole desktop which consists of all on | 487 // Get the automation tree for the whole desktop which consists of all on |
487 // screen views. Note this API is currently only supported on Chrome OS. | 488 // screen views. Note this API is currently only supported on Chrome OS. |
488 [nocompile] static void getDesktop(RootCallback callback); | 489 [nocompile] static void getDesktop(RootCallback callback); |
489 }; | 490 }; |
490 }; | 491 }; |
OLD | NEW |