| 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 d0765a59ef212056ee383a83914e32586c1adf2c..46363f776b1a3622726865439f3f60def1e5db5c 100644
|
| --- a/ui/base/material_design/material_design_controller.h
|
| +++ b/ui/base/material_design/material_design_controller.h
|
| @@ -31,10 +31,6 @@ 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();
|
|
|
| @@ -45,6 +41,9 @@ 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;
|
|
|
| @@ -59,6 +58,10 @@ 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();
|
| +
|
| // Resets the initialization state to uninitialized. To be used by tests to
|
| // allow calling Initialize() more than once.
|
| static void Uninitialize();
|
| @@ -67,10 +70,7 @@ 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_IMPLICIT_CONSTRUCTORS(MaterialDesignController);
|
| + DISALLOW_COPY_AND_ASSIGN(MaterialDesignController);
|
| };
|
|
|
| } // namespace ui
|
|
|