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: 1 | 5 // Next MinVersion: 1 |
| 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 // AccessibilityEventType is a enum which corresponds to event types of | 11 // AccessibilityEventType is a enum which corresponds to event types of |
| 12 // AccessibilityEvent in Android. | 12 // AccessibilityEvent in Android. |
| 13 // https://developer.android.com/reference/android/view/accessibility/Accessibil ityEvent.html | 13 // https://developer.android.com/reference/android/view/accessibility/Accessibil ityEvent.html |
| 14 [Extensible] | 14 [Extensible] |
| 15 enum AccessibilityEventType { | 15 enum AccessibilityEventType { |
| 16 VIEW_FOCUSED, | 16 VIEW_FOCUSED, |
| 17 }; | 17 }; |
| 18 | 18 |
| 19 // AccessibilityNodeInfoData is a struct to contain info of | 19 // AccessibilityNodeInfoData is a struct to contain info of |
| 20 // AccessibilityNodeInfo in Android. | 20 // AccessibilityNodeInfo in Android. |
| 21 // https://developer.android.com/reference/android/view/accessibility/Accessibil ityNodeInfo.html | 21 // https://developer.android.com/reference/android/view/accessibility/Accessibil ityNodeInfo.html |
| 22 struct AccessibilityNodeInfoData { | 22 struct AccessibilityNodeInfoData { |
| 23 ScreenRect boundsInScreen; | 23 ScreenRect boundsInScreen; |
| 24 int32 id; | |
| 25 string contentDescription; | |
| 26 string text; | |
| 27 string className; | |
| 28 array<int32> childIds; | |
| 29 }; | |
| 30 | |
| 31 // AccessibilityEventData is a struct to contain info of | |
| 32 // AccessibilityEvent in Android. | |
| 33 // https://developer.android.com/reference/android/view/accessibility/Accessibil ityEvent.html | |
| 34 struct AccessibilityEventData { | |
| 35 AccessibilityEventType eventType; | |
| 36 int32 sourceId; | |
| 37 array<AccessibilityNodeInfoData> nodeData; | |
|
yawano
2017/02/08 11:11:27
What data is expected to this nodeData field? Is t
David Tseng
2017/02/08 18:49:26
The whole tree rooted at the source node's root wi
| |
| 24 }; | 38 }; |
| 25 | 39 |
| 26 // Next method ID: 1 | 40 // Next method ID: 1 |
| 27 interface AccessibilityHelperHost { | 41 interface AccessibilityHelperHost { |
| 28 // OnAccessibilityEvent is called when a converted Android accessibility event | 42 // OnAccessibilityEvent is called when a converted Android accessibility event |
| 29 // is sent from Android. | 43 // is sent from Android. |
| 30 OnAccessibilityEvent@0(AccessibilityEventType eventType, | 44 OnAccessibilityEvent@0(AccessibilityEventData eventData); |
| 31 AccessibilityNodeInfoData? eventSource); | |
| 32 }; | 45 }; |
| 33 | 46 |
| 34 // Next method ID: 1 | 47 // Next method ID: 1 |
| 35 interface AccessibilityHelperInstance { | 48 interface AccessibilityHelperInstance { |
| 36 Init@0(AccessibilityHelperHost host); | 49 Init@0(AccessibilityHelperHost host); |
| 37 }; | 50 }; |
| OLD | NEW |