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

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

Issue 1365433002: Add setSelection function to automation API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nobrailleautostartintests
Patch Set: rebase Created 5 years, 2 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
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 // 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 // Data for an accessibility event and/or an atomic change to an accessibility 9 // Data for an accessibility event and/or an atomic change to an accessibility
10 // tree. See ui/accessibility/ax_tree_update.h for an extended explanation of 10 // tree. See ui/accessibility/ax_tree_update.h for an extended explanation of
(...skipping 18 matching lines...) Expand all
29 showContextMenu 29 showContextMenu
30 }; 30 };
31 31
32 // Arguments required for all actions supplied to performAction. 32 // Arguments required for all actions supplied to performAction.
33 dictionary PerformActionRequiredParams { 33 dictionary PerformActionRequiredParams {
34 long treeID; 34 long treeID;
35 long automationNodeID; 35 long automationNodeID;
36 ActionType actionType; 36 ActionType actionType;
37 }; 37 };
38 38
39 // Arguments for the set_selection action supplied to performAction. 39 // Arguments for the setSelection action supplied to performAction.
40 dictionary SetSelectionParams { 40 dictionary SetSelectionParams {
41 long startIndex; 41 // automationNodeID of performActionRequiredParams is used for the
David Tseng 2015/09/23 17:57:41 nit: one space between sentences in this file. Com
42 long endIndex; 42 // anchor node ID. treeID applies to focusNodeID as well.
43 long focusNodeID;
44 long anchorOffset;
45 long focusOffset;
43 }; 46 };
44 47
45 // Arguments for the querySelector function. 48 // Arguments for the querySelector function.
46 dictionary QuerySelectorRequiredParams { 49 dictionary QuerySelectorRequiredParams {
47 long treeID; 50 long treeID;
48 long automationNodeID; 51 long automationNodeID;
49 DOMString selector; 52 DOMString selector;
50 }; 53 };
51 54
52 // Arguments for the enableTab function. 55 // Arguments for the enableTab function.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 93
91 interface Events { 94 interface Events {
92 // Fired when an accessibility event occurs 95 // Fired when an accessibility event occurs
93 static void onAccessibilityEvent(AXEventParams update); 96 static void onAccessibilityEvent(AXEventParams update);
94 97
95 static void onAccessibilityTreeDestroyed(long treeID); 98 static void onAccessibilityTreeDestroyed(long treeID);
96 99
97 static void onTreeChange(long treeID, long nodeID, DOMString changeType); 100 static void onTreeChange(long treeID, long nodeID, DOMString changeType);
98 }; 101 };
99 }; 102 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698