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 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 static const std::set<int>& GetTintableToolbarButtons(); | 133 static const std::set<int>& GetTintableToolbarButtons(); |
134 | 134 |
135 // Returns the default tint for the given tint |id| TINT_* enum value. | 135 // Returns the default tint for the given tint |id| TINT_* enum value. |
136 // Returns an HSL value of {-1, -1, -1} if |id| is invalid. | 136 // Returns an HSL value of {-1, -1, -1} if |id| is invalid. |
137 static color_utils::HSL GetDefaultTint(int id); | 137 static color_utils::HSL GetDefaultTint(int id); |
138 | 138 |
139 // Returns the default color for the given color |id| COLOR_* enum value. | 139 // Returns the default color for the given color |id| COLOR_* enum value. |
140 // Returns SK_ColorRED if |id| is invalid. | 140 // Returns SK_ColorRED if |id| is invalid. |
141 static SkColor GetDefaultColor(int id); | 141 static SkColor GetDefaultColor(int id); |
142 | 142 |
143 // Returns true and sets |result| to the requested default property, if |id| | 143 // Returns the default value for the given property |id|. Returns -1 if |id| |
144 // is valid. | 144 // is invalid. |
145 static bool GetDefaultDisplayProperty(int id, int* result); | 145 static int GetDefaultDisplayProperty(int id); |
146 | 146 |
147 private: | 147 private: |
148 DISALLOW_IMPLICIT_CONSTRUCTORS(ThemeProperties); | 148 DISALLOW_IMPLICIT_CONSTRUCTORS(ThemeProperties); |
149 }; | 149 }; |
150 | 150 |
151 #endif // CHROME_BROWSER_THEMES_THEME_PROPERTIES_H_ | 151 #endif // CHROME_BROWSER_THEMES_THEME_PROPERTIES_H_ |
OLD | NEW |