Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: ash/common/material_design/material_design_controller.h

Issue 2401473002: [ash-md] Erases the pre-MD code path for Overview Mode (Closed)
Patch Set: [ash-md] Erases the pre-MD code path for Overview Mode (comments) Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ash/common/frame/header_view.cc ('k') | ash/common/material_design/material_design_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698