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

Side by Side Diff: components/arc/common/accessibility_helper.mojom

Issue 2826423003: Expand Chrome OS ARC support to create one tree source per package (Closed)
Patch Set: Fake out WMHelper Created 3 years, 7 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 // Next MinVersion: 2 5 // Next MinVersion: 3
6 6
7 module arc.mojom; 7 module arc.mojom;
8 8
9 import "screen_rect.mojom"; 9 import "screen_rect.mojom";
10 10
11 // For future maintainers, each of the below enums were hand picked 11 // For future maintainers, each of the below enums were hand picked
12 // from their equivalents in the Android source. Keep them in the 12 // from their equivalents in the Android source. Keep them in the
13 // order given below and add as needed. The initial order matches the 13 // order given below and add as needed. The initial order matches the
14 // order they appear in source files. 14 // order they appear in source files.
15 15
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 // accessibility service. 149 // accessibility service.
150 [Extensible] 150 [Extensible]
151 enum AccessibilityFilterType { 151 enum AccessibilityFilterType {
152 // No events will be sent. 152 // No events will be sent.
153 OFF, 153 OFF,
154 154
155 // Only send focus events along with the source focus node. 155 // Only send focus events along with the source focus node.
156 FOCUS, 156 FOCUS,
157 157
158 // Send a complete tree from the event source's root for every event. 158 // Send a complete tree from the event source's root for every event.
159 ALL 159 ALL,
160
161 // Send complete subtrees for root nodes with whitelisted package names.
162 [MinVersion=2]WHITELISTED_PACKAGE_NAME
160 }; 163 };
161 164
162 // AccessibilityEventData is a struct to contain info of 165 // AccessibilityEventData is a struct to contain info of
163 // AccessibilityEvent in Android. 166 // AccessibilityEvent in Android.
164 // https://developer.android.com/reference/android/view/accessibility/Accessibil ityEvent.html 167 // https://developer.android.com/reference/android/view/accessibility/Accessibil ityEvent.html
165 struct AccessibilityEventData { 168 struct AccessibilityEventData {
166 AccessibilityEventType eventType; 169 AccessibilityEventType eventType;
167 int32 sourceId; 170 int32 sourceId;
168 array<AccessibilityNodeInfoData> nodeData; 171 array<AccessibilityNodeInfoData> nodeData;
169 }; 172 };
(...skipping 11 matching lines...) Expand all
181 // Next method ID: 3 184 // Next method ID: 3
182 interface AccessibilityHelperInstance { 185 interface AccessibilityHelperInstance {
183 Init@0(AccessibilityHelperHost host); 186 Init@0(AccessibilityHelperHost host);
184 187
185 // Perform the specified action on a node requested by a Chrome client. 188 // Perform the specified action on a node requested by a Chrome client.
186 PerformAction@1(int32 id, AccessibilityActionType action); 189 PerformAction@1(int32 id, AccessibilityActionType action);
187 190
188 // Set a filter on the event types received. 191 // Set a filter on the event types received.
189 SetFilter@2(AccessibilityFilterType filterType); 192 SetFilter@2(AccessibilityFilterType filterType);
190 }; 193 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698