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

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

Issue 308003003: Allow requesting Automation tree by tabId (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 static void addEventListener( 82 static void addEventListener(
83 DOMString eventType, AutomationListener listener, bool capture); 83 DOMString eventType, AutomationListener listener, bool capture);
84 static void removeEventListener( 84 static void removeEventListener(
85 DOMString eventType, AutomationListener listener, bool capture); 85 DOMString eventType, AutomationListener listener, bool capture);
86 }; 86 };
87 87
88 // Called when the <code>AutomationTree</code> for the page is available. 88 // Called when the <code>AutomationTree</code> for the page is available.
89 callback RootCallback = void(AutomationTree tree); 89 callback RootCallback = void(AutomationTree tree);
90 90
91 interface Functions { 91 interface Functions {
92 // Get the automation tree for the current tab, enabling automation if 92 // Get the automation tree for the tab with the given tabId, or the current
93 // necessary. Returns a tree with a placeholder root node; listen for 93 // tab if no tabID is given, enabling automation if necessary. Returns a
94 // the "load_complete" event to get a notification that the tree has fully 94 // tree with a placeholder root node; listen for the "loadComplete" event to
95 // loaded (the previous root node reference will stop working at or before 95 // get a notification that the tree has fully loaded (the previous root node
96 // this point). 96 // reference will stop working at or before this point).
97 [nocompile] static void getTree(RootCallback callback); 97 [nocompile] static void getTree(optional long tabId, RootCallback callback);
98 98
99 // Get the automation tree for the desktop. 99 // Get the automation tree for the desktop.
100 [nocompile] static void getDesktop(RootCallback callback); 100 [nocompile] static void getDesktop(RootCallback callback);
101 }; 101 };
102 }; 102 };
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/tabs/tabs_api.cc ('k') | chrome/common/extensions/api/automation_internal.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698