| 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 19 matching lines...) Expand all Loading... |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 // Initializes |mode_|. Must be called before calling IsMaterial(), | 32 // Initializes |mode_|. Must be called before calling IsMaterial(), |
| 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 overview mode is using Material Design. | |
| 41 static bool IsOverviewMaterial(); | |
| 42 | |
| 43 // 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. |
| 44 static bool IsShelfMaterial(); | 41 static bool IsShelfMaterial(); |
| 45 | 42 |
| 46 // Returns true if Material Design features are enabled for Chrome OS | 43 // Returns true if Material Design features are enabled for Chrome OS |
| 47 // immersive mode. | 44 // immersive mode. |
| 48 static bool IsImmersiveModeMaterial(); | 45 static bool IsImmersiveModeMaterial(); |
| 49 | 46 |
| 50 // Returns true if Material Design features are enabled for Chrome OS system | 47 // Returns true if Material Design features are enabled for Chrome OS system |
| 51 // tray menu. | 48 // tray menu. |
| 52 static bool IsSystemTrayMenuMaterial(); | 49 static bool IsSystemTrayMenuMaterial(); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 // Resets the initialization state to uninitialized. To be used by tests to | 84 // Resets the initialization state to uninitialized. To be used by tests to |
| 88 // allow calling Initialize() more than once. | 85 // allow calling Initialize() more than once. |
| 89 static void Uninitialize(); | 86 static void Uninitialize(); |
| 90 | 87 |
| 91 DISALLOW_COPY_AND_ASSIGN(MaterialDesignController); | 88 DISALLOW_COPY_AND_ASSIGN(MaterialDesignController); |
| 92 }; | 89 }; |
| 93 | 90 |
| 94 } // namespace ash | 91 } // namespace ash |
| 95 | 92 |
| 96 #endif // ASH_COMMON_MATERIAL_DESIGN_MATERIAL_DESIGN_CONTROLLER_H_ | 93 #endif // ASH_COMMON_MATERIAL_DESIGN_MATERIAL_DESIGN_CONTROLLER_H_ |
| OLD | NEW |