OLD | NEW |
1 // Copyright (c) 2010 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_THEMES_BROWSER_THEME_PACK_H_ | 5 #ifndef CHROME_BROWSER_THEMES_BROWSER_THEME_PACK_H_ |
6 #define CHROME_BROWSER_THEMES_BROWSER_THEME_PACK_H_ | 6 #define CHROME_BROWSER_THEMES_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" | |
16 #include "chrome/browser/browser_thread.h" | 15 #include "chrome/browser/browser_thread.h" |
17 #include "chrome/common/extensions/extension.h" | 16 #include "chrome/common/extensions/extension.h" |
| 17 #include "ui/gfx/color_utils.h" |
18 | 18 |
19 class DictionaryValue; | 19 class DictionaryValue; |
20 class FilePath; | 20 class FilePath; |
21 class RefCountedMemory; | 21 class RefCountedMemory; |
22 namespace ui { | 22 namespace ui { |
23 class DataPack; | 23 class DataPack; |
24 } | 24 } |
25 | 25 |
26 // An optimized representation of a theme, backed by a mmapped DataPack. | 26 // An optimized representation of a theme, backed by a mmapped DataPack. |
27 // | 27 // |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 // in |image_memory_| that are in |prepared_images_| or vice versa. | 225 // in |image_memory_| that are in |prepared_images_| or vice versa. |
226 ImageCache prepared_images_; | 226 ImageCache prepared_images_; |
227 | 227 |
228 // Loaded images. These are loaded from |image_memory_| or the |data_pack_|. | 228 // Loaded images. These are loaded from |image_memory_| or the |data_pack_|. |
229 mutable ImageCache loaded_images_; | 229 mutable ImageCache loaded_images_; |
230 | 230 |
231 DISALLOW_COPY_AND_ASSIGN(BrowserThemePack); | 231 DISALLOW_COPY_AND_ASSIGN(BrowserThemePack); |
232 }; | 232 }; |
233 | 233 |
234 #endif // CHROME_BROWSER_THEMES_BROWSER_THEME_PACK_H_ | 234 #endif // CHROME_BROWSER_THEMES_BROWSER_THEME_PACK_H_ |
OLD | NEW |