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

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

Issue 1042513002: Add the vibrate attribute to the Notification object (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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/vibration/NavigatorVibration.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"
(...skipping 18 matching lines...) Expand all
29 : title(title) 29 : title(title)
30 , direction(direction) 30 , direction(direction)
31 , lang(lang) 31 , lang(lang)
32 , body(body) 32 , body(body)
33 , tag(tag) 33 , tag(tag)
34 , icon(icon) 34 , icon(icon)
35 , silent(silent) 35 , silent(silent)
36 { 36 {
37 } 37 }
38 38
39 // FIXME: Remove this constructor when Chromium has switched to the new one.
39 WebNotificationData(const WebString& title, Direction direction, const WebSt ring& lang, const WebString& body, const WebString& tag, const WebURL& icon, boo l silent, const WebVector<char>& data) 40 WebNotificationData(const WebString& title, Direction direction, const WebSt ring& lang, const WebString& body, const WebString& tag, const WebURL& icon, boo l silent, const WebVector<char>& data)
40 : title(title) 41 : title(title)
41 , direction(direction) 42 , direction(direction)
42 , lang(lang) 43 , lang(lang)
43 , body(body) 44 , body(body)
44 , tag(tag) 45 , tag(tag)
45 , icon(icon) 46 , icon(icon)
46 , silent(silent) 47 , silent(silent)
47 , data(data) 48 , data(data)
48 { 49 {
49 } 50 }
50 51
52 WebNotificationData(const WebString& title, Direction direction, const WebSt ring& lang, const WebString& body, const WebString& tag, const WebURL& icon, con st WebVector<unsigned>& vibrate, bool silent, const WebVector<char>& data)
53 : title(title)
54 , direction(direction)
55 , lang(lang)
56 , body(body)
57 , tag(tag)
58 , icon(icon)
59 , vibrate(vibrate)
60 , silent(silent)
61 , data(data)
62 {
63 }
64
51 WebString title; 65 WebString title;
52 Direction direction; 66 Direction direction;
53 WebString lang; 67 WebString lang;
54 WebString body; 68 WebString body;
55 WebString tag; 69 WebString tag;
56 WebURL icon; 70 WebURL icon;
71 WebVector<unsigned> vibrate;
57 bool silent; 72 bool silent;
58 WebVector<char> data; 73 WebVector<char> data;
59 }; 74 };
60 75
61 } // namespace blink 76 } // namespace blink
62 77
63 #endif // WebNotificationData_h 78 #endif // WebNotificationData_h
OLDNEW
« no previous file with comments | « Source/modules/vibration/NavigatorVibration.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698