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

Unified Diff: chrome/browser/themes/theme_service_mac.mm

Issue 1492423003: Rejigger ThemeService: move exposure of ThemeProvider interface to a (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: respond to comments 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/themes/theme_service_mac.mm
diff --git a/chrome/browser/themes/theme_service_mac.mm b/chrome/browser/themes/theme_service_mac.mm
index 1b9a5410caf44136215ba394fb9aaf242b4aad31..f5a96a9ec025965dacb8935ee48f533916edddf3 100644
--- a/chrome/browser/themes/theme_service_mac.mm
+++ b/chrome/browser/themes/theme_service_mac.mm
@@ -286,3 +286,28 @@ void ThemeService::FreePlatformCaches() {
}
nsgradient_cache_.clear();
}
+
+bool ThemeService::BrowserThemeProvider::UsingSystemTheme() const {
+ return theme_service_->UsingSystemTheme();
+}
+
+NSImage* ThemeService::BrowserThemeProvider::GetNSImageNamed(int id) const {
+ return theme_service_->GetNSImageNamed(id);
+}
+
+NSColor* ThemeService::BrowserThemeProvider::GetNSImageColorNamed(
+ int id) const {
+ return theme_service_->GetNSImageColorNamed(id);
+}
+
+NSColor* ThemeService::BrowserThemeProvider::GetNSColor(int id) const {
+ return theme_service_->GetNSColor(id);
+}
+
+NSColor* ThemeService::BrowserThemeProvider::GetNSColorTint(int id) const {
+ return theme_service_->GetNSColorTint(id);
+}
+
+NSGradient* ThemeService::BrowserThemeProvider::GetNSGradient(int id) const {
+ return theme_service_->GetNSGradient(id);
+}

Powered by Google App Engine
This is Rietveld 408576698