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 25 matching lines...) Expand all Loading... |
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 overview mode is using Material Design. | 40 // Returns true if overview mode is using Material Design. |
41 static bool IsOverviewMaterial(); | 41 static bool IsOverviewMaterial(); |
42 | 42 |
43 // Returns true if Material Design features are enabled for Chrome OS shelf. | 43 // Returns true if Material Design features are enabled for Chrome OS shelf. |
44 static bool IsShelfMaterial(); | 44 static bool IsShelfMaterial(); |
45 | 45 |
| 46 // Returns true if Material Design features are enabled for Chrome OS |
| 47 // immersive mode. |
| 48 static bool IsImmersiveModeMaterial(); |
| 49 |
46 // Returns true if Material Design features are enabled for Chrome OS system | 50 // Returns true if Material Design features are enabled for Chrome OS system |
47 // tray menu. | 51 // tray menu. |
48 static bool IsSystemTrayMenuMaterial(); | 52 static bool IsSystemTrayMenuMaterial(); |
49 | 53 |
50 // Returns true if material design versions of icons should be used in the | 54 // Returns true if material design versions of icons should be used in the |
51 // status tray and system menu. | 55 // status tray and system menu. |
52 static bool UseMaterialDesignSystemIcons(); | 56 static bool UseMaterialDesignSystemIcons(); |
53 | 57 |
54 private: | 58 private: |
55 friend class test::MaterialDesignControllerTestAPI; | 59 friend class test::MaterialDesignControllerTestAPI; |
(...skipping 27 matching lines...) Expand all Loading... |
83 // Resets the initialization state to uninitialized. To be used by tests to | 87 // Resets the initialization state to uninitialized. To be used by tests to |
84 // allow calling Initialize() more than once. | 88 // allow calling Initialize() more than once. |
85 static void Uninitialize(); | 89 static void Uninitialize(); |
86 | 90 |
87 DISALLOW_COPY_AND_ASSIGN(MaterialDesignController); | 91 DISALLOW_COPY_AND_ASSIGN(MaterialDesignController); |
88 }; | 92 }; |
89 | 93 |
90 } // namespace ash | 94 } // namespace ash |
91 | 95 |
92 #endif // ASH_COMMON_MATERIAL_DESIGN_MATERIAL_DESIGN_CONTROLLER_H_ | 96 #endif // ASH_COMMON_MATERIAL_DESIGN_MATERIAL_DESIGN_CONTROLLER_H_ |
OLD | NEW |