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

Issue 1164333002: ToolbarView MaterialDesign in ThemeProvider (Closed)

Created:
5 years, 6 months ago by jonross
Modified:
5 years, 5 months ago
CC:
chromium-reviews, tdanderson, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

This change moves layout constants from ToolbarView into ThemeProvider. In ThemeProvider we determine the layout value to return based on the Material Design runtime flags. Based on design discussion: https://docs.google.com/a/google.com/document/d/1h2RFyplJ_cNm9shT0pmtYUATI0R75dXeM6HN22eX5-E/edit?usp=sharing Subsequent reviews will update the rest of top browser chrome following this format. BUG=505800 TEST=Manual testing on device Committed: https://crrev.com/28aa1291fb4cfb88d62872174e11f806a557f039 Cr-Commit-Position: refs/heads/master@{#338049}

Patch Set 1 #

Total comments: 5

Patch Set 2 : #

Patch Set 3 : Rebase #

Patch Set 4 : Add in Hybrid #

Total comments: 3

Patch Set 5 : #

Total comments: 8

Patch Set 6 : #

Total comments: 2

Patch Set 7 : #

Total comments: 8

Patch Set 8 : Switch to arrays #

Total comments: 2

Patch Set 9 : #

Total comments: 5

Patch Set 10 : #

Total comments: 2

Patch Set 11 : Change Enum from a Class #

Patch Set 12 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -36 lines) Patch
M chrome/browser/themes/theme_properties.h View 1 2 3 4 5 6 1 chunk +10 lines, -1 line 0 comments Download
M chrome/browser/themes/theme_properties.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +32 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_view.cc View 1 2 3 4 5 6 7 8 chunks +35 lines, -24 lines 0 comments Download
M ui/base/resource/material_design/material_design_controller.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -6 lines 0 comments Download

Messages

Total messages: 47 (10 generated)
jonross
tdanderson@ FYI
5 years, 6 months ago (2015-06-08 18:52:02 UTC) #1
tdanderson
Hey Jon, a couple of thoughts below: https://codereview.chromium.org/1164333002/diff/1/chrome/browser/themes/theme_properties.cc File chrome/browser/themes/theme_properties.cc (right): https://codereview.chromium.org/1164333002/diff/1/chrome/browser/themes/theme_properties.cc#newcode116 chrome/browser/themes/theme_properties.cc:116: const int ...
5 years, 6 months ago (2015-06-09 15:32:38 UTC) #3
tdanderson
https://codereview.chromium.org/1164333002/diff/1/chrome/browser/themes/theme_properties.cc File chrome/browser/themes/theme_properties.cc (right): https://codereview.chromium.org/1164333002/diff/1/chrome/browser/themes/theme_properties.cc#newcode175 chrome/browser/themes/theme_properties.cc:175: return -1; On 2015/06/09 15:32:38, tdanderson wrote: > This ...
5 years, 6 months ago (2015-06-09 17:50:07 UTC) #4
jonross
https://codereview.chromium.org/1164333002/diff/1/chrome/browser/themes/theme_properties.cc File chrome/browser/themes/theme_properties.cc (right): https://codereview.chromium.org/1164333002/diff/1/chrome/browser/themes/theme_properties.cc#newcode116 chrome/browser/themes/theme_properties.cc:116: const int kToolbarViewLeftEdgeSpacingMD = 8; On 2015/06/09 15:32:38, tdanderson ...
5 years, 6 months ago (2015-06-10 14:09:03 UTC) #5
jonross
Hi, This change has been updated to use the MaterialDesignController. Could you PTAL?
5 years, 5 months ago (2015-07-02 17:56:02 UTC) #7
bruthig
https://codereview.chromium.org/1164333002/diff/60001/chrome/browser/themes/theme_properties.cc File chrome/browser/themes/theme_properties.cc (right): https://codereview.chromium.org/1164333002/diff/60001/chrome/browser/themes/theme_properties.cc#newcode397 chrome/browser/themes/theme_properties.cc:397: default: Is this default necessary? The switch statement is ...
5 years, 5 months ago (2015-07-02 18:14:57 UTC) #8
jonross
https://codereview.chromium.org/1164333002/diff/60001/chrome/browser/themes/theme_properties.cc File chrome/browser/themes/theme_properties.cc (right): https://codereview.chromium.org/1164333002/diff/60001/chrome/browser/themes/theme_properties.cc#newcode397 chrome/browser/themes/theme_properties.cc:397: default: On 2015/07/02 18:14:57, bruthig wrote: > Is this ...
5 years, 5 months ago (2015-07-02 18:24:03 UTC) #9
jonross
https://codereview.chromium.org/1164333002/diff/60001/chrome/browser/themes/theme_properties.cc File chrome/browser/themes/theme_properties.cc (right): https://codereview.chromium.org/1164333002/diff/60001/chrome/browser/themes/theme_properties.cc#newcode397 chrome/browser/themes/theme_properties.cc:397: default: On 2015/07/02 18:24:02, jonross wrote: > On 2015/07/02 ...
5 years, 5 months ago (2015-07-03 13:51:55 UTC) #10
bruthig
lgtm
5 years, 5 months ago (2015-07-03 13:57:04 UTC) #11
jonross
Hey Peter, Could you provide an owners review for the changes in chrome/browser/themes/ ? This ...
5 years, 5 months ago (2015-07-03 14:03:52 UTC) #13
pkotwicz
I just looked again at the doc w.r.t to material design images (https://docs.google.com/document/d/1KRnwsoldzT2VcoNpscnxaQ6RFGs3j_0SWa1BNUW754U/edit#heading=h.e8l7ctmvu8pf). Was a ...
5 years, 5 months ago (2015-07-03 14:37:33 UTC) #14
chromium-reviews
I'm going to do my best to describe the approach that tdanderson@ has moved forward ...
5 years, 5 months ago (2015-07-03 15:08:21 UTC) #15
pkotwicz
Jon, thanks for pointing me to the doc that this CL relates to. Can you ...
5 years, 5 months ago (2015-07-03 15:39:23 UTC) #16
pkotwicz
Jon, thanks for pointing me to the doc that this CL relates to. Can you ...
5 years, 5 months ago (2015-07-03 15:39:23 UTC) #17
pkotwicz
5 years, 5 months ago (2015-07-03 15:39:56 UTC) #18
jonross
https://codereview.chromium.org/1164333002/diff/80001/chrome/browser/themes/theme_properties.cc File chrome/browser/themes/theme_properties.cc (right): https://codereview.chromium.org/1164333002/diff/80001/chrome/browser/themes/theme_properties.cc#newcode397 chrome/browser/themes/theme_properties.cc:397: default: On 2015/07/03 15:39:22, pkotwicz wrote: > Why the ...
5 years, 5 months ago (2015-07-03 17:09:32 UTC) #19
pkotwicz
I think that a TODO is still useful. At the very least, we should evaluate ...
5 years, 5 months ago (2015-07-03 17:34:01 UTC) #20
jonross
https://codereview.chromium.org/1164333002/diff/80001/chrome/browser/themes/theme_properties.cc File chrome/browser/themes/theme_properties.cc (right): https://codereview.chromium.org/1164333002/diff/80001/chrome/browser/themes/theme_properties.cc#newcode7 chrome/browser/themes/theme_properties.cc:7: #include "base/command_line.h" On 2015/07/03 15:39:22, pkotwicz wrote: > I ...
5 years, 5 months ago (2015-07-03 18:26:49 UTC) #21
pkotwicz
LGTM Can you please reference a bug ID in the CL description? https://codereview.chromium.org/1164333002/diff/100001/chrome/browser/themes/theme_properties.h File chrome/browser/themes/theme_properties.h ...
5 years, 5 months ago (2015-07-03 18:45:21 UTC) #22
jonross
https://codereview.chromium.org/1164333002/diff/100001/chrome/browser/themes/theme_properties.h File chrome/browser/themes/theme_properties.h (right): https://codereview.chromium.org/1164333002/diff/100001/chrome/browser/themes/theme_properties.h#newcode118 chrome/browser/themes/theme_properties.h:118: // which of these properties can be moved out ...
5 years, 5 months ago (2015-07-03 18:55:08 UTC) #23
jonross
pkasting@chromium.org: Please review changes in chrome/browser/ui/views/toolbar/toolbar_view.cc This review is the first stage of parameterizing layout ...
5 years, 5 months ago (2015-07-03 18:57:11 UTC) #25
Peter Kasting
https://codereview.chromium.org/1164333002/diff/120001/chrome/browser/themes/theme_properties.cc File chrome/browser/themes/theme_properties.cc (right): https://codereview.chromium.org/1164333002/diff/120001/chrome/browser/themes/theme_properties.cc#newcode100 chrome/browser/themes/theme_properties.cc:100: // Defaults for layout properties, which are not stored ...
5 years, 5 months ago (2015-07-03 20:13:08 UTC) #26
jonross
https://codereview.chromium.org/1164333002/diff/120001/chrome/browser/themes/theme_properties.cc File chrome/browser/themes/theme_properties.cc (right): https://codereview.chromium.org/1164333002/diff/120001/chrome/browser/themes/theme_properties.cc#newcode100 chrome/browser/themes/theme_properties.cc:100: // Defaults for layout properties, which are not stored ...
5 years, 5 months ago (2015-07-06 18:36:21 UTC) #27
Peter Kasting
LGTM https://codereview.chromium.org/1164333002/diff/140001/chrome/browser/themes/theme_properties.cc File chrome/browser/themes/theme_properties.cc (right): https://codereview.chromium.org/1164333002/diff/140001/chrome/browser/themes/theme_properties.cc#newcode335 chrome/browser/themes/theme_properties.cc:335: return -1; Nit: Style guide says the switch ...
5 years, 5 months ago (2015-07-06 22:48:38 UTC) #28
jonross
Hey Sadrul, Could you provide an owners review to the change in ui/base/resource/material_design/material_design_controller.h ? Thanks, ...
5 years, 5 months ago (2015-07-07 14:19:25 UTC) #30
pkotwicz
Just a nit https://codereview.chromium.org/1164333002/diff/160001/chrome/browser/themes/theme_properties.cc File chrome/browser/themes/theme_properties.cc (right): https://codereview.chromium.org/1164333002/diff/160001/chrome/browser/themes/theme_properties.cc#newcode101 chrome/browser/themes/theme_properties.cc:101: // pack. The array indices map ...
5 years, 5 months ago (2015-07-07 14:30:27 UTC) #31
Peter Kasting
https://codereview.chromium.org/1164333002/diff/160001/chrome/browser/themes/theme_properties.cc File chrome/browser/themes/theme_properties.cc (right): https://codereview.chromium.org/1164333002/diff/160001/chrome/browser/themes/theme_properties.cc#newcode101 chrome/browser/themes/theme_properties.cc:101: // pack. The array indices map to ui::MaterialDesignController::Mode. On ...
5 years, 5 months ago (2015-07-07 19:01:16 UTC) #32
sadrul
https://codereview.chromium.org/1164333002/diff/160001/chrome/browser/themes/theme_properties.cc File chrome/browser/themes/theme_properties.cc (right): https://codereview.chromium.org/1164333002/diff/160001/chrome/browser/themes/theme_properties.cc#newcode101 chrome/browser/themes/theme_properties.cc:101: // pack. The array indices map to ui::MaterialDesignController::Mode. On ...
5 years, 5 months ago (2015-07-07 21:53:04 UTC) #33
jonross
https://codereview.chromium.org/1164333002/diff/160001/chrome/browser/themes/theme_properties.cc File chrome/browser/themes/theme_properties.cc (right): https://codereview.chromium.org/1164333002/diff/160001/chrome/browser/themes/theme_properties.cc#newcode101 chrome/browser/themes/theme_properties.cc:101: // pack. The array indices map to ui::MaterialDesignController::Mode. On ...
5 years, 5 months ago (2015-07-08 15:23:39 UTC) #34
Peter Kasting
https://codereview.chromium.org/1164333002/diff/180001/chrome/browser/themes/theme_properties.cc File chrome/browser/themes/theme_properties.cc (right): https://codereview.chromium.org/1164333002/diff/180001/chrome/browser/themes/theme_properties.cc#newcode104 chrome/browser/themes/theme_properties.cc:104: COMPILE_ASSERT( I think these compile asserts are more big ...
5 years, 5 months ago (2015-07-08 21:18:42 UTC) #35
jonross
https://codereview.chromium.org/1164333002/diff/180001/chrome/browser/themes/theme_properties.cc File chrome/browser/themes/theme_properties.cc (right): https://codereview.chromium.org/1164333002/diff/180001/chrome/browser/themes/theme_properties.cc#newcode104 chrome/browser/themes/theme_properties.cc:104: COMPILE_ASSERT( On 2015/07/08 21:18:42, Peter Kasting wrote: > I ...
5 years, 5 months ago (2015-07-08 22:30:43 UTC) #36
sadrul
ui/ lgtm
5 years, 5 months ago (2015-07-08 22:38:11 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1164333002/200001
5 years, 5 months ago (2015-07-09 13:54:41 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/43436) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 5 months ago (2015-07-09 13:57:13 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1164333002/220001
5 years, 5 months ago (2015-07-09 14:40:15 UTC) #45
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years, 5 months ago (2015-07-09 15:43:48 UTC) #46
commit-bot: I haz the power
5 years, 5 months ago (2015-07-09 15:44:56 UTC) #47
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/28aa1291fb4cfb88d62872174e11f806a557f039
Cr-Commit-Position: refs/heads/master@{#338049}

Powered by Google App Engine
This is Rietveld 408576698