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

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

Issue 2426193003: Re-land: Create AXAction and AXActionData as a way to simplify accessibility actions (Closed)
Patch Set: Rebase Created 4 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 10 matching lines...) Expand all
21 21
22 // The source of this event. 22 // The source of this event.
23 DOMString eventFrom; 23 DOMString eventFrom;
24 }; 24 };
25 25
26 // All possible actions that can be performed on automation nodes. 26 // All possible actions that can be performed on automation nodes.
27 enum ActionType { 27 enum ActionType {
28 focus, 28 focus,
29 doDefault, 29 doDefault,
30 makeVisible, 30 makeVisible,
31 setAccessibilityFocus,
31 setSelection, 32 setSelection,
32 showContextMenu 33 showContextMenu
33 }; 34 };
34 35
35 // Arguments required for all actions supplied to performAction. 36 // Arguments required for all actions supplied to performAction.
36 dictionary PerformActionRequiredParams { 37 dictionary PerformActionRequiredParams {
37 long treeID; 38 long treeID;
38 long automationNodeID; 39 long automationNodeID;
39 ActionType actionType; 40 ActionType actionType;
40 }; 41 };
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 static void onTreeChange(long observerID, 104 static void onTreeChange(long observerID,
104 long treeID, 105 long treeID,
105 long nodeID, 106 long nodeID,
106 DOMString changeType); 107 DOMString changeType);
107 108
108 static void onChildTreeID(long treeID, long nodeID); 109 static void onChildTreeID(long treeID, long nodeID);
109 110
110 static void onNodesRemoved(long treeID, long[] nodeIDs); 111 static void onNodesRemoved(long treeID, long[] nodeIDs);
111 }; 112 };
112 }; 113 };
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/automation.idl ('k') | content/browser/accessibility/android_granularity_movement_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698