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

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

Issue 2318463002: arc: Make ChromeVox read an ARC custom notification (Closed)
Patch Set: remove unused field and include Created 4 years, 3 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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: 8 5 // Next MinVersion: 9
6 6
7 module arc.mojom; 7 module arc.mojom;
8 8
9 import "bitmap.mojom"; 9 import "bitmap.mojom";
10 10
11 // These values must be matched with the NOTIFICATION_EVENT_* constants in 11 // These values must be matched with the NOTIFICATION_EVENT_* constants in
12 // com.android.server.ArcNotificationListenerService. 12 // com.android.server.ArcNotificationListenerService.
13 enum ArcNotificationEvent { 13 enum ArcNotificationEvent {
14 BODY_CLICKED = 0, 14 BODY_CLICKED = 0,
15 CLOSED = 1, 15 CLOSED = 1,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // on notification update is ignored. 75 // on notification update is ignored.
76 [MinVersion=5] 76 [MinVersion=5]
77 bool use_custom_notification; 77 bool use_custom_notification;
78 [MinVersion=6] 78 [MinVersion=6]
79 ArcBitmap? small_icon; 79 ArcBitmap? small_icon;
80 // A snapshot image to show before the notification window is created. 80 // A snapshot image to show before the notification window is created.
81 [MinVersion=7] 81 [MinVersion=7]
82 ArcBitmap? snapshot_image; 82 ArcBitmap? snapshot_image;
83 [MinVersion=7] 83 [MinVersion=7]
84 float snapshot_image_scale; 84 float snapshot_image_scale;
85 // Accessibility text
86 [MinVersion=8]
87 string? accessible_name;
85 }; 88 };
86 89
87 [MinVersion=2] 90 [MinVersion=2]
88 struct ArcToastData { 91 struct ArcToastData {
89 // Unique identifier 92 // Unique identifier
90 string id; 93 string id;
91 // Toast text. 94 // Toast text.
92 string? text; 95 string? text;
93 // Toast duration in milliseconds. If -1, the toast will be displayed until 96 // Toast duration in milliseconds. If -1, the toast will be displayed until
94 // the dismiss button is clicked. 97 // the dismiss button is clicked.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 SendNotificationEventToAndroid@1(string key, ArcNotificationEvent event); 131 SendNotificationEventToAndroid@1(string key, ArcNotificationEvent event);
129 132
130 // Requests to Android side to create the notification window. 133 // Requests to Android side to create the notification window.
131 [MinVersion=7] 134 [MinVersion=7]
132 CreateNotificationWindow@2(string key); 135 CreateNotificationWindow@2(string key);
133 136
134 // Requests to Android side to close the notification window. 137 // Requests to Android side to close the notification window.
135 [MinVersion=7] 138 [MinVersion=7]
136 CloseNotificationWindow@3(string key); 139 CloseNotificationWindow@3(string key);
137 }; 140 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698