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

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

Issue 2319893002: Merge "arc: Defer notification surface creation" (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/arc/test/fake_notifications_instance.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/common/notifications.mojom
diff --git a/components/arc/common/notifications.mojom b/components/arc/common/notifications.mojom
index 22ebb8fc1363ce067c8fba4e5bbda333002e45fc..0bba915874e2144dcf81eeec6b39d5bba10d08af 100644
--- a/components/arc/common/notifications.mojom
+++ b/components/arc/common/notifications.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: 7
+// Next MinVersion: 8
module arc.mojom;
@@ -77,6 +77,11 @@ struct ArcNotificationData {
bool use_custom_notification;
[MinVersion=6]
ArcBitmap? small_icon;
+ // A snapshot image to show before the notification window is created.
+ [MinVersion=7]
+ ArcBitmap? snapshot_image;
+ [MinVersion=7]
+ float snapshot_image_scale;
};
[MinVersion=2]
@@ -121,4 +126,12 @@ interface NotificationsInstance {
// Sends an event from Chrome notification UI to Android.
// |event| is a type of occured event.
SendNotificationEventToAndroid@1(string key, ArcNotificationEvent event);
+
+ // Requests to Android side to create the notification window.
+ [MinVersion=7]
+ CreateNotificationWindow@2(string key);
+
+ // Requests to Android side to close the notification window.
+ [MinVersion=7]
+ CloseNotificationWindow@3(string key);
};
« no previous file with comments | « no previous file | components/arc/test/fake_notifications_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698