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

Unified Diff: public/platform/modules/notifications/WebNotificationData.h

Issue 1005353002: Add data property in persistent web notification (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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 | « Source/modules/notifications/ServiceWorkerRegistrationNotifications.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/modules/notifications/WebNotificationData.h
diff --git a/public/platform/modules/notifications/WebNotificationData.h b/public/platform/modules/notifications/WebNotificationData.h
index 5b825d1598fbfd12cbfeebf3379122d578a513a3..c1f0a5370e8b88e615303b0725622b379dc1cfc3 100644
--- a/public/platform/modules/notifications/WebNotificationData.h
+++ b/public/platform/modules/notifications/WebNotificationData.h
@@ -23,6 +23,7 @@ struct WebNotificationData {
{
}
+ // FIXME: Remove this constructor when Chromium has switched to the new one.
WebNotificationData(const WebString& title, Direction direction, const WebString& lang, const WebString& body, const WebString& tag, const WebURL& icon, bool silent)
: title(title)
, direction(direction)
@@ -34,6 +35,18 @@ struct WebNotificationData {
{
}
+ WebNotificationData(const WebString& title, Direction direction, const WebString& lang, const WebString& body, const WebString& tag, const WebURL& icon, bool silent, const WebString& data)
+ : title(title)
+ , direction(direction)
+ , lang(lang)
+ , body(body)
+ , tag(tag)
+ , icon(icon)
+ , silent(silent)
+ , data(data)
+ {
+ }
+
WebString title;
Direction direction;
WebString lang;
@@ -41,6 +54,7 @@ struct WebNotificationData {
WebString tag;
WebURL icon;
bool silent;
+ WebString data;
};
} // namespace blink
« no previous file with comments | « Source/modules/notifications/ServiceWorkerRegistrationNotifications.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698