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

Unified Diff: content/public/common/platform_notification_data.h

Issue 1750083004: Add badge to web notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test. Created 4 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 | « content/public/common/notification_resources.h ('k') | content/test/data/notifications/48x48.png » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/platform_notification_data.h
diff --git a/content/public/common/platform_notification_data.h b/content/public/common/platform_notification_data.h
index a704efa4c28bf180136531ceb68a2eed7d80b5a3..b96cd802f8576639c0262e91d1bb540da7466602 100644
--- a/content/public/common/platform_notification_data.h
+++ b/content/public/common/platform_notification_data.h
@@ -71,6 +71,10 @@ struct CONTENT_EXPORT PlatformNotificationData {
// URL of the icon which is to be displayed with the notification.
GURL icon;
+ // URL of the badge for representing the notification. May be empty if no url
+ // was specified.
+ GURL badge;
+
// Vibration pattern for the notification, following the syntax of the
// Vibration API. https://www.w3.org/TR/vibration/
std::vector<int> vibration_pattern;
« no previous file with comments | « content/public/common/notification_resources.h ('k') | content/test/data/notifications/48x48.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698