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

Unified Diff: content/public/common/notification_resources.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/common/platform_notification_messages.h ('k') | content/public/common/platform_notification_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/notification_resources.h
diff --git a/content/public/common/notification_resources.h b/content/public/common/notification_resources.h
index c3b938d6c66a31593489b4b51015c328a20f94fe..2594836eceb0ce2a1bb89a4ab19dc9285adcdf1f 100644
--- a/content/public/common/notification_resources.h
+++ b/content/public/common/notification_resources.h
@@ -22,6 +22,10 @@ struct CONTENT_EXPORT NotificationResources {
// did not provide an icon, or fetching of the icon failed.
SkBitmap notification_icon;
+ // Badge for the notification. The bitmap may be empty if the developer
+ // did not provide a badge, or fetching of the badge failed.
+ SkBitmap badge;
+
// Icons for the actions. A bitmap may be empty if the developer did not
// provide an icon, or fetching of the icon failed.
std::vector<SkBitmap> action_icons;
« no previous file with comments | « content/common/platform_notification_messages.h ('k') | content/public/common/platform_notification_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698