Chromium Code Reviews| 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 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 44 class NSImage; | 44 class NSImage; |
| 45 #endif // __OBJC__ | 45 #endif // __OBJC__ |
| 46 #endif // defined(OS_MACOSX) | 46 #endif // defined(OS_MACOSX) |
| 47 | 47 |
| 48 #if defined(USE_X11) | 48 #if defined(USE_X11) |
| 49 typedef struct _GdkPixbuf GdkPixbuf; | 49 typedef struct _GdkPixbuf GdkPixbuf; |
| 50 #endif | 50 #endif |
| 51 | 51 |
| 52 namespace ui { | 52 namespace ui { |
| 53 | 53 |
| 54 extern const std::string kLocaleResourcePathSwitch; | |
|
jeremy
2011/05/19 16:08:46
Should be defined in chrome/common/chrome_switches
ofri
2011/05/23 08:42:50
Done.
| |
| 55 | |
| 54 class DataPack; | 56 class DataPack; |
| 55 | 57 |
| 56 // ResourceBundle is a central facility to load images and other resources, | 58 // ResourceBundle is a central facility to load images and other resources, |
| 57 // such as theme graphics. | 59 // such as theme graphics. |
| 58 // Every resource is loaded only once. | 60 // Every resource is loaded only once. |
| 59 class ResourceBundle { | 61 class ResourceBundle { |
| 60 public: | 62 public: |
| 61 // An enumeration of the various font styles used throughout Chrome. | 63 // An enumeration of the various font styles used throughout Chrome. |
| 62 // The following holds true for the font sizes: | 64 // The following holds true for the font sizes: |
| 63 // Small <= Base <= Bold <= Medium <= MediumBold <= Large. | 65 // Small <= Base <= Bold <= Medium <= MediumBold <= Large. |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 287 | 289 |
| 288 DISALLOW_COPY_AND_ASSIGN(ResourceBundle); | 290 DISALLOW_COPY_AND_ASSIGN(ResourceBundle); |
| 289 }; | 291 }; |
| 290 | 292 |
| 291 } // namespace ui | 293 } // namespace ui |
| 292 | 294 |
| 293 // TODO(beng): Someday, maybe, get rid of this. | 295 // TODO(beng): Someday, maybe, get rid of this. |
| 294 using ui::ResourceBundle; | 296 using ui::ResourceBundle; |
| 295 | 297 |
| 296 #endif // UI_BASE_RESOURCE_RESOURCE_BUNDLE_H_ | 298 #endif // UI_BASE_RESOURCE_RESOURCE_BUNDLE_H_ |
| OLD | NEW |