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

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

Issue 2873373005: Add custom action support (Closed)
Patch Set: Fix format. Created 3 years, 6 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
index f3651b2356a5288163b4f727844bdd1ed15d7ecf..730bdda44107d83437dad8f6943eedf310f7ff7b 100644
--- a/components/arc/common/accessibility_helper.mojom
+++ b/components/arc/common/accessibility_helper.mojom
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Next MinVersion: 3
+// Next MinVersion: 4
module arc.mojom;
@@ -69,7 +69,15 @@ enum AccessibilityActionType {
EXPAND,
COLLAPSE,
DISMISS,
- SET_TEXT
+ SET_TEXT,
+ CONTEXT_CLICK,
+ SCROLL_DOWN,
+ SCROLL_LEFT,
+ SCROLL_RIGHT,
+ SCROLL_TO_POSITION,
+ SCROLL_UP,
+ SET_PROGRESS,
+ SHOW_ON_SCREEN
};
// Possible boolean properties set on an AccessibilityNodeInfo.
@@ -130,7 +138,13 @@ enum AccessibilityIntProperty {
[Extensible]
enum AccessibilityIntListProperty {
CHILD_NODE_IDS,
- ACTIONS
+ ACTIONS,
David Tseng 2017/06/08 17:21:59 This doesn't appear to be used. It might be safe t
yawano 2017/06/13 06:58:47 Done.
+ CUSTOM_ACTION_IDS
+};
+
+[Extensible]
+enum AccessibilityStringListProperty {
+ CUSTOM_ACTION_DESCRIPTIONS
};
// AccessibilityNodeInfoData is a struct to contain info of
@@ -144,6 +158,7 @@ struct AccessibilityNodeInfoData {
[MinVersion=1]map<AccessibilityIntProperty, int32>? int_properties;
[MinVersion=1]
map<AccessibilityIntListProperty, array<int32>>? int_list_properties;
+ [MinVersion=3]map<AccessibilityStringListProperty, array<string>>? string_list_properties;
};
// Filters the event type (and implicitly the data) sent by the ARC
@@ -182,7 +197,7 @@ interface AccessibilityHelperHost {
OnAccessibilityEvent@1(AccessibilityEventData event_data);
};
-// Next method ID: 3
+// Next method ID: 4
interface AccessibilityHelperInstance {
Init@0(AccessibilityHelperHost host);
@@ -191,4 +206,7 @@ interface AccessibilityHelperInstance {
// Set a filter on the event types received.
SetFilter@2(AccessibilityFilterType filter_type);
+
+ // Perform a custom action on a node requested by a Chrome client.
+ [MinVersion=3]PerformCustomAction@3(int32 id, int32 custom_action_id);
David Tseng 2017/06/08 17:21:59 Considering we might want just one action list in
yawano 2017/06/09 08:03:01 I would prefer to keep standard action and custom
David Tseng 2017/06/09 18:01:32 I should be more clear. I was thinking: performAct
yawano 2017/06/12 01:46:52 My point was that it would make sense to keep stan
David Tseng 2017/06/12 16:55:01 Totally understood. However, the automation api pa
yawano 2017/06/13 06:58:47 Changed PerformAction to take AccessibilityActionD
};

Powered by Google App Engine
This is Rietveld 408576698