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

Unified Diff: chrome/browser/ui/cocoa/gradient_button_cell.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: fixes? 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/ui/cocoa/gradient_button_cell.mm
diff --git a/chrome/browser/ui/cocoa/gradient_button_cell.mm b/chrome/browser/ui/cocoa/gradient_button_cell.mm
index 74cb77800081d8707f45f0f87c34f121381140cf..a53cbacbfa1732af8275d0f905fb4a4495787558 100644
--- a/chrome/browser/ui/cocoa/gradient_button_cell.mm
+++ b/chrome/browser/ui/cocoa/gradient_button_cell.mm
@@ -604,13 +604,12 @@ static const NSTimeInterval kAnimationContinuousCycleDuration = 0.4;
CGContextRef context =
(CGContextRef)([[NSGraphicsContext currentContext] graphicsPort]);
- ThemeService* themeProvider = static_cast<ThemeService*>(
- [[controlView window] themeProvider]);
+ ui::ThemeProvider* themeProvider = [[controlView window] themeProvider];
groby-ooo-7-16 2015/12/11 02:32:01 THANK YOU!
NSColor* color = themeProvider ?
themeProvider->GetNSColorTint(ThemeProperties::TINT_BUTTONS) :
[NSColor blackColor];
- if (isTemplate && themeProvider && themeProvider->UsingDefaultTheme()) {
+ if (isTemplate && themeProvider && themeProvider->UsingSystemTheme()) {
base::scoped_nsobject<NSShadow> shadow([[NSShadow alloc] init]);
[shadow.get() setShadowColor:themeProvider->GetNSColor(
ThemeProperties::COLOR_TOOLBAR_BEZEL)];

Powered by Google App Engine
This is Rietveld 408576698