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

Side by Side 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 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 syntax = "proto2"; 5 syntax = "proto2";
6 6
7 option optimize_for = LITE_RUNTIME; 7 option optimize_for = LITE_RUNTIME;
8 8
9 package content; 9 package content;
10 10
11 // Stores information about a Web Notification. This message is the protocol 11 // Stores information about a Web Notification. This message is the protocol
12 // buffer meant to serialize the content::NotificationDatabaseData structure. 12 // buffer meant to serialize the content::NotificationDatabaseData structure.
13 // 13 //
14 // Next tag: 5 14 // Next tag: 5
15 message NotificationDatabaseDataProto { 15 message NotificationDatabaseDataProto {
16 optional int64 notification_id = 1; 16 optional int64 notification_id = 1;
17 17
18 optional string origin = 2; 18 optional string origin = 2;
19 optional int64 service_worker_registration_id = 3; 19 optional int64 service_worker_registration_id = 3;
20 20
21 // A notification action, corresponds to content::PlatformNotificationAction.
22 //
23 // Next tag: 3
24 message NotificationAction {
25 optional string action = 1;
26 optional string title = 2;
27 }
28
21 // Actual data payload of the notification. This message is the protocol 29 // Actual data payload of the notification. This message is the protocol
22 // buffer meant to serialize the content::PlatformNotificationData structure. 30 // buffer meant to serialize the content::PlatformNotificationData structure.
23 // 31 //
24 // Next tag: 10 32 // Next tag: 11
25 message NotificationData { 33 message NotificationData {
26 enum Direction { 34 enum Direction {
27 LEFT_TO_RIGHT = 0; 35 LEFT_TO_RIGHT = 0;
28 RIGHT_TO_LEFT = 1; 36 RIGHT_TO_LEFT = 1;
29 } 37 }
30 38
31 optional string title = 1; 39 optional string title = 1;
32 optional Direction direction = 2; 40 optional Direction direction = 2;
33 optional string lang = 3; 41 optional string lang = 3;
34 optional string body = 4; 42 optional string body = 4;
35 optional string tag = 5; 43 optional string tag = 5;
36 optional string icon = 6; 44 optional string icon = 6;
37 repeated int32 vibration_pattern = 9 [packed=true]; 45 repeated int32 vibration_pattern = 9 [packed=true];
38 optional bool silent = 7; 46 optional bool silent = 7;
39 optional bytes data = 8; 47 optional bytes data = 8;
48 repeated NotificationAction actions = 10;
40 } 49 }
41 50
42 optional NotificationData notification_data = 4; 51 optional NotificationData notification_data = 4;
43 } 52 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698