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

Issue 14322007: Add line height setting to views::Label & use it for notifications. (Closed)

Created:
7 years, 8 months ago by dharcourt
Modified:
7 years, 8 months ago
Reviewers:
msw, Jun Mukai, sadrul
CC:
chromium-reviews, tfarina, sail+watch_chromium.org
Visibility:
Public.

Description

Add line height setting to views::Label & use it for notifications. This fixes the line spacing of notification so it's 18px on all platforms (instead of the previous 17px on Chrome OS and 15px on Windows). To do this, support for a line height property was added to the BoundedLabel that NotificationView uses, to the Label that BoundedLabel uses, and to the Canvas that Label uses. BUG=225871 R=mukai@chromium.org,msw@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195076

Patch Set 1 #

Total comments: 5

Patch Set 2 : #

Total comments: 31

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -50 lines) Patch
M ui/gfx/canvas.h View 1 2 2 chunks +6 lines, -2 lines 0 comments Download
M ui/gfx/canvas.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M ui/gfx/canvas_android.cc View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M ui/gfx/canvas_mac.mm View 1 2 3 chunks +12 lines, -6 lines 0 comments Download
M ui/gfx/canvas_skia.cc View 1 2 5 chunks +14 lines, -8 lines 0 comments Download
M ui/gfx/canvas_unittest.cc View 1 2 2 chunks +41 lines, -18 lines 0 comments Download
M ui/message_center/message_center_constants.h View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M ui/message_center/message_center_constants.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/message_center/views/bounded_label.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M ui/message_center/views/bounded_label.cc View 3 chunks +16 lines, -2 lines 0 comments Download
M ui/message_center/views/notification_view.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M ui/views/controls/button/text_button.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M ui/views/controls/label.h View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M ui/views/controls/label.cc View 1 2 5 chunks +14 lines, -3 lines 0 comments Download
M ui/views/controls/tree/tree_view.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/view_text_utils.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
dharcourt
This change list intends to add settable line height support to views' Label and to ...
7 years, 8 months ago (2013-04-17 07:26:31 UTC) #1
Jun Mukai
lgtm with nits, but you have to wait for replies from msw and sadrul. thanks! ...
7 years, 8 months ago (2013-04-17 17:08:57 UTC) #2
dharcourt
Jun, thanks for your comment, I implemented your fixes. Mike, I (finally) read the comments ...
7 years, 8 months ago (2013-04-17 17:52:21 UTC) #3
msw
This mostly looks good. Just a couple general Qs and nits. https://codereview.chromium.org/14322007/diff/4001/ui/gfx/canvas.cc File ui/gfx/canvas.cc (right): ...
7 years, 8 months ago (2013-04-17 20:12:59 UTC) #4
dharcourt
Mike, thanks for the suggestions. I've implemented them and tried to answer your questions. Let ...
7 years, 8 months ago (2013-04-17 23:29:40 UTC) #5
msw
LGTM with a couple nits; thanks for the explanations. https://codereview.chromium.org/14322007/diff/3004/ui/message_center/views/bounded_label.h File ui/message_center/views/bounded_label.h (right): https://codereview.chromium.org/14322007/diff/3004/ui/message_center/views/bounded_label.h#newcode41 ui/message_center/views/bounded_label.h:41: ...
7 years, 8 months ago (2013-04-18 03:58:52 UTC) #6
dharcourt
Thanks for catching those! https://codereview.chromium.org/14322007/diff/3004/ui/message_center/views/bounded_label.h File ui/message_center/views/bounded_label.h (right): https://codereview.chromium.org/14322007/diff/3004/ui/message_center/views/bounded_label.h#newcode41 ui/message_center/views/bounded_label.h:41: void SetLineHeight(int height); // Pass ...
7 years, 8 months ago (2013-04-18 17:50:27 UTC) #7
sadrul
ui/views/ lgtm
7 years, 8 months ago (2013-04-18 17:53:51 UTC) #8
dharcourt
Hi Scott, can I get an OWNERS review of the changes to the following files: ...
7 years, 8 months ago (2013-04-18 17:54:04 UTC) #9
dharcourt
Hi Scott, please ignore my last comment, Sadrul reviewed and LGTM'ed this and it's all ...
7 years, 8 months ago (2013-04-18 17:56:57 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dharcourt@chromium.org/14322007/24001
7 years, 8 months ago (2013-04-18 17:57:33 UTC) #11
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=30247
7 years, 8 months ago (2013-04-18 21:38:31 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dharcourt@chromium.org/14322007/24001
7 years, 8 months ago (2013-04-19 00:50:46 UTC) #13
commit-bot: I haz the power
7 years, 8 months ago (2013-04-19 03:40:00 UTC) #14
Message was sent while issue was closed.
Change committed as 195076

Powered by Google App Engine
This is Rietveld 408576698