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

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

Issue 1492423003: Rejigger ThemeService: move exposure of ThemeProvider interface to a (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix that unittest Created 5 years 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 | « chrome/browser/search/local_ntp_source.cc ('k') | chrome/browser/themes/theme_properties.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 (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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 static const std::set<int>& GetTintableToolbarButtons(); 147 static const std::set<int>& GetTintableToolbarButtons();
148 148
149 // Returns the default tint for the given tint |id| TINT_* enum value. 149 // Returns the default tint for the given tint |id| TINT_* enum value.
150 // Returns an HSL value of {-1, -1, -1} if |id| is invalid. 150 // Returns an HSL value of {-1, -1, -1} if |id| is invalid.
151 static color_utils::HSL GetDefaultTint(int id); 151 static color_utils::HSL GetDefaultTint(int id);
152 152
153 // Returns the default color for the given color |id| COLOR_* enum value. 153 // Returns the default color for the given color |id| COLOR_* enum value.
154 // Returns gfx::kPlaceholderColor if |id| is invalid. 154 // Returns gfx::kPlaceholderColor if |id| is invalid.
155 static SkColor GetDefaultColor(int id); 155 static SkColor GetDefaultColor(int id);
156 156
157 // As above, but takes incognito status into account.
158 // TODO(estade): remove the above in favor of this one.
159 static SkColor GetDefaultColor(int id, bool otr);
160
157 private: 161 private:
158 DISALLOW_IMPLICIT_CONSTRUCTORS(ThemeProperties); 162 DISALLOW_IMPLICIT_CONSTRUCTORS(ThemeProperties);
159 }; 163 };
160 164
161 #endif // CHROME_BROWSER_THEMES_THEME_PROPERTIES_H_ 165 #endif // CHROME_BROWSER_THEMES_THEME_PROPERTIES_H_
OLDNEW
« no previous file with comments | « chrome/browser/search/local_ntp_source.cc ('k') | chrome/browser/themes/theme_properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698