| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_PACK_H_ | 5 #ifndef CHROME_BROWSER_BROWSER_THEME_PACK_H_ |
| 6 #define CHROME_BROWSER_BROWSER_THEME_PACK_H_ | 6 #define CHROME_BROWSER_BROWSER_THEME_PACK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/scoped_ptr.h" | 13 #include "base/scoped_ptr.h" |
| 14 #include "base/ref_counted.h" | 14 #include "base/ref_counted.h" |
| 15 #include "gfx/color_utils.h" | 15 #include "gfx/color_utils.h" |
| 16 #include "chrome/common/extensions/extension.h" | 16 #include "chrome/common/extensions/extension.h" |
| 17 | 17 |
| 18 class BrowserThemeProviderTest; | |
| 19 namespace base { | 18 namespace base { |
| 20 class DataPack; | 19 class DataPack; |
| 21 } | 20 } |
| 22 class DictionaryValue; | 21 class DictionaryValue; |
| 23 class FilePath; | 22 class FilePath; |
| 24 class RefCountedMemory; | 23 class RefCountedMemory; |
| 25 | 24 |
| 26 // An optimized representation of a theme, backed by a mmapped DataPack. | 25 // An optimized representation of a theme, backed by a mmapped DataPack. |
| 27 // | 26 // |
| 28 // The idea is to pre-process all images (tinting, compositing, etc) at theme | 27 // The idea is to pre-process all images (tinting, compositing, etc) at theme |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 // in |image_memory_| that are in |prepared_images_| or vice versa. | 217 // in |image_memory_| that are in |prepared_images_| or vice versa. |
| 219 ImageCache prepared_images_; | 218 ImageCache prepared_images_; |
| 220 | 219 |
| 221 // Loaded images. These are loaded from |image_memory_| or the |data_pack_|. | 220 // Loaded images. These are loaded from |image_memory_| or the |data_pack_|. |
| 222 mutable ImageCache loaded_images_; | 221 mutable ImageCache loaded_images_; |
| 223 | 222 |
| 224 DISALLOW_COPY_AND_ASSIGN(BrowserThemePack); | 223 DISALLOW_COPY_AND_ASSIGN(BrowserThemePack); |
| 225 }; | 224 }; |
| 226 | 225 |
| 227 #endif // CHROME_BROWSER_BROWSER_THEME_PACK_H_ | 226 #endif // CHROME_BROWSER_BROWSER_THEME_PACK_H_ |
| OLD | NEW |