OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-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 APP_RESOURCE_BUNDLE_H_ | 5 #ifndef APP_RESOURCE_BUNDLE_H_ |
6 #define APP_RESOURCE_BUNDLE_H_ | 6 #define APP_RESOURCE_BUNDLE_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "base/string16.h" | 21 #include "base/string16.h" |
22 | 22 |
23 #if defined(OS_LINUX) || defined(OS_MACOSX) | 23 #if defined(OS_LINUX) || defined(OS_MACOSX) |
24 namespace base { | 24 namespace base { |
25 class DataPack; | 25 class DataPack; |
26 } | 26 } |
27 #endif | 27 #endif |
28 #if defined(OS_LINUX) | 28 #if defined(OS_LINUX) |
29 typedef struct _GdkPixbuf GdkPixbuf; | 29 typedef struct _GdkPixbuf GdkPixbuf; |
30 #endif | 30 #endif |
31 namespace gfx{ | 31 namespace gfx { |
32 class Font; | 32 class Font; |
33 } | 33 } |
34 class SkBitmap; | 34 class SkBitmap; |
35 typedef uint32 SkColor; | 35 typedef uint32 SkColor; |
36 class StringPiece; | 36 class StringPiece; |
37 | 37 |
38 // ResourceBundle is a central facility to load images and other resources, | 38 // ResourceBundle is a central facility to load images and other resources, |
39 // such as theme graphics. | 39 // such as theme graphics. |
40 // Every resource is loaded only once. | 40 // Every resource is loaded only once. |
41 class ResourceBundle { | 41 class ResourceBundle { |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 scoped_ptr<gfx::Font> medium_font_; | 208 scoped_ptr<gfx::Font> medium_font_; |
209 scoped_ptr<gfx::Font> medium_bold_font_; | 209 scoped_ptr<gfx::Font> medium_bold_font_; |
210 scoped_ptr<gfx::Font> large_font_; | 210 scoped_ptr<gfx::Font> large_font_; |
211 scoped_ptr<gfx::Font> web_font_; | 211 scoped_ptr<gfx::Font> web_font_; |
212 | 212 |
213 static ResourceBundle* g_shared_instance_; | 213 static ResourceBundle* g_shared_instance_; |
214 | 214 |
215 DISALLOW_EVIL_CONSTRUCTORS(ResourceBundle); | 215 DISALLOW_EVIL_CONSTRUCTORS(ResourceBundle); |
216 }; | 216 }; |
217 | 217 |
218 #endif // APP_RESOURCE_BUNDLE_H_ | 218 #endif // APP_RESOURCE_BUNDLE_H_ |
OLD | NEW |