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

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

Issue 2374803002: Remove a bunch of pre-MD toolbar code and assets. (Closed)
Patch Set: fix mac? 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 (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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 static int StringToTiling(const std::string& tiling); 166 static int StringToTiling(const std::string& tiling);
167 167
168 // Converts a bitmask of Alignment into a string like "top left". The result 168 // Converts a bitmask of Alignment into a string like "top left". The result
169 // is used to generate a CSS value. 169 // is used to generate a CSS value.
170 static std::string AlignmentToString(int alignment); 170 static std::string AlignmentToString(int alignment);
171 171
172 // Converts a Tiling into a string like "no-repeat". The result is used to 172 // Converts a Tiling into a string like "no-repeat". The result is used to
173 // generate a CSS value. 173 // generate a CSS value.
174 static std::string TilingToString(int tiling); 174 static std::string TilingToString(int tiling);
175 175
176 // Returns the set of IDR_* resources that should be tinted.
177 // This method is not thread safe.
178 static const std::set<int>& GetTintableToolbarButtons();
179
180 // Returns the default tint for the given tint |id| TINT_* enum value. 176 // Returns the default tint for the given tint |id| TINT_* enum value.
181 // Returns an HSL value of {-1, -1, -1} if |id| is invalid. 177 // Returns an HSL value of {-1, -1, -1} if |id| is invalid.
182 static color_utils::HSL GetDefaultTint(int id, bool otr); 178 static color_utils::HSL GetDefaultTint(int id, bool otr);
183 179
184 // Returns the default color for the given color |id| COLOR_* enum value. 180 // Returns the default color for the given color |id| COLOR_* enum value.
185 // Returns gfx::kPlaceholderColor if |id| is invalid. 181 // Returns gfx::kPlaceholderColor if |id| is invalid.
186 static SkColor GetDefaultColor(int id, bool otr); 182 static SkColor GetDefaultColor(int id, bool otr);
187 183
188 private: 184 private:
189 DISALLOW_IMPLICIT_CONSTRUCTORS(ThemeProperties); 185 DISALLOW_IMPLICIT_CONSTRUCTORS(ThemeProperties);
190 }; 186 };
191 187
192 #endif // CHROME_BROWSER_THEMES_THEME_PROPERTIES_H_ 188 #endif // CHROME_BROWSER_THEMES_THEME_PROPERTIES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698