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

Issue 12879009: Made WebKit notifications display 80x80 icons if they have them. (Closed)

Created:
7 years, 9 months ago by dharcourt
Modified:
7 years, 8 months ago
Reviewers:
Jun Mukai
CC:
chromium-reviews, Robert Sesek
Visibility:
Public.

Description

Made WebKit notifications display 80x80 icons if they have them. In the rich notification center and toasts, WebKit notifications (those created with webkitNotifications.createNotification() or with chrome.notifications.create({type: "simple"})) usually display their icons in a 40x40 square, as that was the size used for notification icons before rich notifications. This code change causes icons that are exacly 80x80 pixels and that have no transparency to be displayed using the full 80x80 pixel space available with rich notifications. This allows developers to create notifications from web pages and from apps that need to work without rich notifications that will look as as good as they can with rich notifications. BUG=222175 R=mukai@chromium.org TBR=pkotwicz@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194026

Patch Set 1 : #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -11 lines) Patch
M ui/message_center/views/notification_view.cc View 1 6 chunks +44 lines, -11 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
dharcourt
Jun, could you PTAL at the change list as a whole when you get a ...
7 years, 8 months ago (2013-04-12 11:03:29 UTC) #1
Jun Mukai
lgtm https://codereview.chromium.org/12879009/diff/6002/ui/message_center/views/notification_view.cc File ui/message_center/views/notification_view.cc (right): https://codereview.chromium.org/12879009/diff/6002/ui/message_center/views/notification_view.cc#newcode423 ui/message_center/views/notification_view.cc:423: HasAlpha(icon, GetWidget()))) { nit: align the indent
7 years, 8 months ago (2013-04-12 18:50:21 UTC) #2
dharcourt
https://codereview.chromium.org/12879009/diff/6002/ui/message_center/views/notification_view.cc File ui/message_center/views/notification_view.cc (right): https://codereview.chromium.org/12879009/diff/6002/ui/message_center/views/notification_view.cc#newcode423 ui/message_center/views/notification_view.cc:423: HasAlpha(icon, GetWidget()))) { On 2013/04/12 18:50:21, Jun Mukai wrote: ...
7 years, 8 months ago (2013-04-12 19:21:06 UTC) #3
Jun Mukai
https://codereview.chromium.org/12879009/diff/6002/ui/message_center/views/notification_view.cc File ui/message_center/views/notification_view.cc (right): https://codereview.chromium.org/12879009/diff/6002/ui/message_center/views/notification_view.cc#newcode423 ui/message_center/views/notification_view.cc:423: HasAlpha(icon, GetWidget()))) { On 2013/04/12 19:21:07, dharcourt wrote: > ...
7 years, 8 months ago (2013-04-12 19:34:38 UTC) #4
dharcourt
Jun, thanks for the review, I've corrected the nit. Peter, since we had a 5 ...
7 years, 8 months ago (2013-04-12 20:09:56 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dharcourt@chromium.org/12879009/11001
7 years, 8 months ago (2013-04-12 20:10:19 UTC) #6
commit-bot: I haz the power
7 years, 8 months ago (2013-04-12 22:25:53 UTC) #7
Message was sent while issue was closed.
Change committed as 194026

Powered by Google App Engine
This is Rietveld 408576698