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

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

Issue 1388483002: Implement the Notification `timestamp` property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
(...skipping 11 matching lines...) Expand all
22 // 22 //
23 // Next tag: 3 23 // Next tag: 3
24 message NotificationAction { 24 message NotificationAction {
25 optional string action = 1; 25 optional string action = 1;
26 optional string title = 2; 26 optional string title = 2;
27 } 27 }
28 28
29 // Actual data payload of the notification. This message is the protocol 29 // Actual data payload of the notification. This message is the protocol
30 // buffer meant to serialize the content::PlatformNotificationData structure. 30 // buffer meant to serialize the content::PlatformNotificationData structure.
31 // 31 //
32 // Next tag: 12 32 // Next tag: 13
33 message NotificationData { 33 message NotificationData {
34 enum Direction { 34 enum Direction {
35 LEFT_TO_RIGHT = 0; 35 LEFT_TO_RIGHT = 0;
36 RIGHT_TO_LEFT = 1; 36 RIGHT_TO_LEFT = 1;
37 AUTO = 2; 37 AUTO = 2;
38 } 38 }
39 39
40 optional string title = 1; 40 optional string title = 1;
41 optional Direction direction = 2; 41 optional Direction direction = 2;
42 optional string lang = 3; 42 optional string lang = 3;
43 optional string body = 4; 43 optional string body = 4;
44 optional string tag = 5; 44 optional string tag = 5;
45 optional string icon = 6; 45 optional string icon = 6;
46 repeated int32 vibration_pattern = 9 [packed=true]; 46 repeated int32 vibration_pattern = 9 [packed=true];
47 optional int64 timestamp = 12;
47 optional bool silent = 7; 48 optional bool silent = 7;
48 optional bool require_interaction = 11; 49 optional bool require_interaction = 11;
49 optional bytes data = 8; 50 optional bytes data = 8;
50 repeated NotificationAction actions = 10; 51 repeated NotificationAction actions = 10;
51 } 52 }
52 53
53 optional NotificationData notification_data = 4; 54 optional NotificationData notification_data = 4;
54 } 55 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698