| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 | 10 |
| 11 #if defined(OS_WIN) | 11 #if defined(OS_WIN) |
| 12 #include <windows.h> | 12 #include <windows.h> |
| 13 #endif | 13 #endif |
| 14 | 14 |
| 15 #include <map> | 15 #include <map> |
| 16 #include <string> | 16 #include <string> |
| 17 #include <vector> | 17 #include <vector> |
| 18 | 18 |
| 19 #include "base/basictypes.h" | 19 #include "base/basictypes.h" |
| 20 #include "base/file_path.h" | 20 #include "base/file_path.h" |
| 21 #include "base/gtest_prod_util.h" | 21 #include "base/gtest_prod_util.h" |
| 22 #include "base/memory/ref_counted_memory.h" | 22 #include "base/memory/ref_counted_memory.h" |
| 23 #include "base/memory/scoped_ptr.h" | 23 #include "base/memory/scoped_ptr.h" |
| 24 #include "base/string16.h" | 24 #include "base/string16.h" |
| 25 #include "ui/base/ui_export.h" |
| 25 #include "ui/gfx/native_widget_types.h" | 26 #include "ui/gfx/native_widget_types.h" |
| 26 #include "ui/ui_api.h" | |
| 27 | 27 |
| 28 class SkBitmap; | 28 class SkBitmap; |
| 29 typedef uint32 SkColor; | 29 typedef uint32 SkColor; |
| 30 | 30 |
| 31 namespace base { | 31 namespace base { |
| 32 class Lock; | 32 class Lock; |
| 33 class StringPiece; | 33 class StringPiece; |
| 34 } | 34 } |
| 35 | 35 |
| 36 namespace gfx { | 36 namespace gfx { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 50 typedef struct _GdkPixbuf GdkPixbuf; | 50 typedef struct _GdkPixbuf GdkPixbuf; |
| 51 #endif | 51 #endif |
| 52 | 52 |
| 53 namespace ui { | 53 namespace ui { |
| 54 | 54 |
| 55 class DataPack; | 55 class DataPack; |
| 56 | 56 |
| 57 // ResourceBundle is a central facility to load images and other resources, | 57 // ResourceBundle is a central facility to load images and other resources, |
| 58 // such as theme graphics. | 58 // such as theme graphics. |
| 59 // Every resource is loaded only once. | 59 // Every resource is loaded only once. |
| 60 class UI_API ResourceBundle { | 60 class UI_EXPORT ResourceBundle { |
| 61 public: | 61 public: |
| 62 // An enumeration of the various font styles used throughout Chrome. | 62 // An enumeration of the various font styles used throughout Chrome. |
| 63 // The following holds true for the font sizes: | 63 // The following holds true for the font sizes: |
| 64 // Small <= Base <= Bold <= Medium <= MediumBold <= Large. | 64 // Small <= Base <= Bold <= Medium <= MediumBold <= Large. |
| 65 enum FontStyle { | 65 enum FontStyle { |
| 66 SmallFont, | 66 SmallFont, |
| 67 BaseFont, | 67 BaseFont, |
| 68 BoldFont, | 68 BoldFont, |
| 69 MediumFont, | 69 MediumFont, |
| 70 // NOTE: depending upon the locale, this may *not* result in a bold font. | 70 // NOTE: depending upon the locale, this may *not* result in a bold font. |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 | 295 |
| 296 DISALLOW_COPY_AND_ASSIGN(ResourceBundle); | 296 DISALLOW_COPY_AND_ASSIGN(ResourceBundle); |
| 297 }; | 297 }; |
| 298 | 298 |
| 299 } // namespace ui | 299 } // namespace ui |
| 300 | 300 |
| 301 // TODO(beng): Someday, maybe, get rid of this. | 301 // TODO(beng): Someday, maybe, get rid of this. |
| 302 using ui::ResourceBundle; | 302 using ui::ResourceBundle; |
| 303 | 303 |
| 304 #endif // UI_BASE_RESOURCE_RESOURCE_BUNDLE_H_ | 304 #endif // UI_BASE_RESOURCE_RESOURCE_BUNDLE_H_ |
| OLD | NEW |