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

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: 1->n mapping from package name to task ids. Created 3 years, 8 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: 2
6 6
7 module arc.mojom; 7 module arc.mojom;
8 8
9 import "screen_rect.mojom"; 9 import "screen_rect.mojom";
10 10
(...skipping 138 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 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 };
170 173
171 // Next method ID: 2 174 // Next method ID: 2
172 interface AccessibilityHelperHost { 175 interface AccessibilityHelperHost {
173 OnAccessibilityEventDeprecated@0(AccessibilityEventType eventType, 176 OnAccessibilityEventDeprecated@0(AccessibilityEventType eventType,
174 AccessibilityNodeInfoData? eventSource); 177 AccessibilityNodeInfoData? eventSource);
175 178
176 // OnAccessibilityEvent is called when a converted Android accessibility event 179 // OnAccessibilityEvent is called when a converted Android accessibility event
177 // is sent from Android. 180 // is sent from Android.
178 OnAccessibilityEvent@1(AccessibilityEventData eventData); 181 OnAccessibilityEvent@1(AccessibilityEventData eventData);
179 }; 182 };
180 183
181 // Next method ID: 3 184 // Next method ID: 4
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);
193
194 // Sets native Chrome accessibility support on or off for the current package.
195 SetCurrentPackageNativeAccessibility@3(bool enabled);
yawano 2017/04/27 10:01:27 Wouldn't this cause race condition? i.e. current p
David Tseng 2017/04/28 00:27:44 Yes, you're right. I was adding this to avoid anot
190 }; 196 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698