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

Side by Side Diff: components/arc/common/accessibility_helper.mojom

Issue 2640123004: Initial support for native accessibility in ARC (Closed)
Patch Set: Experimental changes Created 3 years, 10 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
« no previous file with comments | « chromeos/chromeos_switches.cc ('k') | components/exo/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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: 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 };
OLDNEW
« no previous file with comments | « chromeos/chromeos_switches.cc ('k') | components/exo/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698