Chromium Code Reviews| 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 |
| 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 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 | |
|
Luis Héctor Chávez
2017/04/28 21:59:44
ah i forgot: [MinVersion=2]. You'll also need to b
David Tseng
2017/05/05 19:59:21
Done.
| |
| 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 Loading... | |
| 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 }; |
| OLD | NEW |