| 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 #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 image; |
| 28 WebURL icon; | 29 WebURL icon; |
| 29 WebURL badge; | 30 WebURL badge; |
| 30 WebVector<int> vibrate; | 31 WebVector<int> vibrate; |
| 31 double timestamp = 0; | 32 double timestamp = 0; |
| 32 bool renotify = false; | 33 bool renotify = false; |
| 33 bool silent = false; | 34 bool silent = false; |
| 34 bool requireInteraction = false; | 35 bool requireInteraction = false; |
| 35 WebVector<char> data; | 36 WebVector<char> data; |
| 36 WebVector<WebNotificationAction> actions; | 37 WebVector<WebNotificationAction> actions; |
| 37 }; | 38 }; |
| 38 | 39 |
| 39 } // namespace blink | 40 } // namespace blink |
| 40 | 41 |
| 41 #endif // WebNotificationData_h | 42 #endif // WebNotificationData_h |
| OLD | NEW |