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

Unified Diff: public/platform/WebNotificationData.h

Issue 584023002: [WIP] Implement Notifications through Platform instead of WebFrame. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « public/platform/Platform.h ('k') | public/platform/WebNotificationDelegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebNotificationData.h
diff --git a/public/platform/WebNotificationData.h b/public/platform/WebNotificationData.h
new file mode 100644
index 0000000000000000000000000000000000000000..c45ea546084888e15b985eba2d56afacd3445c2c
--- /dev/null
+++ b/public/platform/WebNotificationData.h
@@ -0,0 +1,45 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WebNotificationData_h
+#define WebNotificationData_h
+
+#include "WebString.h"
+#include "WebURL.h"
+
+namespace blink {
+
+// Structure representing the data associated with a Web Notification.
+struct WebNotificationData {
+ enum Direction {
+ DirectionLeftToRight,
+ DirectionRightToLeft
+ };
+
+ WebNotificationData()
+ : direction(DirectionLeftToRight)
+ {
+ }
+
+ WebNotificationData(const WebString& title, Direction direction, const WebString& lang, const WebString& body, const WebString& tag, const WebURL& icon)
+ : title(title)
+ , direction(direction)
+ , lang(lang)
+ , body(body)
+ , tag(tag)
+ , icon(icon)
+ {
+ }
+
+ WebString title;
+ Direction direction;
+ WebString lang;
+ WebString body;
+ WebString tag;
+ WebURL icon;
+};
+
+} // namespace blink
+
+#endif
« no previous file with comments | « public/platform/Platform.h ('k') | public/platform/WebNotificationDelegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698