OLD | NEW |
---|---|
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 |
Luis Héctor Chávez
2017/04/21 15:20:07
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 Loading... | |
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 | |
yawano
2017/04/21 04:26:36
small nit: WHITELISTED_PACKAGE_NAMES?
David Tseng
2017/04/25 18:29:48
I thought about that but the others are singular.
| |
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: 3 |
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); |
182 | |
183 // onAccessibilityTreeDestroyed gets called when the Android accessibility | |
184 // tree becomes invalid. | |
185 OnAccessibilityTreeDestroyed@2(); | |
Luis Héctor Chávez
2017/04/21 15:20:07
[MinVersion=2] OnAccessibilityTreeDestroyed@2();
David Tseng
2017/04/25 18:29:48
Acknowledged.
| |
179 }; | 186 }; |
180 | 187 |
181 // Next method ID: 3 | 188 // Next method ID: 3 |
182 interface AccessibilityHelperInstance { | 189 interface AccessibilityHelperInstance { |
183 Init@0(AccessibilityHelperHost host); | 190 Init@0(AccessibilityHelperHost host); |
184 | 191 |
185 // Perform the specified action on a node requested by a Chrome client. | 192 // Perform the specified action on a node requested by a Chrome client. |
186 PerformAction@1(int32 id, AccessibilityActionType action); | 193 PerformAction@1(int32 id, AccessibilityActionType action); |
187 | 194 |
188 // Set a filter on the event types received. | 195 // Set a filter on the event types received. |
189 SetFilter@2(AccessibilityFilterType filterType); | 196 SetFilter@2(AccessibilityFilterType filterType); |
190 }; | 197 }; |
OLD | NEW |