| 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" |
| 11 #include "chrome/browser/themes/theme_properties.h" | 11 #include "chrome/browser/themes/theme_properties.h" |
| 12 #include "skia/ext/skia_utils_mac.h" | 12 #include "skia/ext/skia_utils_mac.h" |
| 13 #import "third_party/GTM/AppKit/GTMNSColor+Luminance.h" | 13 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSColor+Luminance.h" |
| 14 #include "ui/base/resource/resource_bundle.h" | 14 #include "ui/base/resource/resource_bundle.h" |
| 15 #include "ui/gfx/color_utils.h" | 15 #include "ui/gfx/color_utils.h" |
| 16 #include "ui/gfx/image/image.h" | 16 #include "ui/gfx/image/image.h" |
| 17 #include "skia/ext/skia_utils_mac.h" | 17 #include "skia/ext/skia_utils_mac.h" |
| 18 | 18 |
| 19 NSString* const kBrowserThemeDidChangeNotification = | 19 NSString* const kBrowserThemeDidChangeNotification = |
| 20 @"BrowserThemeDidChangeNotification"; | 20 @"BrowserThemeDidChangeNotification"; |
| 21 | 21 |
| 22 typedef ThemeProperties Properties; | 22 typedef ThemeProperties Properties; |
| 23 | 23 |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 } | 280 } |
| 281 nscolor_cache_.clear(); | 281 nscolor_cache_.clear(); |
| 282 | 282 |
| 283 // Free gradients. | 283 // Free gradients. |
| 284 for (NSGradientMap::iterator i = nsgradient_cache_.begin(); | 284 for (NSGradientMap::iterator i = nsgradient_cache_.begin(); |
| 285 i != nsgradient_cache_.end(); i++) { | 285 i != nsgradient_cache_.end(); i++) { |
| 286 [i->second release]; | 286 [i->second release]; |
| 287 } | 287 } |
| 288 nsgradient_cache_.clear(); | 288 nsgradient_cache_.clear(); |
| 289 } | 289 } |
| OLD | NEW |