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

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

Issue 1226613002: [WIP] Implement sound attr in notification Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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 | « Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp ('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 11
12 namespace blink { 12 namespace blink {
13 13
14 // Structure representing the data associated with a Web Notification. 14 // Structure representing the data associated with a Web Notification.
15 struct WebNotificationData { 15 struct WebNotificationData {
16 enum Direction { 16 enum Direction {
17 DirectionLeftToRight, 17 DirectionLeftToRight,
18 DirectionRightToLeft 18 DirectionRightToLeft
19 }; 19 };
20 20
21 WebNotificationData() 21 WebNotificationData()
22 : direction(DirectionLeftToRight) 22 : direction(DirectionLeftToRight)
23 , silent(false) 23 , silent(false)
24 { 24 {
25 } 25 }
26 26
27 WebNotificationData(const WebString& title, Direction direction, const WebSt ring& lang, const WebString& body, const WebString& tag, const WebURL& icon, con st WebVector<int>& vibrate, bool silent, const WebVector<char>& data) 27 WebNotificationData(const WebString& title, Direction direction, const WebSt ring& lang, const WebString& body, const WebString& tag, const WebURL& icon, con st WebURL& sound, const WebVector<int>& vibrate, bool silent, const WebVector<ch ar>& data)
28 : title(title) 28 : title(title)
29 , direction(direction) 29 , direction(direction)
30 , lang(lang) 30 , lang(lang)
31 , body(body) 31 , body(body)
32 , tag(tag) 32 , tag(tag)
33 , icon(icon) 33 , icon(icon)
34 , sound(sound)
34 , vibrate(vibrate) 35 , vibrate(vibrate)
35 , silent(silent) 36 , silent(silent)
36 , data(data) 37 , data(data)
37 { 38 {
38 } 39 }
39 40
40 WebString title; 41 WebString title;
41 Direction direction; 42 Direction direction;
42 WebString lang; 43 WebString lang;
43 WebString body; 44 WebString body;
44 WebString tag; 45 WebString tag;
45 WebURL icon; 46 WebURL icon;
47 WebURL sound;
46 WebVector<int> vibrate; 48 WebVector<int> vibrate;
47 bool silent; 49 bool silent;
48 WebVector<char> data; 50 WebVector<char> data;
49 }; 51 };
50 52
51 } // namespace blink 53 } // namespace blink
52 54
53 #endif // WebNotificationData_h 55 #endif // WebNotificationData_h
OLDNEW
« no previous file with comments | « Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698