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

Side by Side Diff: chrome/browser/browser_theme_provider_gtk.cc

Issue 259047: Move classes depending on Skia out of base/gfx and into app/gfx. Rename... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc ('k') | chrome/browser/gtk/about_chrome_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698