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

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: Created 4 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
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..46560f9ecd3f4cfe9a180702472132214cc3bf81 100644
--- a/content/child/notifications/pending_notification.h
+++ b/content/child/notifications/pending_notification.h
@@ -48,15 +48,21 @@ 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& icon);
+
+ // To be called on the worker thread when the small notification icon has been
+ // fetched.
+ void DidFetchSmallIcon(const SkBitmap& icon);
// 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& icon);
scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
SkBitmap notification_icon_;
+ SkBitmap small_icon_;
+
std::vector<SkBitmap> action_icons_;
base::Closure fetches_finished_barrier_closure_;

Powered by Google App Engine
This is Rietveld 408576698