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

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

Issue 174562: Fix theme caching on Vista 64 when default theme is installed from the theme ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 | « no previous file | chrome/browser/browser_theme_provider.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 #ifndef CHROME_BROWSER_BROWSER_THEME_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_BROWSER_THEME_PROVIDER_H_
6 #define CHROME_BROWSER_BROWSER_THEME_PROVIDER_H_ 6 #define CHROME_BROWSER_BROWSER_THEME_PROVIDER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 // Frees generated images and clears the image cache. 305 // Frees generated images and clears the image cache.
306 void ClearCaches(); 306 void ClearCaches();
307 307
308 // Clears the platform-specific caches. Do not call directly; it's called 308 // Clears the platform-specific caches. Do not call directly; it's called
309 // from ClearCaches(). 309 // from ClearCaches().
310 void FreePlatformCaches(); 310 void FreePlatformCaches();
311 311
312 // Encode image at image_cache_[id] as PNG and write to disk. 312 // Encode image at image_cache_[id] as PNG and write to disk.
313 void WriteImagesToDisk(); 313 void WriteImagesToDisk();
314 314
315 // Do we have a custom frame image or custom tints?
316 bool ShouldTintFrames();
317
315 #if defined(OS_LINUX) && !defined(TOOLKIT_VIEWS) 318 #if defined(OS_LINUX) && !defined(TOOLKIT_VIEWS)
316 // Loads an image and flips it horizontally if |rtl_enabled| is true. 319 // Loads an image and flips it horizontally if |rtl_enabled| is true.
317 GdkPixbuf* GetPixbufImpl(int id, bool rtl_enabled); 320 GdkPixbuf* GetPixbufImpl(int id, bool rtl_enabled);
318 #endif 321 #endif
319 322
320 // Cached images. We cache all retrieved and generated bitmaps and keep 323 // Cached images. We cache all retrieved and generated bitmaps and keep
321 // track of the pointers. We own these and will delete them when we're done 324 // track of the pointers. We own these and will delete them when we're done
322 // using them. 325 // using them.
323 typedef std::map<int, SkBitmap*> ImageCache; 326 typedef std::map<int, SkBitmap*> ImageCache;
324 ImageCache image_cache_; 327 ImageCache image_cache_;
(...skipping 27 matching lines...) Expand all
352 // If true, process all images; if false, just load from disk. 355 // If true, process all images; if false, just load from disk.
353 bool process_images_; 356 bool process_images_;
354 357
355 // Where we will store our generated images. 358 // Where we will store our generated images.
356 FilePath image_dir_; 359 FilePath image_dir_;
357 360
358 DISALLOW_COPY_AND_ASSIGN(BrowserThemeProvider); 361 DISALLOW_COPY_AND_ASSIGN(BrowserThemeProvider);
359 }; 362 };
360 363
361 #endif // CHROME_BROWSER_BROWSER_THEME_PROVIDER_H_ 364 #endif // CHROME_BROWSER_BROWSER_THEME_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/browser_theme_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698