| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/browser/themes/theme_service.h" | 5 #include "chrome/browser/themes/theme_service.h" |
| 6 | 6 |
| 7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "chrome/browser/themes/browser_theme_pack.h" | 10 #include "chrome/browser/themes/browser_theme_pack.h" |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 } | 279 } |
| 280 nscolor_cache_.clear(); | 280 nscolor_cache_.clear(); |
| 281 | 281 |
| 282 // Free gradients. | 282 // Free gradients. |
| 283 for (NSGradientMap::iterator i = nsgradient_cache_.begin(); | 283 for (NSGradientMap::iterator i = nsgradient_cache_.begin(); |
| 284 i != nsgradient_cache_.end(); i++) { | 284 i != nsgradient_cache_.end(); i++) { |
| 285 [i->second release]; | 285 [i->second release]; |
| 286 } | 286 } |
| 287 nsgradient_cache_.clear(); | 287 nsgradient_cache_.clear(); |
| 288 } | 288 } |
| 289 |
| 290 bool ThemeService::BrowserThemeProvider::UsingSystemTheme() const { |
| 291 return theme_service_->UsingSystemTheme(); |
| 292 } |
| 293 |
| 294 NSImage* ThemeService::BrowserThemeProvider::GetNSImageNamed(int id) const { |
| 295 return theme_service_->GetNSImageNamed(id); |
| 296 } |
| 297 |
| 298 NSColor* ThemeService::BrowserThemeProvider::GetNSImageColorNamed( |
| 299 int id) const { |
| 300 return theme_service_->GetNSImageColorNamed(id); |
| 301 } |
| 302 |
| 303 NSColor* ThemeService::BrowserThemeProvider::GetNSColor(int id) const { |
| 304 return theme_service_->GetNSColor(id); |
| 305 } |
| 306 |
| 307 NSColor* ThemeService::BrowserThemeProvider::GetNSColorTint(int id) const { |
| 308 return theme_service_->GetNSColorTint(id); |
| 309 } |
| 310 |
| 311 NSGradient* ThemeService::BrowserThemeProvider::GetNSGradient(int id) const { |
| 312 return theme_service_->GetNSGradient(id); |
| 313 } |
| OLD | NEW |