Chromium Code Reviews| 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 Chrome OS tooltips are using Material Design features. | |
| 47 static bool IsTooltipMaterial(); | |
|
tdanderson
2016/07/22 17:24:31
Since you're in the process of making the top chro
varkha
2016/07/22 22:03:56
Done.
| |
| 48 | |
| 46 // Returns true if material design versions of icons should be used in the | 49 // Returns true if material design versions of icons should be used in the |
| 47 // status tray and system menu. | 50 // status tray and system menu. |
| 48 static bool UseMaterialDesignSystemIcons(); | 51 static bool UseMaterialDesignSystemIcons(); |
| 49 | 52 |
| 50 private: | 53 private: |
| 51 friend class test::MaterialDesignControllerTestAPI; | 54 friend class test::MaterialDesignControllerTestAPI; |
| 52 | 55 |
| 53 // Declarations only. Do not allow construction of an object. | 56 // Declarations only. Do not allow construction of an object. |
| 54 MaterialDesignController(); | 57 MaterialDesignController(); |
| 55 ~MaterialDesignController(); | 58 ~MaterialDesignController(); |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 79 // Resets the initialization state to uninitialized. To be used by tests to | 82 // Resets the initialization state to uninitialized. To be used by tests to |
| 80 // allow calling Initialize() more than once. | 83 // allow calling Initialize() more than once. |
| 81 static void Uninitialize(); | 84 static void Uninitialize(); |
| 82 | 85 |
| 83 DISALLOW_COPY_AND_ASSIGN(MaterialDesignController); | 86 DISALLOW_COPY_AND_ASSIGN(MaterialDesignController); |
| 84 }; | 87 }; |
| 85 | 88 |
| 86 } // namespace ash | 89 } // namespace ash |
| 87 | 90 |
| 88 #endif // ASH_COMMON_MATERIAL_DESIGN_MATERIAL_DESIGN_CONTROLLER_H_ | 91 #endif // ASH_COMMON_MATERIAL_DESIGN_MATERIAL_DESIGN_CONTROLLER_H_ |
| OLD | NEW |