Chromium Code Reviews| 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); |
| }; |