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

Unified Diff: ui/base/material_design/material_design_controller.h

Issue 1955773002: Enable MD by default on Windows for Canary/Dev and local builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments, Mac fix Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/base/material_design/material_design_controller.h
diff --git a/ui/base/material_design/material_design_controller.h b/ui/base/material_design/material_design_controller.h
index 46363f776b1a3622726865439f3f60def1e5db5c..34f0de6e27bad0efa5185cd706451415580dd3c5 100644
--- a/ui/base/material_design/material_design_controller.h
+++ b/ui/base/material_design/material_design_controller.h
@@ -31,6 +31,10 @@ class UI_BASE_EXPORT MaterialDesignController {
// Initializes |mode_|. Must be called before checking |mode_|.
static void Initialize();
+ // Same as Initialize(), but uses |mode| (instead of DefaultMode()) as the
+ // default value if no command-line switch or field trial overrides it.
+ static void InitializeWithDefaultMode(Mode mode);
+
// Get the current Mode that should be used by the system.
static Mode GetMode();
@@ -41,9 +45,6 @@ class UI_BASE_EXPORT MaterialDesignController {
// should be extended to cover secondary UI.
static bool IsSecondaryUiMaterial();
- // Returns the per-platform default material design variant.
- static Mode DefaultMode();
-
private:
friend class test::MaterialDesignControllerTestAPI;
@@ -58,9 +59,8 @@ class UI_BASE_EXPORT MaterialDesignController {
// etc.). For example, this controls use of MD inside bubbles and dialogs.
static bool include_secondary_ui_;
- // Declarations only. Do not allow construction of an object.
- MaterialDesignController();
- ~MaterialDesignController();
+ // Do not allow construction of an object.
+ MaterialDesignController() = delete;
sky 2016/05/16 19:56:10 DISALLOW_IMPLICIT_CONSTRUCTORS?
Peter Kasting 2016/05/16 23:09:14 Sure.
// Resets the initialization state to uninitialized. To be used by tests to
// allow calling Initialize() more than once.
@@ -70,6 +70,9 @@ class UI_BASE_EXPORT MaterialDesignController {
// used by tests to directly set the mode.
static void SetMode(Mode mode);
+ // Returns the per-platform default material design variant.
+ static Mode DefaultMode();
+
DISALLOW_COPY_AND_ASSIGN(MaterialDesignController);
};
« no previous file with comments | « chrome/browser/ui/startup/bad_flags_prompt.cc ('k') | ui/base/material_design/material_design_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698