OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_BASE_RESOURCE_RESOURCE_BUNDLE_H_ | 5 #ifndef UI_BASE_RESOURCE_RESOURCE_BUNDLE_H_ |
6 #define UI_BASE_RESOURCE_RESOURCE_BUNDLE_H_ | 6 #define UI_BASE_RESOURCE_RESOURCE_BUNDLE_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/files/file.h" | 14 #include "base/files/file.h" |
15 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
16 #include "base/gtest_prod_util.h" | 16 #include "base/gtest_prod_util.h" |
17 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
18 #include "base/memory/scoped_vector.h" | 18 #include "base/memory/scoped_vector.h" |
19 #include "base/strings/string16.h" | 19 #include "base/strings/string16.h" |
20 #include "base/strings/string_piece.h" | 20 #include "base/strings/string_piece.h" |
21 #include "ui/base/layout.h" | 21 #include "ui/base/layout.h" |
22 #include "ui/base/ui_export.h" | 22 #include "ui/base/ui_base_export.h" |
23 #include "ui/gfx/font_list.h" | 23 #include "ui/gfx/font_list.h" |
24 #include "ui/gfx/image/image.h" | 24 #include "ui/gfx/image/image.h" |
25 #include "ui/gfx/native_widget_types.h" | 25 #include "ui/gfx/native_widget_types.h" |
26 | 26 |
27 class SkBitmap; | 27 class SkBitmap; |
28 | 28 |
29 namespace base { | 29 namespace base { |
30 class Lock; | 30 class Lock; |
31 class RefCountedStaticMemory; | 31 class RefCountedStaticMemory; |
32 } | 32 } |
33 | 33 |
34 namespace ui { | 34 namespace ui { |
35 | 35 |
36 class DataPack; | 36 class DataPack; |
37 class ResourceHandle; | 37 class ResourceHandle; |
38 | 38 |
39 // ResourceBundle is a central facility to load images and other resources, | 39 // ResourceBundle is a central facility to load images and other resources, |
40 // such as theme graphics. Every resource is loaded only once. | 40 // such as theme graphics. Every resource is loaded only once. |
41 class UI_EXPORT ResourceBundle { | 41 class UI_BASE_EXPORT ResourceBundle { |
42 public: | 42 public: |
43 // An enumeration of the various font styles used throughout Chrome. | 43 // An enumeration of the various font styles used throughout Chrome. |
44 // The following holds true for the font sizes: | 44 // The following holds true for the font sizes: |
45 // Small <= SmallBold <= Base <= Bold <= Medium <= MediumBold <= Large. | 45 // Small <= SmallBold <= Base <= Bold <= Medium <= MediumBold <= Large. |
46 enum FontStyle { | 46 enum FontStyle { |
47 // NOTE: depending upon the locale, using one of the *BoldFont below | 47 // NOTE: depending upon the locale, using one of the *BoldFont below |
48 // may *not* actually result in a bold font. | 48 // may *not* actually result in a bold font. |
49 SmallFont, | 49 SmallFont, |
50 SmallBoldFont, | 50 SmallBoldFont, |
51 BaseFont, | 51 BaseFont, |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 | 394 |
395 DISALLOW_COPY_AND_ASSIGN(ResourceBundle); | 395 DISALLOW_COPY_AND_ASSIGN(ResourceBundle); |
396 }; | 396 }; |
397 | 397 |
398 } // namespace ui | 398 } // namespace ui |
399 | 399 |
400 // TODO(beng): Someday, maybe, get rid of this. | 400 // TODO(beng): Someday, maybe, get rid of this. |
401 using ui::ResourceBundle; | 401 using ui::ResourceBundle; |
402 | 402 |
403 #endif // UI_BASE_RESOURCE_RESOURCE_BUNDLE_H_ | 403 #endif // UI_BASE_RESOURCE_RESOURCE_BUNDLE_H_ |
OLD | NEW |