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

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

Issue 2326703002: Do not show shelf or top chrome hints while in Ash immersive mode (Closed)
Patch Set: address comments Created 4 years, 3 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
« no previous file with comments | « no previous file | ash/common/material_design/material_design_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 25 matching lines...) Expand all
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
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_
OLDNEW
« no previous file with comments | « no previous file | ash/common/material_design/material_design_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698