Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 // Structure representing the data associated with a Web Notification. | 13 // Structure representing the data associated with a Web Notification. |
| 14 struct WebNotificationData { | 14 struct WebNotificationData { |
| 15 enum Direction { | 15 enum Direction { |
| 16 DirectionLeftToRight, | 16 DirectionLeftToRight, |
| 17 DirectionRightToLeft | 17 DirectionRightToLeft |
| 18 }; | 18 }; |
| 19 | 19 |
| 20 WebNotificationData() | 20 WebNotificationData() |
| 21 : direction(DirectionLeftToRight) | 21 : direction(DirectionLeftToRight) |
| 22 , silent(false) | 22 , silent(false) |
| 23 { | 23 { |
| 24 } | 24 } |
| 25 | 25 |
| 26 WebNotificationData(const WebString& title, Direction direction, const WebSt ring& lang, const WebString& body, const WebString& tag, const WebURL& icon, boo l silent) | 26 WebNotificationData(const WebString& title, Direction direction, const WebSt ring& lang, const WebString& body, const WebString& tag, const WebURL& icon, boo l silent) |
|
Peter Beverloo
2015/03/16 11:19:30
Please add a FIXME to remove this constructor when
| |
| 27 : title(title) | 27 : title(title) |
| 28 , direction(direction) | 28 , direction(direction) |
| 29 , lang(lang) | 29 , lang(lang) |
| 30 , body(body) | 30 , body(body) |
| 31 , tag(tag) | 31 , tag(tag) |
| 32 , icon(icon) | 32 , icon(icon) |
| 33 , silent(silent) | 33 , silent(silent) |
| 34 { | 34 { |
| 35 } | 35 } |
| 36 | 36 |
| 37 WebNotificationData(const WebString& title, Direction direction, const WebSt ring& lang, const WebString& body, const WebString& tag, const WebURL& icon, boo l silent, const WebString& data) | |
| 38 : title(title) | |
| 39 , direction(direction) | |
| 40 , lang(lang) | |
| 41 , body(body) | |
| 42 , tag(tag) | |
| 43 , icon(icon) | |
| 44 , silent(silent) | |
| 45 , data(data) | |
| 46 { | |
| 47 } | |
| 48 | |
| 37 WebString title; | 49 WebString title; |
| 38 Direction direction; | 50 Direction direction; |
| 39 WebString lang; | 51 WebString lang; |
| 40 WebString body; | 52 WebString body; |
| 41 WebString tag; | 53 WebString tag; |
| 42 WebURL icon; | 54 WebURL icon; |
| 43 bool silent; | 55 bool silent; |
| 56 WebString data; | |
| 44 }; | 57 }; |
| 45 | 58 |
| 46 } // namespace blink | 59 } // namespace blink |
| 47 | 60 |
| 48 #endif // WebNotificationData_h | 61 #endif // WebNotificationData_h |
| OLD | NEW |