OLD | NEW |
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/basictypes.h" | 11 #include "base/macros.h" |
| 12 #include "build/build_config.h" |
12 #include "third_party/skia/include/core/SkColor.h" | 13 #include "third_party/skia/include/core/SkColor.h" |
13 #include "ui/gfx/color_utils.h" | 14 #include "ui/gfx/color_utils.h" |
14 | 15 |
15 // Static only class for querying which properties / images are themeable and | 16 // Static only class for querying which properties / images are themeable and |
16 // the defaults of these properties. | 17 // the defaults of these properties. |
17 // All methods are thread safe unless indicated otherwise. | 18 // All methods are thread safe unless indicated otherwise. |
18 class ThemeProperties { | 19 class ThemeProperties { |
19 public: | 20 public: |
20 // --------------------------------------------------------------------------- | 21 // --------------------------------------------------------------------------- |
21 // The int values of OverwritableByUserThemeProperties, Alignment, and Tiling | 22 // The int values of OverwritableByUserThemeProperties, Alignment, and Tiling |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 | 160 |
160 // Returns the default color for the given color |id| COLOR_* enum value. | 161 // Returns the default color for the given color |id| COLOR_* enum value. |
161 // Returns gfx::kPlaceholderColor if |id| is invalid. | 162 // Returns gfx::kPlaceholderColor if |id| is invalid. |
162 static SkColor GetDefaultColor(int id, bool otr); | 163 static SkColor GetDefaultColor(int id, bool otr); |
163 | 164 |
164 private: | 165 private: |
165 DISALLOW_IMPLICIT_CONSTRUCTORS(ThemeProperties); | 166 DISALLOW_IMPLICIT_CONSTRUCTORS(ThemeProperties); |
166 }; | 167 }; |
167 | 168 |
168 #endif // CHROME_BROWSER_THEMES_THEME_PROPERTIES_H_ | 169 #endif // CHROME_BROWSER_THEMES_THEME_PROPERTIES_H_ |
OLD | NEW |