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

Issue 2765883004: Implement Harmony typography spec. (Closed)

Created:
3 years, 9 months ago by tapted
Modified:
3 years, 8 months ago
CC:
chromium-reviews, tfarina, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement Harmony typography spec. Currently does font size and line height. Color is next. And there is still plumbing required to ensure more controls/dialogs have access to views::style (and stop using SetFontList). This CL establishes a core requirement to let us iterate on layout for specific dialogs. Example screenshots at https://crbug.com/691891#c10 BUG=691891 Review-Url: https://codereview.chromium.org/2765883004 Cr-Commit-Position: refs/heads/master@{#462676} Committed: https://chromium.googlesource.com/chromium/src/+/620e80b9d16fa22fb95269718c23e7f632cf9b76

Patch Set 1 : Experiments with color - Linux themes make this super hard #

Patch Set 2 : Rollback color, fix buttons #

Patch Set 3 : test #

Patch Set 4 : test, nit comment #

Total comments: 24

Patch Set 5 : respond to comments, but i bet MSVC does not like my static constexpr #

Total comments: 2

Patch Set 6 : rebase #

Patch Set 7 : respond to comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+209 lines, -0 lines) Patch
M chrome/browser/ui/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/harmony/harmony_layout_delegate.h View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/harmony/harmony_layout_delegate.cc View 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/harmony/harmony_typography_provider.h View 1 2 3 1 chunk +25 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/harmony/harmony_typography_provider.cc View 1 2 3 4 5 6 1 chunk +121 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/harmony/layout_delegate_unittest.cc View 1 2 3 4 2 chunks +40 lines, -0 lines 0 comments Download
M ui/gfx/platform_font.h View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
M ui/views/controls/button/label_button.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/controls/label.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 37 (28 generated)
tapted
Hi Peter, please take a look. https://codereview.chromium.org/2765883004/diff/120001/ui/views/controls/button/label_button.cc File ui/views/controls/button/label_button.cc (right): https://codereview.chromium.org/2765883004/diff/120001/ui/views/controls/button/label_button.cc#newcode244 ui/views/controls/button/label_button.cc:244: if (style_ == ...
3 years, 8 months ago (2017-04-03 09:20:49 UTC) #14
Peter Kasting
https://codereview.chromium.org/2765883004/diff/120001/chrome/browser/ui/views/harmony/harmony_typography_provider.cc File chrome/browser/ui/views/harmony/harmony_typography_provider.cc (right): https://codereview.chromium.org/2765883004/diff/120001/chrome/browser/ui/views/harmony/harmony_typography_provider.cc#newcode12 chrome/browser/ui/views/harmony/harmony_typography_provider.cc:12: // "Target" font size constants from the Harmony spec. ...
3 years, 8 months ago (2017-04-04 00:47:58 UTC) #17
tapted
PTAL https://codereview.chromium.org/2765883004/diff/120001/chrome/browser/ui/views/harmony/harmony_typography_provider.cc File chrome/browser/ui/views/harmony/harmony_typography_provider.cc (right): https://codereview.chromium.org/2765883004/diff/120001/chrome/browser/ui/views/harmony/harmony_typography_provider.cc#newcode12 chrome/browser/ui/views/harmony/harmony_typography_provider.cc:12: // "Target" font size constants from the Harmony ...
3 years, 8 months ago (2017-04-04 06:23:00 UTC) #20
Peter Kasting
https://codereview.chromium.org/2765883004/diff/120001/chrome/browser/ui/views/harmony/harmony_typography_provider.cc File chrome/browser/ui/views/harmony/harmony_typography_provider.cc (right): https://codereview.chromium.org/2765883004/diff/120001/chrome/browser/ui/views/harmony/harmony_typography_provider.cc#newcode77 chrome/browser/ui/views/harmony/harmony_typography_provider.cc:77: #if defined(OS_MACOSX) I sent email to Alan & co. ...
3 years, 8 months ago (2017-04-04 08:01:17 UTC) #23
Peter Kasting
LGTM for now. https://codereview.chromium.org/2765883004/diff/120001/chrome/browser/ui/views/harmony/harmony_typography_provider.cc File chrome/browser/ui/views/harmony/harmony_typography_provider.cc (right): https://codereview.chromium.org/2765883004/diff/120001/chrome/browser/ui/views/harmony/harmony_typography_provider.cc#newcode97 chrome/browser/ui/views/harmony/harmony_typography_provider.cc:97: static const int headline_height = On ...
3 years, 8 months ago (2017-04-06 06:17:07 UTC) #24
tapted
+asvitkine for ui/gfx/platform_font.h OWNERS (feel free to chime in on any of the other fonty ...
3 years, 8 months ago (2017-04-06 09:11:10 UTC) #28
Alexei Svitkine (slow)
lgtm
3 years, 8 months ago (2017-04-06 17:37:02 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2765883004/180001
3 years, 8 months ago (2017-04-06 23:10:04 UTC) #34
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 23:25:15 UTC) #37
Message was sent while issue was closed.
Committed patchset #7 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/620e80b9d16fa22fb95269718c23...

Powered by Google App Engine
This is Rietveld 408576698