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

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

Issue 960163003: Add the "silent" property to the NotificationOptions dictionary. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp ('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 b9394750c2d662091fa8866238719a4d05281837..537ed26aa7edaf5b6c892db2cc01cd45f72cf586 100644
--- a/public/platform/modules/notifications/WebNotificationData.h
+++ b/public/platform/modules/notifications/WebNotificationData.h
@@ -19,9 +19,11 @@ struct WebNotificationData {
WebNotificationData()
: direction(DirectionLeftToRight)
+ , silent(false)
{
}
+ // 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)
: title(title)
, direction(direction)
@@ -29,6 +31,18 @@ struct WebNotificationData {
, body(body)
, tag(tag)
, icon(icon)
+ , silent(false)
+ {
+ }
+
+ WebNotificationData(const WebString& title, Direction direction, const WebString& lang, const WebString& body, const WebString& tag, const WebURL& icon, bool silent)
+ : title(title)
+ , direction(direction)
+ , lang(lang)
+ , body(body)
+ , tag(tag)
+ , icon(icon)
+ , silent(silent)
{
}
@@ -38,6 +52,7 @@ struct WebNotificationData {
WebString body;
WebString tag;
WebURL icon;
+ bool silent;
};
} // namespace blink
« no previous file with comments | « Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698