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

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
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..26ba104c239e8f850303bacf23b9d123969b0441 100644
--- a/public/platform/modules/notifications/WebNotificationData.h
+++ b/public/platform/modules/notifications/WebNotificationData.h
@@ -23,7 +23,7 @@ struct WebNotificationData {
{
}
- WebNotificationData(const WebString& title, Direction direction, const WebString& lang, const WebString& body, const WebString& tag, const WebURL& icon, bool silent)
+ WebNotificationData(const WebString& title, Direction direction, const WebString& lang, const WebString& body, const WebString& tag, const WebURL& icon, bool silent, const WebString& dataAsWireString)
: title(title)
, direction(direction)
, lang(lang)
@@ -31,6 +31,7 @@ struct WebNotificationData {
, tag(tag)
, icon(icon)
, silent(silent)
+ , dataAsWireString(dataAsWireString)
{
}
@@ -41,6 +42,7 @@ struct WebNotificationData {
WebString tag;
WebURL icon;
bool silent;
+ WebString dataAsWireString;
Peter Beverloo 2015/03/15 16:25:05 Can we just call this "data"? I agree that its con
Sanghyun Park 2015/03/15 17:45:05 Thanks for your agree :). I'll change this name to
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698