| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/browser_theme_provider.h" | 5 #include "chrome/browser/browser_theme_provider.h" |
| 6 | 6 |
| 7 #include "app/gfx/gtk_util.h" |
| 7 #include "app/l10n_util.h" | 8 #include "app/l10n_util.h" |
| 8 #include "base/gfx/gtk_util.h" | |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "third_party/skia/include/core/SkBitmap.h" | 10 #include "third_party/skia/include/core/SkBitmap.h" |
| 11 | 11 |
| 12 GdkPixbuf* BrowserThemeProvider::GetPixbufNamed(int id) { | 12 GdkPixbuf* BrowserThemeProvider::GetPixbufNamed(int id) { |
| 13 return GetPixbufImpl(id, false); | 13 return GetPixbufImpl(id, false); |
| 14 } | 14 } |
| 15 | 15 |
| 16 GdkPixbuf* BrowserThemeProvider::GetRTLEnabledPixbufNamed(int id) { | 16 GdkPixbuf* BrowserThemeProvider::GetRTLEnabledPixbufNamed(int id) { |
| 17 return GetPixbufImpl(id, true); | 17 return GetPixbufImpl(id, true); |
| 18 } | 18 } |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 void BrowserThemeProvider::FreePlatformCaches() { | 63 void BrowserThemeProvider::FreePlatformCaches() { |
| 64 DCHECK(CalledOnValidThread()); | 64 DCHECK(CalledOnValidThread()); |
| 65 | 65 |
| 66 // Free GdkPixbufs. | 66 // Free GdkPixbufs. |
| 67 for (GdkPixbufMap::iterator i = gdk_pixbufs_.begin(); | 67 for (GdkPixbufMap::iterator i = gdk_pixbufs_.begin(); |
| 68 i != gdk_pixbufs_.end(); i++) { | 68 i != gdk_pixbufs_.end(); i++) { |
| 69 g_object_unref(i->second); | 69 g_object_unref(i->second); |
| 70 } | 70 } |
| 71 gdk_pixbufs_.clear(); | 71 gdk_pixbufs_.clear(); |
| 72 } | 72 } |
| OLD | NEW |