Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1678)

Side by Side Diff: chrome/common/extensions/api/automation.idl

Issue 203753002: Implement actions for Automation API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initial patch. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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. This is a tree 6 // automation (accessibility) tree for the browser. This is a tree
7 // representation, analogous to the DOM tree, which represents the 7 // representation, analogous to the DOM tree, which represents the
8 // <em>semantic</em> structure of a page, and can be used to programmatically 8 // <em>semantic</em> structure of a page, and can be used to programmatically
9 // interact with a page. 9 // interact with a page.
10 [nocompile] namespace automation { 10 [nocompile] namespace automation {
(...skipping 12 matching lines...) Expand all
23 23
24 // A collection of this node's other attributes. 24 // A collection of this node's other attributes.
25 // TODO(aboxhall): Create and use combined list of attributes from 25 // TODO(aboxhall): Create and use combined list of attributes from
26 // AXStringAttribute, AXIntAttribute etc. 26 // AXStringAttribute, AXIntAttribute etc.
27 object? attributes; 27 object? attributes;
28 28
29 // The index of this node in its parent node's list of children. If this is 29 // The index of this node in its parent node's list of children. If this is
30 // the root node, this will be undefined. 30 // the root node, this will be undefined.
31 long? index_in_parent; 31 long? index_in_parent;
32 32
33 // Traversal.
33 static object[] children(); 34 static object[] children();
34 static object parent(); 35 static object parent();
35 static object firstChild(); 36 static object firstChild();
36 static object lastChild(); 37 static object lastChild();
37 static object previousSibling(); 38 static object previousSibling();
38 static object nextSibling(); 39 static object nextSibling();
40
41 // Actions.
42 static void doDefault();
43 static void focus();
44 static void makeVisible();
45 static void setSelection(long startIndex, long endIndex);
39 }; 46 };
40 47
41 // The automation tree for a single page. 48 // The automation tree for a single page.
42 [nocompile] dictionary AutomationTree { 49 [nocompile] dictionary AutomationTree {
43 AutomationNode root; 50 AutomationNode root;
44 }; 51 };
45 52
46 // Called when the <code>AutomationTree</code> for the page is available. 53 // Called when the <code>AutomationTree</code> for the page is available.
47 callback RootCallback = void(AutomationTree tree); 54 callback RootCallback = void(AutomationTree tree);
48 55
49 interface Functions { 56 interface Functions {
50 // Get the automation tree for the current tab, enabling automation if 57 // Get the automation tree for the current tab, enabling automation if
51 // necessary. 58 // necessary.
52 [nocompile] static void getTree(RootCallback callback); 59 [nocompile] static void getTree(RootCallback callback);
53 }; 60 };
54 }; 61 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698