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

Unified Diff: components/arc/common/accessibility_helper.mojom

Issue 2559663002: Support focus highlight in Android window (Closed)
Patch Set: Fix a comment. Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: components/arc/common/accessibility_helper.mojom
diff --git a/components/arc/common/accessibility_helper.mojom b/components/arc/common/accessibility_helper.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..e23f8fdb5963d4dda560dfdefb6ce8b7b13be03d
--- /dev/null
+++ b/components/arc/common/accessibility_helper.mojom
@@ -0,0 +1,35 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Next MinVersion: 1
+
+module arc.mojom;
+
+import "screen_rect.mojom";
+
+// AccessibilityEventType is a enum which corresponds to event types of
+// AccessibilityEvent in Android.
+[Extensible]
+enum AccessibilityEventType {
+ VIEW_FOCUSED,
+};
+
+// AccessibilityNodeInfoData is a struct to contain info of
+// AccessibilityNodeInfo in Android.
dcheng 2017/01/24 09:36:56 Nit: I'm not sure how stable Android documentation
yawano 2017/01/24 11:18:09 Done.
+struct AccessibilityNodeInfoData {
+ ScreenRect boundsInScreen;
+};
+
+// Next method ID: 1
+interface AccessibilityHelperHost {
+ // OnAccessibilityEvent is called when a converted Android accessibility event
+ // is sent from Android.
+ OnAccessibilityEvent@0(AccessibilityEventType eventType,
+ AccessibilityNodeInfoData eventSource);
+};
+
+// Next method ID: 1
+interface AccessibilityHelperInstance {
+ Init@0(AccessibilityHelperHost host);
+};

Powered by Google App Engine
This is Rietveld 408576698