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

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

Issue 2873373005: Add custom action support (Closed)
Patch Set: Fix a few files. Created 3 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
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 23 matching lines...) Expand all
34 getImageData, 34 getImageData,
35 hitTest, 35 hitTest,
36 makeVisible, 36 makeVisible,
37 resumeMedia, 37 resumeMedia,
38 setAccessibilityFocus, 38 setAccessibilityFocus,
39 setSequentialFocusNavigationStartingPoint, 39 setSequentialFocusNavigationStartingPoint,
40 setSelection, 40 setSelection,
41 startDuckingMedia, 41 startDuckingMedia,
42 stopDuckingMedia, 42 stopDuckingMedia,
43 suspendMedia, 43 suspendMedia,
44 showContextMenu 44 showContextMenu,
45 customAction
dmazzoni 2017/06/06 03:06:00 Sort this, the rest are all alphabetical
yawano 2017/06/08 09:25:29 Done.
45 }; 46 };
46 47
47 // Arguments required for all actions supplied to performAction. 48 // Arguments required for all actions supplied to performAction.
48 dictionary PerformActionRequiredParams { 49 dictionary PerformActionRequiredParams {
49 long treeID; 50 long treeID;
50 long automationNodeID; 51 long automationNodeID;
51 ActionType actionType; 52 ActionType actionType;
52 }; 53 };
53 54
55 dictionary PerformCustomActionParams {
56 long customActionID;
57 };
58
54 // Arguments for the setSelection action supplied to performAction. 59 // Arguments for the setSelection action supplied to performAction.
55 dictionary SetSelectionParams { 60 dictionary SetSelectionParams {
56 // Reuses ActionRequiredParams automationNodeID to mean anchor node id, 61 // Reuses ActionRequiredParams automationNodeID to mean anchor node id,
57 // and treeID to apply to both anchor and focus node ids. 62 // and treeID to apply to both anchor and focus node ids.
58 long focusNodeID; 63 long focusNodeID;
59 long anchorOffset; 64 long anchorOffset;
60 long focusOffset; 65 long focusOffset;
61 }; 66 };
62 67
63 // Arguments for the querySelector function. 68 // Arguments for the querySelector function.
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 long nodeID, 135 long nodeID,
131 DOMString changeType); 136 DOMString changeType);
132 137
133 static void onChildTreeID(long treeID, long nodeID); 138 static void onChildTreeID(long treeID, long nodeID);
134 139
135 static void onNodesRemoved(long treeID, long[] nodeIDs); 140 static void onNodesRemoved(long treeID, long[] nodeIDs);
136 141
137 static void onAccessibilityTreeSerializationError(long treeID); 142 static void onAccessibilityTreeSerializationError(long treeID);
138 }; 143 };
139 }; 144 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698