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

Side by Side Diff: third_party/WebKit/public/platform/modules/notifications/WebNotificationData.h

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
« no previous file with comments | « third_party/WebKit/Source/modules/notifications/NotificationOptions.idl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef WebNotificationData_h 5 #ifndef WebNotificationData_h
6 #define WebNotificationData_h 6 #define WebNotificationData_h
7 7
8 #include "public/platform/WebString.h" 8 #include "public/platform/WebString.h"
9 #include "public/platform/WebURL.h" 9 #include "public/platform/WebURL.h"
10 #include "public/platform/WebVector.h" 10 #include "public/platform/WebVector.h"
11 #include "public/platform/modules/notifications/WebNotificationAction.h" 11 #include "public/platform/modules/notifications/WebNotificationAction.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 // Structure representing the data associated with a Web Notification. 15 // Structure representing the data associated with a Web Notification.
16 struct WebNotificationData { 16 struct WebNotificationData {
17 enum Direction { 17 enum Direction {
18 DirectionLeftToRight, 18 DirectionLeftToRight,
19 DirectionRightToLeft, 19 DirectionRightToLeft,
20 DirectionAuto 20 DirectionAuto
21 }; 21 };
22 22
23 WebString title; 23 WebString title;
24 Direction direction = DirectionLeftToRight; 24 Direction direction = DirectionLeftToRight;
25 WebString lang; 25 WebString lang;
26 WebString body; 26 WebString body;
27 WebString tag; 27 WebString tag;
28 WebURL icon; 28 WebURL icon;
29 WebVector<int> vibrate; 29 WebVector<int> vibrate;
30 double timestamp = 0;
30 bool silent = false; 31 bool silent = false;
31 bool requireInteraction = false; 32 bool requireInteraction = false;
32 WebVector<char> data; 33 WebVector<char> data;
33 WebVector<WebNotificationAction> actions; 34 WebVector<WebNotificationAction> actions;
34 }; 35 };
35 36
36 } // namespace blink 37 } // namespace blink
37 38
38 #endif // WebNotificationData_h 39 #endif // WebNotificationData_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/notifications/NotificationOptions.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698