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

Side by Side Diff: chrome/browser/themes/theme_properties.h

Issue 2468723003: Move session service and supervised users to buildflags. (Closed)
Patch Set: Created 4 years, 1 month 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 CHROME_BROWSER_THEMES_THEME_PROPERTIES_H_ 5 #ifndef CHROME_BROWSER_THEMES_THEME_PROPERTIES_H_
6 #define CHROME_BROWSER_THEMES_THEME_PROPERTIES_H_ 6 #define CHROME_BROWSER_THEMES_THEME_PROPERTIES_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "build/build_config.h" 12 #include "build/build_config.h"
13 #include "chrome/common/features.h"
13 #include "third_party/skia/include/core/SkColor.h" 14 #include "third_party/skia/include/core/SkColor.h"
14 #include "ui/gfx/color_utils.h" 15 #include "ui/gfx/color_utils.h"
15 16
16 // Static only class for querying which properties / images are themeable and 17 // Static only class for querying which properties / images are themeable and
17 // the defaults of these properties. 18 // the defaults of these properties.
18 // All methods are thread safe unless indicated otherwise. 19 // All methods are thread safe unless indicated otherwise.
19 class ThemeProperties { 20 class ThemeProperties {
20 public: 21 public:
21 // --------------------------------------------------------------------------- 22 // ---------------------------------------------------------------------------
22 // The int values of OverwritableByUserThemeProperties, Alignment, and Tiling 23 // The int values of OverwritableByUserThemeProperties, Alignment, and Tiling
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 COLOR_TAB_THROBBER_SPINNING, 122 COLOR_TAB_THROBBER_SPINNING,
122 COLOR_TAB_THROBBER_WAITING, 123 COLOR_TAB_THROBBER_WAITING,
123 124
124 // These colors don't have constant default values. They are derived from 125 // These colors don't have constant default values. They are derived from
125 // the runtime value of other colors. 126 // the runtime value of other colors.
126 COLOR_NTP_SECTION_HEADER_TEXT, 127 COLOR_NTP_SECTION_HEADER_TEXT,
127 COLOR_NTP_SECTION_HEADER_TEXT_HOVER, 128 COLOR_NTP_SECTION_HEADER_TEXT_HOVER,
128 COLOR_NTP_SECTION_HEADER_RULE, 129 COLOR_NTP_SECTION_HEADER_RULE,
129 COLOR_NTP_SECTION_HEADER_RULE_LIGHT, 130 COLOR_NTP_SECTION_HEADER_RULE_LIGHT,
130 COLOR_NTP_TEXT_LIGHT, 131 COLOR_NTP_TEXT_LIGHT,
131 #if defined(ENABLE_SUPERVISED_USERS) 132 #if BUILDFLAG(ENABLE_SUPERVISED_USERS)
132 COLOR_SUPERVISED_USER_LABEL, 133 COLOR_SUPERVISED_USER_LABEL,
133 COLOR_SUPERVISED_USER_LABEL_BACKGROUND, 134 COLOR_SUPERVISED_USER_LABEL_BACKGROUND,
134 COLOR_SUPERVISED_USER_LABEL_BORDER, 135 COLOR_SUPERVISED_USER_LABEL_BORDER,
135 #endif 136 #endif
136 137
137 #if defined(OS_MACOSX) 138 #if defined(OS_MACOSX)
138 COLOR_FRAME_VIBRANCY_OVERLAY, 139 COLOR_FRAME_VIBRANCY_OVERLAY,
139 COLOR_TOOLBAR_INACTIVE, 140 COLOR_TOOLBAR_INACTIVE,
140 COLOR_BACKGROUND_TAB_INACTIVE, 141 COLOR_BACKGROUND_TAB_INACTIVE,
141 COLOR_TOOLBAR_BEZEL, 142 COLOR_TOOLBAR_BEZEL,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 183
183 // Returns the default color for the given color |id| COLOR_* enum value. 184 // Returns the default color for the given color |id| COLOR_* enum value.
184 // Returns gfx::kPlaceholderColor if |id| is invalid. 185 // Returns gfx::kPlaceholderColor if |id| is invalid.
185 static SkColor GetDefaultColor(int id, bool otr); 186 static SkColor GetDefaultColor(int id, bool otr);
186 187
187 private: 188 private:
188 DISALLOW_IMPLICIT_CONSTRUCTORS(ThemeProperties); 189 DISALLOW_IMPLICIT_CONSTRUCTORS(ThemeProperties);
189 }; 190 };
190 191
191 #endif // CHROME_BROWSER_THEMES_THEME_PROPERTIES_H_ 192 #endif // CHROME_BROWSER_THEMES_THEME_PROPERTIES_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/supervised_user_signin_manager_wrapper.cc ('k') | chrome/browser/themes/theme_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698