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

Issue 308053004: Add appIconMask to notification API (Closed)

Created:
6 years, 6 months ago by liyanhou
Modified:
6 years, 5 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, Dmitry Titov
Visibility:
Public.

Description

Add app icon masp to notification API Add an app icon mask (16*16, or 32*32 for retina display) on the bottom right corner of notifications to indicate source of the notification. The app icon is displayed in a way that takes only the alpha channel of the image passed in, masks it with white foreground and grey background. BUG=284592 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284586

Patch Set 1 #

Patch Set 2 : code style fix #

Patch Set 3 : rebase #

Patch Set 4 : fix small icon api code to work with the updated code #

Patch Set 5 : style fix #

Total comments: 2

Patch Set 6 : fix on comment of the last patch #

Patch Set 7 : Added small icon alpha channel mask #

Patch Set 8 : rebase #

Total comments: 6

Patch Set 9 : rebase #

Patch Set 10 : addressed comments #

Patch Set 11 : changed name smallIconto appIconMask #

Total comments: 2

Patch Set 12 : addressed comments #

Total comments: 2

Patch Set 13 : rebase #

Patch Set 14 : fixed comment #

Patch Set 15 : rebase #

Patch Set 16 : fixed bug caused by updated surrounding code #

Total comments: 8

Patch Set 17 : rebase #

Patch Set 18 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -4 lines) Patch
M chrome/browser/extensions/api/notifications/notifications_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +18 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/notifications.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +16 lines, -2 lines 0 comments Download
M chrome/common/extensions/api/notifications/notification_style.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/notifications/notification_style.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/notifications_native_handler.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/notifications_custom_bindings.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +10 lines, -0 lines 0 comments Download
M ui/message_center/message_center_style.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M ui/message_center/message_center_style.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M ui/message_center/views/message_view.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M ui/message_center/views/message_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +31 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
Pete Williamson
Looks good to me so far, a couple of notes: Where you've used 16 below ...
6 years, 6 months ago (2014-06-03 22:43:06 UTC) #1
not at google - send to devlin
BUG?
6 years, 6 months ago (2014-06-03 22:53:43 UTC) #2
liyanhou
On 2014/06/03 22:53:43, kalman wrote: > BUG? Bug number added
6 years, 6 months ago (2014-06-03 23:02:33 UTC) #3
Pete Williamson
On 2014/06/03 22:43:06, Pete Williamson wrote: > Looks good to me so far, a couple ...
6 years, 6 months ago (2014-06-03 23:23:22 UTC) #4
dewittj
mostly looks fine as is, just a single comment about the code. As we discussed ...
6 years, 6 months ago (2014-06-09 21:30:58 UTC) #5
liyanhou
On 2014/06/09 21:30:58, dewittj wrote: > mostly looks fine as is, just a single comment ...
6 years, 6 months ago (2014-06-16 16:54:53 UTC) #6
liyanhou
PTAL. Thank you! https://codereview.chromium.org/308053004/diff/90001/chrome/browser/extensions/api/notifications/notifications_api.cc File chrome/browser/extensions/api/notifications/notifications_api.cc (right): https://codereview.chromium.org/308053004/diff/90001/chrome/browser/extensions/api/notifications/notifications_api.cc#newcode292 chrome/browser/extensions/api/notifications/notifications_api.cc:292: NotificationBitmapToGfxImage(image_scale, On 2014/06/09 21:30:58, dewittj wrote: ...
6 years, 6 months ago (2014-06-16 16:57:00 UTC) #7
dewittj
https://codereview.chromium.org/308053004/diff/150001/chrome/common/extensions/api/notifications.idl File chrome/common/extensions/api/notifications.idl (right): https://codereview.chromium.org/308053004/diff/150001/chrome/common/extensions/api/notifications.idl#newcode61 chrome/common/extensions/api/notifications.idl:61: // Small icon Can you explain about the alpha ...
6 years, 6 months ago (2014-06-16 18:09:55 UTC) #8
dewittj
please update the API based on comments in API review.
6 years, 5 months ago (2014-06-26 16:25:01 UTC) #9
liyanhou
On 2014/06/16 18:09:55, dewittj wrote: > https://codereview.chromium.org/308053004/diff/150001/chrome/common/extensions/api/notifications.idl > File chrome/common/extensions/api/notifications.idl (right): > > https://codereview.chromium.org/308053004/diff/150001/chrome/common/extensions/api/notifications.idl#newcode61 > ...
6 years, 5 months ago (2014-06-26 22:44:54 UTC) #10
liyanhou
On 2014/06/26 16:25:01, dewittj wrote: > please update the API based on comments in API ...
6 years, 5 months ago (2014-06-26 22:45:09 UTC) #11
Pete Williamson
Adding Dmitry to the CC list
6 years, 5 months ago (2014-06-26 22:50:04 UTC) #12
dewittj
lgtm, one nit. Please add kalman@ as a reviewer, he will review and lgtm once ...
6 years, 5 months ago (2014-06-27 02:43:56 UTC) #13
liyanhou
PTAL. Thank you! https://codereview.chromium.org/308053004/diff/150001/chrome/common/extensions/api/notifications.idl File chrome/common/extensions/api/notifications.idl (right): https://codereview.chromium.org/308053004/diff/150001/chrome/common/extensions/api/notifications.idl#newcode61 chrome/common/extensions/api/notifications.idl:61: // Small icon On 2014/06/16 18:09:55, ...
6 years, 5 months ago (2014-06-27 03:18:40 UTC) #14
not at google - send to devlin
ping this review when the apps-dev thread is resolved in case I forget.
6 years, 5 months ago (2014-06-27 20:45:18 UTC) #15
liyanhou
On 2014/06/27 20:45:18, kalman (OOO July 11-14) wrote: > ping this review when the apps-dev ...
6 years, 5 months ago (2014-07-11 23:51:43 UTC) #16
not at google - send to devlin
sure. https://codereview.chromium.org/308053004/diff/220001/chrome/common/extensions/api/notifications.idl File chrome/common/extensions/api/notifications.idl (right): https://codereview.chromium.org/308053004/diff/220001/chrome/common/extensions/api/notifications.idl#newcode63 chrome/common/extensions/api/notifications.idl:63: // of a notification please phrase this comment ...
6 years, 5 months ago (2014-07-15 15:17:55 UTC) #17
liyanhou
PTAL. Thank you so much! https://codereview.chromium.org/308053004/diff/220001/chrome/common/extensions/api/notifications.idl File chrome/common/extensions/api/notifications.idl (right): https://codereview.chromium.org/308053004/diff/220001/chrome/common/extensions/api/notifications.idl#newcode63 chrome/common/extensions/api/notifications.idl:63: // of a notification ...
6 years, 5 months ago (2014-07-21 16:51:34 UTC) #18
not at google - send to devlin
Thanks for clarifying. One last question. https://codereview.chromium.org/308053004/diff/300001/chrome/common/extensions/api/notifications.idl File chrome/common/extensions/api/notifications.idl (right): https://codereview.chromium.org/308053004/diff/300001/chrome/common/extensions/api/notifications.idl#newcode57 chrome/common/extensions/api/notifications.idl:57: // notifications. nit: ...
6 years, 5 months ago (2014-07-21 20:50:15 UTC) #19
liyanhou
PTAL. Thank you so much! https://codereview.chromium.org/308053004/diff/300001/chrome/common/extensions/api/notifications.idl File chrome/common/extensions/api/notifications.idl (right): https://codereview.chromium.org/308053004/diff/300001/chrome/common/extensions/api/notifications.idl#newcode57 chrome/common/extensions/api/notifications.idl:57: // notifications. On 2014/07/21 ...
6 years, 5 months ago (2014-07-22 00:05:23 UTC) #20
not at google - send to devlin
lgtm
6 years, 5 months ago (2014-07-22 00:06:16 UTC) #21
liyanhou
The CQ bit was checked by liyanhou@chromium.org
6 years, 5 months ago (2014-07-22 00:08:37 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/liyanhou@chromium.org/308053004/340001
6 years, 5 months ago (2014-07-22 00:11:37 UTC) #23
commit-bot: I haz the power
6 years, 5 months ago (2014-07-22 01:38:42 UTC) #24
Message was sent while issue was closed.
Change committed as 284586

Powered by Google App Engine
This is Rietveld 408576698