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

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

Issue 2261283002: Add Notification images (Blink + desktop implementation) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check IPC drawsNothing rather than isNull Created 4 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
(...skipping 20 matching lines...) Expand all
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698