OLD | NEW |
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 12 matching lines...) Expand all Loading... |
23 // Next tag: 4 | 23 // Next tag: 4 |
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 optional string icon = 3; | 27 optional string icon = 3; |
28 } | 28 } |
29 | 29 |
30 // Actual data payload of the notification. This message is the protocol | 30 // Actual data payload of the notification. This message is the protocol |
31 // buffer meant to serialize the content::PlatformNotificationData structure. | 31 // buffer meant to serialize the content::PlatformNotificationData structure. |
32 // | 32 // |
33 // Next tag: 13 | 33 // Next tag: 14 |
34 message NotificationData { | 34 message NotificationData { |
35 enum Direction { | 35 enum Direction { |
36 LEFT_TO_RIGHT = 0; | 36 LEFT_TO_RIGHT = 0; |
37 RIGHT_TO_LEFT = 1; | 37 RIGHT_TO_LEFT = 1; |
38 AUTO = 2; | 38 AUTO = 2; |
39 } | 39 } |
40 | 40 |
41 optional string title = 1; | 41 optional string title = 1; |
42 optional Direction direction = 2; | 42 optional Direction direction = 2; |
43 optional string lang = 3; | 43 optional string lang = 3; |
44 optional string body = 4; | 44 optional string body = 4; |
45 optional string tag = 5; | 45 optional string tag = 5; |
46 optional string icon = 6; | 46 optional string icon = 6; |
47 repeated int32 vibration_pattern = 9 [packed=true]; | 47 repeated int32 vibration_pattern = 9 [packed=true]; |
48 optional int64 timestamp = 12; | 48 optional int64 timestamp = 12; |
| 49 optional bool renotify = 13; |
49 optional bool silent = 7; | 50 optional bool silent = 7; |
50 optional bool require_interaction = 11; | 51 optional bool require_interaction = 11; |
51 optional bytes data = 8; | 52 optional bytes data = 8; |
52 repeated NotificationAction actions = 10; | 53 repeated NotificationAction actions = 10; |
53 } | 54 } |
54 | 55 |
55 optional NotificationData notification_data = 4; | 56 optional NotificationData notification_data = 4; |
56 } | 57 } |
OLD | NEW |