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

Unified Diff: third_party/WebKit/Source/modules/notifications/NotificationData.cpp

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/NotificationData.cpp
diff --git a/third_party/WebKit/Source/modules/notifications/NotificationData.cpp b/third_party/WebKit/Source/modules/notifications/NotificationData.cpp
index 572970a51b3ec1dff40b56ff9b6c38e62261c21e..bb81e311e361b18b3080c21f6bd376a5a9ebff5b 100644
--- a/third_party/WebKit/Source/modules/notifications/NotificationData.cpp
+++ b/third_party/WebKit/Source/modules/notifications/NotificationData.cpp
@@ -59,6 +59,9 @@ WebNotificationData createWebNotificationData(ExecutionContext* executionContext
webData.body = options.body();
webData.tag = options.tag();
+ if (options.hasImage() && !options.image().isEmpty())
+ webData.image = completeURL(executionContext, options.image());
+
if (options.hasIcon() && !options.icon().isEmpty())
webData.icon = completeURL(executionContext, options.icon());

Powered by Google App Engine
This is Rietveld 408576698