blob: 005e7c8a10c251a58af42ef7a5d9510c2ded3d94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
syntax = "proto2";
option optimize_for = LITE_RUNTIME;
package content;
// Stores information about a Web Notification. This message is the protocol
// buffer meant to serialize the content::NotificationDatabaseData structure.
//
// Next tag: 6
message NotificationDatabaseDataProto {
// DEPRECATED: Use |notification_id| instead.
optional int64 persistent_notification_id = 1;
optional string notification_id = 5;
optional string origin = 2;
optional int64 service_worker_registration_id = 3;
// A notification action, corresponds to content::PlatformNotificationAction.
//
// Next tag: 6
message NotificationAction {
// Corresponds to PlatformNotificationActionType.
enum Type {
BUTTON = 0;
TEXT = 1;
}
optional string action = 1;
optional string title = 2;
optional string icon = 3;
optional Type type = 4;
optional string placeholder = 5;
}
// Actual data payload of the notification. This message is the protocol
// buffer meant to serialize the content::PlatformNotificationData structure.
//
// Next tag: 16
message NotificationData {
enum Direction {
LEFT_TO_RIGHT = 0;
RIGHT_TO_LEFT = 1;
AUTO = 2;
}
optional string title = 1;
optional Direction direction = 2;
optional string lang = 3;
optional string body = 4;
optional string tag = 5;
optional string image = 15;
optional string icon = 6;
optional string badge = 14;
repeated int32 vibration_pattern = 9 [packed=true];
optional int64 timestamp = 12;
optional bool renotify = 13;
optional bool silent = 7;
optional bool require_interaction = 11;
optional bytes data = 8;
repeated NotificationAction actions = 10;
}
optional NotificationData notification_data = 4;
}
|