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