| 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: 3 | 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 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 [Extensible] | 130 [Extensible] |
| 131 enum AccessibilityIntListProperty { | 131 enum AccessibilityIntListProperty { |
| 132 CHILD_NODE_IDS, | 132 CHILD_NODE_IDS, |
| 133 ACTIONS | 133 ACTIONS |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 // AccessibilityNodeInfoData is a struct to contain info of | 136 // AccessibilityNodeInfoData is a struct to contain info of |
| 137 // AccessibilityNodeInfo in Android. | 137 // AccessibilityNodeInfo in Android. |
| 138 // https://developer.android.com/reference/android/view/accessibility/Accessibil
ityNodeInfo.html | 138 // https://developer.android.com/reference/android/view/accessibility/Accessibil
ityNodeInfo.html |
| 139 struct AccessibilityNodeInfoData { | 139 struct AccessibilityNodeInfoData { |
| 140 ScreenRect boundsInScreen; | 140 ScreenRect bounds_in_screen; |
| 141 [MinVersion=1]int32 id; | 141 [MinVersion=1]int32 id; |
| 142 [MinVersion=1]map<AccessibilityBooleanProperty, bool>? booleanProperties; | 142 [MinVersion=1]map<AccessibilityBooleanProperty, bool>? boolean_properties; |
| 143 [MinVersion=1]map<AccessibilityStringProperty, string>? stringProperties; | 143 [MinVersion=1]map<AccessibilityStringProperty, string>? string_properties; |
| 144 [MinVersion=1]map<AccessibilityIntProperty, int32>? intProperties; | 144 [MinVersion=1]map<AccessibilityIntProperty, int32>? int_properties; |
| 145 [MinVersion=1]map<AccessibilityIntListProperty, array<int32>>? intListProperti
es; | 145 [MinVersion=1] |
| 146 map<AccessibilityIntListProperty, array<int32>>? int_list_properties; |
| 146 }; | 147 }; |
| 147 | 148 |
| 148 // Filters the event type (and implicitly the data) sent by the ARC | 149 // Filters the event type (and implicitly the data) sent by the ARC |
| 149 // accessibility service. | 150 // accessibility service. |
| 150 [Extensible] | 151 [Extensible] |
| 151 enum AccessibilityFilterType { | 152 enum AccessibilityFilterType { |
| 152 // No events will be sent. | 153 // No events will be sent. |
| 153 OFF, | 154 OFF, |
| 154 | 155 |
| 155 // Only send focus events along with the source focus node. | 156 // Only send focus events along with the source focus node. |
| 156 FOCUS, | 157 FOCUS, |
| 157 | 158 |
| 158 // Send a complete tree from the event source's root for every event. | 159 // Send a complete tree from the event source's root for every event. |
| 159 ALL, | 160 ALL, |
| 160 | 161 |
| 161 // Send complete subtrees for root nodes with whitelisted package names. | 162 // Send complete subtrees for root nodes with whitelisted package names. |
| 162 [MinVersion=2]WHITELISTED_PACKAGE_NAME | 163 [MinVersion=2]WHITELISTED_PACKAGE_NAME |
| 163 }; | 164 }; |
| 164 | 165 |
| 165 // AccessibilityEventData is a struct to contain info of | 166 // AccessibilityEventData is a struct to contain info of |
| 166 // AccessibilityEvent in Android. | 167 // AccessibilityEvent in Android. |
| 167 // https://developer.android.com/reference/android/view/accessibility/Accessibil
ityEvent.html | 168 // https://developer.android.com/reference/android/view/accessibility/Accessibil
ityEvent.html |
| 168 struct AccessibilityEventData { | 169 struct AccessibilityEventData { |
| 169 AccessibilityEventType eventType; | 170 AccessibilityEventType event_type; |
| 170 int32 sourceId; | 171 int32 source_id; |
| 171 array<AccessibilityNodeInfoData> nodeData; | 172 array<AccessibilityNodeInfoData> node_data; |
| 172 }; | 173 }; |
| 173 | 174 |
| 174 // Next method ID: 2 | 175 // Next method ID: 2 |
| 175 interface AccessibilityHelperHost { | 176 interface AccessibilityHelperHost { |
| 176 OnAccessibilityEventDeprecated@0(AccessibilityEventType eventType, | 177 OnAccessibilityEventDeprecated@0(AccessibilityEventType event_type, |
| 177 AccessibilityNodeInfoData? eventSource); | 178 AccessibilityNodeInfoData? event_source); |
| 178 | 179 |
| 179 // OnAccessibilityEvent is called when a converted Android accessibility event | 180 // OnAccessibilityEvent is called when a converted Android accessibility event |
| 180 // is sent from Android. | 181 // is sent from Android. |
| 181 OnAccessibilityEvent@1(AccessibilityEventData eventData); | 182 OnAccessibilityEvent@1(AccessibilityEventData event_data); |
| 182 }; | 183 }; |
| 183 | 184 |
| 184 // Next method ID: 3 | 185 // Next method ID: 3 |
| 185 interface AccessibilityHelperInstance { | 186 interface AccessibilityHelperInstance { |
| 186 Init@0(AccessibilityHelperHost host); | 187 Init@0(AccessibilityHelperHost host); |
| 187 | 188 |
| 188 // Perform the specified action on a node requested by a Chrome client. | 189 // Perform the specified action on a node requested by a Chrome client. |
| 189 PerformAction@1(int32 id, AccessibilityActionType action); | 190 PerformAction@1(int32 id, AccessibilityActionType action); |
| 190 | 191 |
| 191 // Set a filter on the event types received. | 192 // Set a filter on the event types received. |
| 192 SetFilter@2(AccessibilityFilterType filterType); | 193 SetFilter@2(AccessibilityFilterType filter_type); |
| 193 }; | 194 }; |
| OLD | NEW |