OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ASH_COMMON_MATERIAL_DESIGN_MATERIAL_DESIGN_CONTROLLER_H_ | 5 #ifndef ASH_COMMON_MATERIAL_DESIGN_MATERIAL_DESIGN_CONTROLLER_H_ |
6 #define ASH_COMMON_MATERIAL_DESIGN_MATERIAL_DESIGN_CONTROLLER_H_ | 6 #define ASH_COMMON_MATERIAL_DESIGN_MATERIAL_DESIGN_CONTROLLER_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 // IsMaterialExperimental(), IsMaterialNormal(), or GetMode(). | 33 // IsMaterialExperimental(), IsMaterialNormal(), or GetMode(). |
34 static void Initialize(); | 34 static void Initialize(); |
35 | 35 |
36 // Returns the currently initialized MaterialDesignController::Mode type for | 36 // Returns the currently initialized MaterialDesignController::Mode type for |
37 // Chrome OS system UI. | 37 // Chrome OS system UI. |
38 static Mode GetMode(); | 38 static Mode GetMode(); |
39 | 39 |
40 // Returns true if Material Design features are enabled for Chrome OS shelf. | 40 // Returns true if Material Design features are enabled for Chrome OS shelf. |
41 static bool IsShelfMaterial(); | 41 static bool IsShelfMaterial(); |
42 | 42 |
43 // Returns true if Material Design features are enabled for Chrome OS | |
44 // immersive mode. | |
45 static bool IsImmersiveModeMaterial(); | |
46 | |
47 // Returns true if Material Design features are enabled for Chrome OS system | 43 // Returns true if Material Design features are enabled for Chrome OS system |
48 // tray menu. | 44 // tray menu. |
49 static bool IsSystemTrayMenuMaterial(); | 45 static bool IsSystemTrayMenuMaterial(); |
50 | 46 |
51 // Returns true if material design versions of icons should be used in the | 47 // Returns true if material design versions of icons should be used in the |
52 // status tray and system menu. | 48 // status tray and system menu. |
53 static bool UseMaterialDesignSystemIcons(); | 49 static bool UseMaterialDesignSystemIcons(); |
54 | 50 |
55 private: | 51 private: |
56 friend class test::MaterialDesignControllerTestAPI; | 52 friend class test::MaterialDesignControllerTestAPI; |
(...skipping 27 matching lines...) Expand all Loading... |
84 // Resets the initialization state to uninitialized. To be used by tests to | 80 // Resets the initialization state to uninitialized. To be used by tests to |
85 // allow calling Initialize() more than once. | 81 // allow calling Initialize() more than once. |
86 static void Uninitialize(); | 82 static void Uninitialize(); |
87 | 83 |
88 DISALLOW_COPY_AND_ASSIGN(MaterialDesignController); | 84 DISALLOW_COPY_AND_ASSIGN(MaterialDesignController); |
89 }; | 85 }; |
90 | 86 |
91 } // namespace ash | 87 } // namespace ash |
92 | 88 |
93 #endif // ASH_COMMON_MATERIAL_DESIGN_MATERIAL_DESIGN_CONTROLLER_H_ | 89 #endif // ASH_COMMON_MATERIAL_DESIGN_MATERIAL_DESIGN_CONTROLLER_H_ |
OLD | NEW |