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

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

Issue 254007: Wires up views on linux dialogs to use gtk ones. (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
« no previous file with comments | « chrome/browser/browser_theme_provider.h ('k') | chrome/browser/defaults.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/skbitmap_operations.h" 7 #include "app/gfx/skbitmap_operations.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/gfx/png_decoder.h" 9 #include "base/gfx/png_decoder.h"
10 #include "base/gfx/png_encoder.h" 10 #include "base/gfx/png_encoder.h"
(...skipping 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after
1242 void BrowserThemeProvider::ClearCaches() { 1242 void BrowserThemeProvider::ClearCaches() {
1243 FreePlatformCaches(); 1243 FreePlatformCaches();
1244 for (ImageCache::iterator i = image_cache_.begin(); 1244 for (ImageCache::iterator i = image_cache_.begin();
1245 i != image_cache_.end(); i++) { 1245 i != image_cache_.end(); i++) {
1246 delete i->second; 1246 delete i->second;
1247 } 1247 }
1248 image_cache_.clear(); 1248 image_cache_.clear();
1249 images_disk_cache_.clear(); 1249 images_disk_cache_.clear();
1250 } 1250 }
1251 1251
1252 #if defined(TOOLKIT_VIEWS) 1252 #if defined(OS_WIN)
1253 void BrowserThemeProvider::FreePlatformCaches() { 1253 void BrowserThemeProvider::FreePlatformCaches() {
1254 // Views (Skia) has no platform image cache to clear. 1254 // Views (Skia) has no platform image cache to clear.
1255 } 1255 }
1256 #endif 1256 #endif
OLDNEW
« no previous file with comments | « chrome/browser/browser_theme_provider.h ('k') | chrome/browser/defaults.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698