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

Unified Diff: third_party/WebKit/Source/modules/notifications/NotificationResourcesLoader.h

Issue 2261283002: Add Notification images (Blink + desktop implementation) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check IPC drawsNothing rather than isNull Created 4 years, 4 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: third_party/WebKit/Source/modules/notifications/NotificationResourcesLoader.h
diff --git a/third_party/WebKit/Source/modules/notifications/NotificationResourcesLoader.h b/third_party/WebKit/Source/modules/notifications/NotificationResourcesLoader.h
index 238a53d2fd5a2d368033c94bdaa859729071f667..cdb493c0e4a1cd932487fa88c75756c2443d7b0f 100644
--- a/third_party/WebKit/Source/modules/notifications/NotificationResourcesLoader.h
+++ b/third_party/WebKit/Source/modules/notifications/NotificationResourcesLoader.h
@@ -54,6 +54,7 @@ public:
private:
void loadImage(ExecutionContext*, const KURL&, std::unique_ptr<NotificationImageLoader::ImageCallback>);
+ void didLoadImage(const SkBitmap& image);
void didLoadIcon(const SkBitmap& image);
void didLoadBadge(const SkBitmap& image);
void didLoadActionIcon(size_t actionIndex, const SkBitmap& image);
@@ -66,6 +67,7 @@ private:
std::unique_ptr<CompletionCallback> m_completionCallback;
int m_pendingRequestCount;
HeapVector<Member<NotificationImageLoader>> m_imageLoaders;
+ SkBitmap m_image;
SkBitmap m_icon;
SkBitmap m_badge;
Vector<SkBitmap> m_actionIcons;

Powered by Google App Engine
This is Rietveld 408576698