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

Unified Diff: chrome/common/extensions/api/notifications.idl

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/common/extensions/api/notifications.idl
diff --git a/chrome/common/extensions/api/notifications.idl b/chrome/common/extensions/api/notifications.idl
index da95e62c95a0c86116d435fe282fdccc2045521c..fb1fe65b98977bd6430b043c8f92f0af55287492 100644
--- a/chrome/common/extensions/api/notifications.idl
+++ b/chrome/common/extensions/api/notifications.idl
@@ -53,11 +53,23 @@ namespace notifications {
// <em>Required for $(ref:notifications.create)</em> method.
TemplateType? type;
- // Sender's avatar, app icon, or a thumbnail for image notifications.
+ // A URL to the sender's avatar, app icon, or a thumbnail for image
+ // notifications.
+ //
+ // URLs can be a data URL, a blob URL, or a URL relative to a resource
+ // within this extension's .crx file
// <em>Required for $(ref:notifications.create)</em> method.
DOMString? iconUrl;
[nodoc] NotificationBitmap? iconBitmap;
+ // A URL to the app icon mask. URLs have the same restrictions as
+ // $(ref:notifications.NotificationOptions.iconUrl iconUrl).
+ //
+ // The app icon mask should be in alpha channel, as only the alpha channel
+ // of the image will be considered.
+ DOMString? appIconMaskUrl;
+ [nodoc] NotificationBitmap? appIconMaskBitmap;
+
// Title of the notification (e.g. sender name for email).
// <em>Required for $(ref:notifications.create)</em> method.
DOMString? title;
@@ -83,7 +95,9 @@ namespace notifications {
// Secondary notification content.
[nodoc] DOMString? expandedMessage;
- // Image thumbnail for image-type notifications.
+ // A URL to the image thumbnail for image-type notifications.
+ // URLs have the same restrictions as
+ // $(ref:notifications.NotificationOptions.iconUrl iconUrl).
DOMString? imageUrl;
[nodoc] NotificationBitmap? imageBitmap;

Powered by Google App Engine
This is Rietveld 408576698