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

Side by Side Diff: content/browser/notifications/notification_database_data.proto

Issue 1855443002: Implement receiving side of web notification inline replies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added test and removed unnecessary code. Created 4 years, 8 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
« no previous file with comments | « no previous file | content/browser/notifications/notification_database_data_conversions.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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. 21 // A notification action, corresponds to content::PlatformNotificationAction.
22 // 22 //
23 // Next tag: 4 23 // Next tag: 6
24 message NotificationAction { 24 message NotificationAction {
25 // Corresponds to PlatformNotificationActionType.
26 enum Type {
27 BUTTON = 0;
28 TEXT = 1;
29 }
30
25 optional string action = 1; 31 optional string action = 1;
26 optional string title = 2; 32 optional string title = 2;
27 optional string icon = 3; 33 optional string icon = 3;
34 optional Type type = 4;
35 optional string placeholder = 5;
28 } 36 }
29 37
30 // Actual data payload of the notification. This message is the protocol 38 // Actual data payload of the notification. This message is the protocol
31 // buffer meant to serialize the content::PlatformNotificationData structure. 39 // buffer meant to serialize the content::PlatformNotificationData structure.
32 // 40 //
33 // Next tag: 15 41 // Next tag: 15
34 message NotificationData { 42 message NotificationData {
35 enum Direction { 43 enum Direction {
36 LEFT_TO_RIGHT = 0; 44 LEFT_TO_RIGHT = 0;
37 RIGHT_TO_LEFT = 1; 45 RIGHT_TO_LEFT = 1;
(...skipping 11 matching lines...) Expand all
49 optional int64 timestamp = 12; 57 optional int64 timestamp = 12;
50 optional bool renotify = 13; 58 optional bool renotify = 13;
51 optional bool silent = 7; 59 optional bool silent = 7;
52 optional bool require_interaction = 11; 60 optional bool require_interaction = 11;
53 optional bytes data = 8; 61 optional bytes data = 8;
54 repeated NotificationAction actions = 10; 62 repeated NotificationAction actions = 10;
55 } 63 }
56 64
57 optional NotificationData notification_data = 4; 65 optional NotificationData notification_data = 4;
58 } 66 }
OLDNEW
« no previous file with comments | « no previous file | content/browser/notifications/notification_database_data_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698