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

Issue 13560002: Added padding below text in notifications. (Closed)

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

Description

Added padding below text in notifications. This padding was in some previous versions but got lost somewhere along the way. This change restores it so there are always at least 12 pixels between the baseline of the last line of text and the bottom of the card or the image below the text. This will be true for WebKit, simple, basic, and image notifications but also for list ones. Note that although there will be exactly 12 pixels of space on Windows, there will be 13 pixels On Chrome OS because different fonts are used there, and also that if the Chrome OS system font changes that number of pixels may change slightly. This change also makes the padding between the top of notification text and the notification card be 12 pixels, as it was designed to be. It had somehow become 11 pixels. BUG=225871 TEST=Bring up a notification, take a screenshot, and count pixels. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=192957

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : Rebased & implemented rsesek suggestion. #

Total comments: 4

Patch Set 5 : Implemented review suggestions. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -28 lines) Patch
M ui/message_center/cocoa/notification_controller.mm View 1 2 3 4 4 chunks +15 lines, -5 lines 0 comments Download
M ui/message_center/message_center_constants.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ui/message_center/message_center_constants.cc View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M ui/message_center/views/notification_view.cc View 1 2 3 9 chunks +24 lines, -18 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
dharcourt
https://codereview.chromium.org/13560002/diff/1/ui/message_center/views/notification_view.cc File ui/message_center/views/notification_view.cc (left): https://codereview.chromium.org/13560002/diff/1/ui/message_center/views/notification_view.cc#oldcode36 ui/message_center/views/notification_view.cc:36: const int kTextBottomPadding = 6; This wasn't being used.
7 years, 8 months ago (2013-04-03 17:41:45 UTC) #1
msw
https://codereview.chromium.org/13560002/diff/1/ui/message_center/views/notification_view.cc File ui/message_center/views/notification_view.cc (right): https://codereview.chromium.org/13560002/diff/1/ui/message_center/views/notification_view.cc#newcode412 ui/message_center/views/notification_view.cc:412: views::View* padding_view = new views::ImageView(); Adding a view for ...
7 years, 8 months ago (2013-04-03 18:04:26 UTC) #2
dharcourt
Jun, here's another way to achieve this without adding views. PTAL. Mike, I didn't add ...
7 years, 8 months ago (2013-04-04 18:33:52 UTC) #3
msw
I'm CC'ed on crbug.com/225871 and saw the CL mentioned, so I decided to do a ...
7 years, 8 months ago (2013-04-04 18:44:49 UTC) #4
dharcourt
On 2013/04/04 18:44:49, msw wrote: > I'm CC'ed on crbug.com/225871 and saw the CL mentioned, ...
7 years, 8 months ago (2013-04-06 00:13:41 UTC) #5
dharcourt
Robert, could you take a look at notification_controller.mm? I changed message_center_constants.cc's kTextTopPadding value to be ...
7 years, 8 months ago (2013-04-06 00:21:08 UTC) #6
Robert Sesek
Can you pull out 6 into a namespace {} constant? I think it'd be fine ...
7 years, 8 months ago (2013-04-08 13:32:12 UTC) #7
dharcourt
Jun, can I get a review & comments or LGTM? Thanks! Robert, I modified the ...
7 years, 8 months ago (2013-04-08 20:35:04 UTC) #8
Jun Mukai
lgtm
7 years, 8 months ago (2013-04-08 20:42:25 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dharcourt@chromium.org/13560002/29001
7 years, 8 months ago (2013-04-08 20:44:42 UTC) #10
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-08 21:08:31 UTC) #11
Robert Sesek
LGTM https://chromiumcodereview.appspot.com/13560002/diff/29001/ui/message_center/cocoa/notification_controller.mm File ui/message_center/cocoa/notification_controller.mm (right): https://chromiumcodereview.appspot.com/13560002/diff/29001/ui/message_center/cocoa/notification_controller.mm#newcode20 ui/message_center/cocoa/notification_controller.mm:20: // Compensates for padding already provided by UI ...
7 years, 8 months ago (2013-04-08 21:15:19 UTC) #12
dharcourt
Thanks for the review! - C= https://codereview.chromium.org/13560002/diff/29001/ui/message_center/cocoa/notification_controller.mm File ui/message_center/cocoa/notification_controller.mm (right): https://codereview.chromium.org/13560002/diff/29001/ui/message_center/cocoa/notification_controller.mm#newcode20 ui/message_center/cocoa/notification_controller.mm:20: // Compensates for ...
7 years, 8 months ago (2013-04-08 21:30:26 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dharcourt@chromium.org/13560002/32005
7 years, 8 months ago (2013-04-08 21:30:45 UTC) #14
commit-bot: I haz the power
7 years, 8 months ago (2013-04-09 00:08:56 UTC) #15
Message was sent while issue was closed.
Change committed as 192957

Powered by Google App Engine
This is Rietveld 408576698