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

Unified Diff: content/child/notifications/pending_notification.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
Index: content/child/notifications/pending_notification.h
diff --git a/content/child/notifications/pending_notification.h b/content/child/notifications/pending_notification.h
index 304cf5f582fca435fb916dcdac52bd84d16698ad..dc7036bf004ae7368b77611128c441a3a5895079 100644
--- a/content/child/notifications/pending_notification.h
+++ b/content/child/notifications/pending_notification.h
@@ -48,15 +48,20 @@ class PendingNotification {
// To be called on the worker thread when the notification icon has been
// fetched.
- void DidFetchNotificationIcon(const SkBitmap& notification_icon);
+ void DidFetchNotificationIcon(const SkBitmap& bitmap);
+
+ // To be called on the worker thread when the badge has been fetched.
+ void DidFetchBadge(const SkBitmap& bitmap);
// To be called on the worker thread when an action icon has been fetched.
- void DidFetchActionIcon(size_t action_index, const SkBitmap& action_icon);
+ void DidFetchActionIcon(size_t action_index, const SkBitmap& bitmap);
scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
SkBitmap notification_icon_;
+ SkBitmap badge_;
+
std::vector<SkBitmap> action_icons_;
base::Closure fetches_finished_barrier_closure_;
« no previous file with comments | « content/child/notifications/notification_manager.cc ('k') | content/child/notifications/pending_notification.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698