| 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 DirectionAuto |
| 18 }; | 19 }; |
| 19 | 20 |
| 20 WebNotificationData() | 21 WebNotificationData() |
| 21 : direction(DirectionLeftToRight) | 22 : direction(DirectionAuto) |
| 22 , silent(false) | 23 , silent(false) |
| 23 { | 24 { |
| 24 } | 25 } |
| 25 | 26 |
| 26 // FIXME: Remove this constructor when Chromium has switched to the new one. | 27 // FIXME: Remove this constructor when Chromium has switched to the new one. |
| 27 WebNotificationData(const WebString& title, Direction direction, const WebSt
ring& lang, const WebString& body, const WebString& tag, const WebURL& icon, boo
l silent) | 28 WebNotificationData(const WebString& title, Direction direction, const WebSt
ring& lang, const WebString& body, const WebString& tag, const WebURL& icon, boo
l silent) |
| 28 : title(title) | 29 : title(title) |
| 29 , direction(direction) | 30 , direction(direction) |
| 30 , lang(lang) | 31 , lang(lang) |
| 31 , body(body) | 32 , body(body) |
| (...skipping 21 matching lines...) Expand all Loading... |
| 53 WebString body; | 54 WebString body; |
| 54 WebString tag; | 55 WebString tag; |
| 55 WebURL icon; | 56 WebURL icon; |
| 56 bool silent; | 57 bool silent; |
| 57 WebString data; | 58 WebString data; |
| 58 }; | 59 }; |
| 59 | 60 |
| 60 } // namespace blink | 61 } // namespace blink |
| 61 | 62 |
| 62 #endif // WebNotificationData_h | 63 #endif // WebNotificationData_h |
| OLD | NEW |