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

Unified Diff: content/browser/notifications/notification_database_data.proto

Issue 1267673003: Plumb Blink notification actions to button UI on desktop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix size_t Created 5 years, 4 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: content/browser/notifications/notification_database_data.proto
diff --git a/content/browser/notifications/notification_database_data.proto b/content/browser/notifications/notification_database_data.proto
index 5d8fe20c6eb264aa3c55ee10b50781bc8d1a996a..e8aa5dfea05c6635a43ba9a742e05e47e38c3fe0 100644
--- a/content/browser/notifications/notification_database_data.proto
+++ b/content/browser/notifications/notification_database_data.proto
@@ -18,10 +18,18 @@ message NotificationDatabaseDataProto {
optional string origin = 2;
optional int64 service_worker_registration_id = 3;
+ // A notification action, corresponds to content::PlatformNotificationAction.
+ //
+ // Next tag: 3
+ message NotificationAction {
+ optional string action = 1;
+ optional string title = 2;
+ }
+
// Actual data payload of the notification. This message is the protocol
// buffer meant to serialize the content::PlatformNotificationData structure.
//
- // Next tag: 10
+ // Next tag: 11
message NotificationData {
enum Direction {
LEFT_TO_RIGHT = 0;
@@ -37,6 +45,7 @@ message NotificationDatabaseDataProto {
repeated int32 vibration_pattern = 9 [packed=true];
optional bool silent = 7;
optional bytes data = 8;
+ repeated NotificationAction actions = 10;
}
optional NotificationData notification_data = 4;

Powered by Google App Engine
This is Rietveld 408576698