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

Issue 1926943002: Introduce new flag to control usage of MD in secondary (not top-chrome) (Closed)

Created:
4 years, 7 months ago by Evan Stade
Modified:
4 years, 7 months ago
Reviewers:
varkha, sky
CC:
chromium-reviews, asanka, tfarina, noyau+watch_chromium.org, dbeam+watch-downloads_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce new flag to control usage of MD in secondary (not top-chrome) UI. Example usage would be: --top-chrome-md="material-hybrid" --secondary-ui-md This is a separate flag instead of a new state for --top-chrome-md because it is orthogonal to the material/hybrid mode. For now, use this flag to control standard dialog/bubble buttons as well as the buttons in the bookmark bubble. BUG=512440 Committed: https://crrev.com/b3ca344bc7073dd65b0df4f9add903a61fc818b6 Cr-Commit-Position: refs/heads/master@{#391882}

Patch Set 1 #

Total comments: 5

Patch Set 2 : only #

Total comments: 6

Patch Set 3 : use bool instead #

Patch Set 4 : improve docs #

Total comments: 2

Patch Set 5 : new fn name #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -35 lines) Patch
M chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc View 2 chunks +5 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/download/download_item_view_md.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M ui/base/material_design/material_design_controller.h View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M ui/base/material_design/material_design_controller.cc View 1 2 5 chunks +23 lines, -13 lines 0 comments Download
M ui/base/ui_base_switches.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/base/ui_base_switches.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/controls/button/label_button.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/controls/button/label_button.cc View 1 2 3 4 2 chunks +9 lines, -4 lines 0 comments Download
M ui/views/controls/button/md_text_button.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M ui/views/controls/button/md_text_button.cc View 1 2 3 4 2 chunks +29 lines, -5 lines 0 comments Download
M ui/views/window/dialog_client_view.cc View 1 2 3 4 2 chunks +10 lines, -3 lines 0 comments Download

Messages

Total messages: 29 (7 generated)
Evan Stade
+varkha for the MaterialDesignController change +sky for *
4 years, 7 months ago (2016-04-27 22:36:13 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1926943002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1926943002/1
4 years, 7 months ago (2016-04-27 22:36:38 UTC) #5
varkha
https://codereview.chromium.org/1926943002/diff/1/ui/base/material_design/material_design_controller.h File ui/base/material_design/material_design_controller.h (right): https://codereview.chromium.org/1926943002/diff/1/ui/base/material_design/material_design_controller.h#newcode66 ui/base/material_design/material_design_controller.h:66: static Extent extent_; You would probably want to save ...
4 years, 7 months ago (2016-04-27 23:06:06 UTC) #6
Evan Stade
https://codereview.chromium.org/1926943002/diff/1/ui/base/material_design/material_design_controller.h File ui/base/material_design/material_design_controller.h (right): https://codereview.chromium.org/1926943002/diff/1/ui/base/material_design/material_design_controller.h#newcode66 ui/base/material_design/material_design_controller.h:66: static Extent extent_; On 2016/04/27 23:06:05, varkha wrote: > ...
4 years, 7 months ago (2016-04-27 23:20:40 UTC) #7
varkha
https://codereview.chromium.org/1926943002/diff/1/ui/base/material_design/material_design_controller.h File ui/base/material_design/material_design_controller.h (right): https://codereview.chromium.org/1926943002/diff/1/ui/base/material_design/material_design_controller.h#newcode66 ui/base/material_design/material_design_controller.h:66: static Extent extent_; On 2016/04/27 23:20:40, Evan Stade wrote: ...
4 years, 7 months ago (2016-04-27 23:30:58 UTC) #8
Evan Stade
On 2016/04/27 23:30:58, varkha wrote: > https://codereview.chromium.org/1926943002/diff/1/ui/base/material_design/material_design_controller.h > File ui/base/material_design/material_design_controller.h (right): > > https://codereview.chromium.org/1926943002/diff/1/ui/base/material_design/material_design_controller.h#newcode66 > ...
4 years, 7 months ago (2016-04-27 23:54:39 UTC) #9
varkha
> > I think it is easier to keep this atomic. > > To elaborate ...
4 years, 7 months ago (2016-04-27 23:57:23 UTC) #10
Evan Stade
On 2016/04/27 23:57:23, varkha wrote: > > > I think it is easier to keep ...
4 years, 7 months ago (2016-05-03 16:08:29 UTC) #11
Evan Stade
On 2016/05/03 16:08:29, Evan Stade wrote: > On 2016/04/27 23:57:23, varkha wrote: > > > ...
4 years, 7 months ago (2016-05-04 15:26:12 UTC) #12
sky
https://codereview.chromium.org/1926943002/diff/20001/ui/base/material_design/material_design_controller.h File ui/base/material_design/material_design_controller.h (right): https://codereview.chromium.org/1926943002/diff/20001/ui/base/material_design/material_design_controller.h#newcode32 ui/base/material_design/material_design_controller.h:32: enum Extent { nit: enum class https://codereview.chromium.org/1926943002/diff/20001/ui/base/material_design/material_design_controller.h#newcode32 ui/base/material_design/material_design_controller.h:32: enum ...
4 years, 7 months ago (2016-05-04 17:35:39 UTC) #13
varkha
Sorry, didn't realize this was blocked on me, I didn't have any more comments. Added ...
4 years, 7 months ago (2016-05-04 17:46:02 UTC) #14
Evan Stade
switched from enum to bool https://codereview.chromium.org/1926943002/diff/20001/ui/base/material_design/material_design_controller.h File ui/base/material_design/material_design_controller.h (right): https://codereview.chromium.org/1926943002/diff/20001/ui/base/material_design/material_design_controller.h#newcode32 ui/base/material_design/material_design_controller.h:32: enum Extent { On ...
4 years, 7 months ago (2016-05-04 22:51:04 UTC) #15
varkha
Still lgtm.
4 years, 7 months ago (2016-05-05 01:42:49 UTC) #16
sky
LGTM https://codereview.chromium.org/1926943002/diff/60001/ui/views/controls/button/label_button.h File ui/views/controls/button/label_button.h (right): https://codereview.chromium.org/1926943002/diff/60001/ui/views/controls/button/label_button.h#newcode136 ui/views/controls/button/label_button.h:136: virtual void UpdateStyleForDefaultness(); defaultness? How about just UpdateStyleForDefault?
4 years, 7 months ago (2016-05-05 15:40:12 UTC) #17
Evan Stade
https://codereview.chromium.org/1926943002/diff/60001/ui/views/controls/button/label_button.h File ui/views/controls/button/label_button.h (right): https://codereview.chromium.org/1926943002/diff/60001/ui/views/controls/button/label_button.h#newcode136 ui/views/controls/button/label_button.h:136: virtual void UpdateStyleForDefaultness(); On 2016/05/05 15:40:12, sky wrote: > ...
4 years, 7 months ago (2016-05-05 15:54:07 UTC) #18
sky
Would passing boolean default parameter clarify this? On Thu, May 5, 2016 at 8:54 AM, ...
4 years, 7 months ago (2016-05-05 16:36:16 UTC) #19
sky
Or perhaps UpdateStyleForDefaultState. On Thu, May 5, 2016 at 9:36 AM, Scott Violet <sky@chromium.org> wrote: ...
4 years, 7 months ago (2016-05-05 16:36:29 UTC) #20
Evan Stade
On 2016/05/05 16:36:29, sky wrote: > Or perhaps UpdateStyleForDefaultState. > > On Thu, May 5, ...
4 years, 7 months ago (2016-05-05 17:56:54 UTC) #21
sky
SGTM On Thu, May 5, 2016 at 10:56 AM, <estade@chromium.org> wrote: > On 2016/05/05 16:36:29, ...
4 years, 7 months ago (2016-05-05 18:07:20 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1926943002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1926943002/80001
4 years, 7 months ago (2016-05-05 18:08:29 UTC) #25
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-05-05 20:00:29 UTC) #27
commit-bot: I haz the power
4 years, 7 months ago (2016-05-05 20:02:07 UTC) #29
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/b3ca344bc7073dd65b0df4f9add903a61fc818b6
Cr-Commit-Position: refs/heads/master@{#391882}

Powered by Google App Engine
This is Rietveld 408576698