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

Unified Diff: chrome/renderer/resources/extensions/notifications_custom_bindings.js

Issue 308053004: Add appIconMask to notification API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed comments Created 6 years, 5 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: chrome/renderer/resources/extensions/notifications_custom_bindings.js
diff --git a/chrome/renderer/resources/extensions/notifications_custom_bindings.js b/chrome/renderer/resources/extensions/notifications_custom_bindings.js
index 013628abff281af8a238a343e2793c12a5e98b9c..eebf2900920287f0b539b04e32d48e6219a2c444 100644
--- a/chrome/renderer/resources/extensions/notifications_custom_bindings.js
+++ b/chrome/renderer/resources/extensions/notifications_custom_bindings.js
@@ -40,6 +40,16 @@ function getUrlSpecs(imageSizes, notificationDetails) {
});
}
+ // |appIconMaskUrl| is optional.
+ if (notificationDetails.appIconMaskUrl) {
+ $Array.push(urlSpecs, {
+ path: notificationDetails.appIconMaskUrl,
+ width: imageSizes.appIconMask.width * imageSizes.scaleFactor,
+ height: imageSizes.appIconMask.height * imageSizes.scaleFactor,
+ callback: imageDataSetter(notificationDetails, 'appIconMaskBitmap')
+ });
+ }
+
// |imageUrl| is optional.
if (notificationDetails.imageUrl) {
$Array.push(urlSpecs, {
« no previous file with comments | « chrome/renderer/extensions/notifications_native_handler.cc ('k') | ui/message_center/message_center_style.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698