| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 #include "public/platform/modules/notifications/WebNotificationData.h" |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef WebNotificationData_h | |
| 6 #define WebNotificationData_h | |
| 7 | |
| 8 #include "WebString.h" | |
| 9 #include "WebURL.h" | |
| 10 | |
| 11 namespace blink { | |
| 12 | |
| 13 // Structure representing the data associated with a Web Notification. | |
| 14 struct WebNotificationData { | |
| 15 enum Direction { | |
| 16 DirectionLeftToRight, | |
| 17 DirectionRightToLeft | |
| 18 }; | |
| 19 | |
| 20 WebNotificationData() | |
| 21 : direction(DirectionLeftToRight) | |
| 22 { | |
| 23 } | |
| 24 | |
| 25 WebNotificationData(const WebString& title, Direction direction, const WebSt
ring& lang, const WebString& body, const WebString& tag, const WebURL& icon) | |
| 26 : title(title) | |
| 27 , direction(direction) | |
| 28 , lang(lang) | |
| 29 , body(body) | |
| 30 , tag(tag) | |
| 31 , icon(icon) | |
| 32 { | |
| 33 } | |
| 34 | |
| 35 WebString title; | |
| 36 Direction direction; | |
| 37 WebString lang; | |
| 38 WebString body; | |
| 39 WebString tag; | |
| 40 WebURL icon; | |
| 41 }; | |
| 42 | |
| 43 } // namespace blink | |
| 44 | |
| 45 #endif // WebNotificationData_h | |
| OLD | NEW |