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

Issue 1921133002: Adds ash::MaterialDesignController (Closed)

Created:
4 years, 8 months ago by varkha
Modified:
4 years, 7 months ago
CC:
chromium-reviews, kalyank, sadrul, asvitkine+watch_chromium.org, yiyix
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adds ash::MaterialDesignController and a run-time flag Adds "ash-enable-md" and "ash-disable-md" flags to enable / disable Material Design in Chrome OS system UI. ash::MaterialDesignController::IsMaterial() can be used to query the mode at run-time. BUG=605644 Committed: https://crrev.com/b6a59711024115cb14728ca0dfdc2a1d507fa567 Cr-Commit-Position: refs/heads/master@{#390260}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Adds ash::MaterialDesignController (comments) #

Total comments: 2

Patch Set 3 : Adds ash::MaterialDesignController (doc) #

Total comments: 9

Patch Set 4 : Adds ash::MaterialDesignController (multi-value) #

Total comments: 4

Patch Set 5 : Adds ash::MaterialDesignController (AshTestBase initialization) #

Patch Set 6 : Adds ash::MaterialDesignController (unit_tests) #

Total comments: 8

Patch Set 7 : Adds ash::MaterialDesignController (comments) #

Total comments: 6

Patch Set 8 : Adds ash::MaterialDesignController (order of args to CHECK_EQ) #

Patch Set 9 : Adds ash::MaterialDesignController (CHECK_* -> DCHECK_*) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+348 lines, -16 lines) Patch
M ash/ash.gyp View 3 chunks +5 lines, -0 lines 0 comments Download
M ash/ash_switches.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M ash/ash_switches.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
A ash/material_design/material_design_controller.h View 1 2 3 4 1 chunk +69 lines, -0 lines 0 comments Download
A ash/material_design/material_design_controller.cc View 1 2 3 4 5 6 7 8 1 chunk +76 lines, -0 lines 0 comments Download
A ash/material_design/material_design_controller_unittest.cc View 1 2 3 4 5 6 1 chunk +135 lines, -0 lines 0 comments Download
M ash/test/ash_test_helper.cc View 1 2 3 4 5 3 chunks +4 lines, -0 lines 0 comments Download
A + ash/test/material_design_controller_test_api.h View 1 2 3 2 chunks +8 lines, -8 lines 0 comments Download
A + ash/test/material_design_controller_test_api.cc View 1 2 3 1 chunk +12 lines, -8 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 68 (27 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1921133002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1921133002/1
4 years, 8 months ago (2016-04-25 22:39:08 UTC) #2
varkha
oshima@, can you please take a first look? This is modeled on ui/base/material_design_controller but simpler ...
4 years, 8 months ago (2016-04-25 22:41:41 UTC) #4
oshima
https://codereview.chromium.org/1921133002/diff/1/ash/material_design/material_design_controller.h File ash/material_design/material_design_controller.h (right): https://codereview.chromium.org/1921133002/diff/1/ash/material_design/material_design_controller.h#newcode1 ash/material_design/material_design_controller.h:1: // Copyright 2015 The Chromium Authors. All rights reserved. ...
4 years, 8 months ago (2016-04-25 23:01:43 UTC) #5
varkha
https://codereview.chromium.org/1921133002/diff/1/ash/material_design/material_design_controller.h File ash/material_design/material_design_controller.h (right): https://codereview.chromium.org/1921133002/diff/1/ash/material_design/material_design_controller.h#newcode1 ash/material_design/material_design_controller.h:1: // Copyright 2015 The Chromium Authors. All rights reserved. ...
4 years, 8 months ago (2016-04-25 23:16:06 UTC) #6
varkha
+asvitkine@ for OWNERS in tools/metrics/histograms/histograms.xml
4 years, 8 months ago (2016-04-25 23:26:13 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1921133002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1921133002/40001
4 years, 8 months ago (2016-04-25 23:26:19 UTC) #11
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-26 01:00:38 UTC) #13
oshima
https://codereview.chromium.org/1921133002/diff/1/ash/material_design/material_design_controller.cc File ash/material_design/material_design_controller.cc (right): https://codereview.chromium.org/1921133002/diff/1/ash/material_design/material_design_controller.cc#newcode26 ash/material_design/material_design_controller.cc:26: switches::kAshEnableMaterialDesign)) { By the way, I personally prefer not ...
4 years, 8 months ago (2016-04-26 05:56:38 UTC) #14
bruthig
Drive by....vroooom https://codereview.chromium.org/1921133002/diff/40001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/1921133002/diff/40001/chrome/browser/about_flags.cc#newcode870 chrome/browser/about_flags.cc:870: ENABLE_DISABLE_VALUE_TYPE(ash::switches::kAshEnableMaterialDesign, Suggestion, I've found it easier to ...
4 years, 8 months ago (2016-04-26 14:00:48 UTC) #16
varkha
https://codereview.chromium.org/1921133002/diff/1/ash/material_design/material_design_controller.cc File ash/material_design/material_design_controller.cc (right): https://codereview.chromium.org/1921133002/diff/1/ash/material_design/material_design_controller.cc#newcode26 ash/material_design/material_design_controller.cc:26: switches::kAshEnableMaterialDesign)) { On 2016/04/26 05:56:37, oshima wrote: > By ...
4 years, 8 months ago (2016-04-26 15:06:02 UTC) #17
Alexei Svitkine (slow)
https://codereview.chromium.org/1921133002/diff/60001/ash/ash_switches.cc File ash/ash_switches.cc (right): https://codereview.chromium.org/1921133002/diff/60001/ash/ash_switches.cc#newcode63 ash/ash_switches.cc:63: const char kAshDisableMaterialDesign[] = "ash-disable-md"; Have you considered using ...
4 years, 8 months ago (2016-04-26 15:12:40 UTC) #18
varkha
https://codereview.chromium.org/1921133002/diff/60001/ash/ash_switches.cc File ash/ash_switches.cc (right): https://codereview.chromium.org/1921133002/diff/60001/ash/ash_switches.cc#newcode63 ash/ash_switches.cc:63: const char kAshDisableMaterialDesign[] = "ash-disable-md"; On 2016/04/26 15:12:39, Alexei ...
4 years, 8 months ago (2016-04-26 15:23:00 UTC) #19
oshima
https://codereview.chromium.org/1921133002/diff/1/ash/material_design/material_design_controller.cc File ash/material_design/material_design_controller.cc (right): https://codereview.chromium.org/1921133002/diff/1/ash/material_design/material_design_controller.cc#newcode26 ash/material_design/material_design_controller.cc:26: switches::kAshEnableMaterialDesign)) { On 2016/04/26 15:06:02, varkha wrote: > On ...
4 years, 8 months ago (2016-04-26 16:06:58 UTC) #20
oshima
On 2016/04/26 15:23:00, varkha wrote: > https://codereview.chromium.org/1921133002/diff/60001/ash/ash_switches.cc > File ash/ash_switches.cc (right): > > https://codereview.chromium.org/1921133002/diff/60001/ash/ash_switches.cc#newcode63 > ...
4 years, 8 months ago (2016-04-26 16:45:34 UTC) #21
varkha
I will try to re-work it with a feature. Also I hear that I will ...
4 years, 8 months ago (2016-04-26 17:35:10 UTC) #22
varkha
PTAL. I've added a multi-value switch. It seems like feature_list is (a) limited to enabled ...
4 years, 7 months ago (2016-04-27 18:52:29 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1921133002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1921133002/80001
4 years, 7 months ago (2016-04-27 18:53:07 UTC) #26
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/212519)
4 years, 7 months ago (2016-04-27 19:20:39 UTC) #28
bruthig
https://codereview.chromium.org/1921133002/diff/80001/ash/material_design/material_design_controller.h File ash/material_design/material_design_controller.h (right): https://codereview.chromium.org/1921133002/diff/80001/ash/material_design/material_design_controller.h#newcode36 ash/material_design/material_design_controller.h:36: // Maps to "ash-enable-md" and "ash-diable-md flags" pair of ...
4 years, 7 months ago (2016-04-27 19:57:36 UTC) #29
Alexei Svitkine (slow)
rubberstamp lgtm for histograms
4 years, 7 months ago (2016-04-27 20:14:47 UTC) #30
varkha
https://codereview.chromium.org/1921133002/diff/60001/ash/material_design/material_design_controller_unittest.cc File ash/material_design/material_design_controller_unittest.cc (right): https://codereview.chromium.org/1921133002/diff/60001/ash/material_design/material_design_controller_unittest.cc#newcode51 ash/material_design/material_design_controller_unittest.cc:51: switches::kAshEnableMaterialDesign); On 2016/04/26 16:06:58, oshima wrote: > These additional ...
4 years, 7 months ago (2016-04-27 21:00:09 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1921133002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1921133002/120001
4 years, 7 months ago (2016-04-27 21:00:54 UTC) #34
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/161652)
4 years, 7 months ago (2016-04-27 21:30:45 UTC) #36
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1921133002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1921133002/140001
4 years, 7 months ago (2016-04-27 21:42:33 UTC) #38
oshima
https://codereview.chromium.org/1921133002/diff/60001/ash/test/material_design_controller_test_api.cc File ash/test/material_design_controller_test_api.cc (right): https://codereview.chromium.org/1921133002/diff/60001/ash/test/material_design_controller_test_api.cc#newcode18 ash/test/material_design_controller_test_api.cc:18: MaterialDesignController::mode_ = previous_mode_; On 2016/04/27 21:00:09, varkha wrote: > ...
4 years, 7 months ago (2016-04-27 21:51:04 UTC) #39
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1921133002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1921133002/160001
4 years, 7 months ago (2016-04-27 22:12:53 UTC) #41
varkha
https://codereview.chromium.org/1921133002/diff/60001/ash/test/material_design_controller_test_api.cc File ash/test/material_design_controller_test_api.cc (right): https://codereview.chromium.org/1921133002/diff/60001/ash/test/material_design_controller_test_api.cc#newcode18 ash/test/material_design_controller_test_api.cc:18: MaterialDesignController::mode_ = previous_mode_; On 2016/04/27 21:51:04, oshima wrote: > ...
4 years, 7 months ago (2016-04-27 22:14:00 UTC) #42
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1921133002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1921133002/180001
4 years, 7 months ago (2016-04-27 22:19:01 UTC) #46
varkha
https://codereview.chromium.org/1921133002/diff/60001/ash/test/material_design_controller_test_api.cc File ash/test/material_design_controller_test_api.cc (right): https://codereview.chromium.org/1921133002/diff/60001/ash/test/material_design_controller_test_api.cc#newcode18 ash/test/material_design_controller_test_api.cc:18: MaterialDesignController::mode_ = previous_mode_; On 2016/04/27 22:14:00, varkha wrote: > ...
4 years, 7 months ago (2016-04-27 22:20:07 UTC) #47
oshima
lgtm with nits https://codereview.chromium.org/1921133002/diff/180001/ash/material_design/material_design_controller.cc File ash/material_design/material_design_controller.cc (right): https://codereview.chromium.org/1921133002/diff/180001/ash/material_design/material_design_controller.cc#newcode23 ash/material_design/material_design_controller.cc:23: CHECK_EQ(Mode::UNINITIALIZED, mode_); nit: DCHECK_EQ (sorry if ...
4 years, 7 months ago (2016-04-27 22:26:22 UTC) #48
varkha
+sky for OWNERS in chrome/browser/chrome_browser_main.cc https://codereview.chromium.org/1921133002/diff/180001/ash/material_design/material_design_controller.cc File ash/material_design/material_design_controller.cc (right): https://codereview.chromium.org/1921133002/diff/180001/ash/material_design/material_design_controller.cc#newcode23 ash/material_design/material_design_controller.cc:23: CHECK_EQ(Mode::UNINITIALIZED, mode_); On 2016/04/27 ...
4 years, 7 months ago (2016-04-27 22:30:06 UTC) #50
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1921133002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1921133002/200001
4 years, 7 months ago (2016-04-27 22:35:54 UTC) #52
oshima
https://codereview.chromium.org/1921133002/diff/180001/ash/material_design/material_design_controller.cc File ash/material_design/material_design_controller.cc (right): https://codereview.chromium.org/1921133002/diff/180001/ash/material_design/material_design_controller.cc#newcode23 ash/material_design/material_design_controller.cc:23: CHECK_EQ(Mode::UNINITIALIZED, mode_); On 2016/04/27 22:30:05, varkha wrote: > On ...
4 years, 7 months ago (2016-04-27 22:58:44 UTC) #53
varkha
https://codereview.chromium.org/1921133002/diff/180001/ash/material_design/material_design_controller.cc File ash/material_design/material_design_controller.cc (right): https://codereview.chromium.org/1921133002/diff/180001/ash/material_design/material_design_controller.cc#newcode23 ash/material_design/material_design_controller.cc:23: CHECK_EQ(Mode::UNINITIALIZED, mode_); On 2016/04/27 22:58:44, oshima wrote: > On ...
4 years, 7 months ago (2016-04-27 23:10:31 UTC) #54
oshima
lgtm thanks!
4 years, 7 months ago (2016-04-27 23:28:06 UTC) #55
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1921133002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1921133002/220001
4 years, 7 months ago (2016-04-27 23:29:41 UTC) #57
sky
LGTM
4 years, 7 months ago (2016-04-27 23:56:43 UTC) #58
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-04-28 00:34:00 UTC) #60
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1921133002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1921133002/220001
4 years, 7 months ago (2016-04-28 00:45:33 UTC) #63
commit-bot: I haz the power
Committed patchset #9 (id:220001)
4 years, 7 months ago (2016-04-28 00:50:58 UTC) #65
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:15:11 UTC) #67
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/b6a59711024115cb14728ca0dfdc2a1d507fa567
Cr-Commit-Position: refs/heads/master@{#390260}

Powered by Google App Engine
This is Rietveld 408576698