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

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

Issue 872313003: Move Notification-related Blink API headers into their own directory. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
OLDNEW
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698