| 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 CHROME_COMMON_RESOURCE_BUNDLE_H__ | 5 #ifndef CHROME_COMMON_RESOURCE_BUNDLE_H__ |
| 6 #define CHROME_COMMON_RESOURCE_BUNDLE_H__ | 6 #define CHROME_COMMON_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 30 matching lines...) Expand all Loading... |
| 41 // An enumeration of the various font styles used throughout Chrome. | 41 // An enumeration of the various font styles used throughout Chrome. |
| 42 // The following holds true for the font sizes: | 42 // The following holds true for the font sizes: |
| 43 // Small <= Base <= Medium <= MediumBold <= Large. | 43 // Small <= Base <= Medium <= MediumBold <= Large. |
| 44 enum FontStyle { | 44 enum FontStyle { |
| 45 SmallFont, | 45 SmallFont, |
| 46 BaseFont, | 46 BaseFont, |
| 47 MediumFont, | 47 MediumFont, |
| 48 // NOTE: depending upon the locale, this may *not* result in a bold font. | 48 // NOTE: depending upon the locale, this may *not* result in a bold font. |
| 49 MediumBoldFont, | 49 MediumBoldFont, |
| 50 LargeFont, | 50 LargeFont, |
| 51 WebFont | |
| 52 }; | 51 }; |
| 53 | 52 |
| 54 // Initialize the ResourceBundle for this process. | 53 // Initialize the ResourceBundle for this process. |
| 55 // NOTE: Mac ignores this and always loads up resources for the language | 54 // NOTE: Mac ignores this and always loads up resources for the language |
| 56 // defined by the Cocoa UI (ie-NSBundle does the langange work). | 55 // defined by the Cocoa UI (ie-NSBundle does the langange work). |
| 57 static void InitSharedInstance(const std::wstring& pref_locale); | 56 static void InitSharedInstance(const std::wstring& pref_locale); |
| 58 | 57 |
| 59 // Delete the ResourceBundle for this process if it exists. | 58 // Delete the ResourceBundle for this process if it exists. |
| 60 static void CleanupSharedInstance(); | 59 static void CleanupSharedInstance(); |
| 61 | 60 |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 scoped_ptr<ChromeFont> web_font_; | 186 scoped_ptr<ChromeFont> web_font_; |
| 188 | 187 |
| 189 static ResourceBundle* g_shared_instance_; | 188 static ResourceBundle* g_shared_instance_; |
| 190 | 189 |
| 191 scoped_ptr<Extension> theme_extension_; | 190 scoped_ptr<Extension> theme_extension_; |
| 192 | 191 |
| 193 DISALLOW_EVIL_CONSTRUCTORS(ResourceBundle); | 192 DISALLOW_EVIL_CONSTRUCTORS(ResourceBundle); |
| 194 }; | 193 }; |
| 195 | 194 |
| 196 #endif // CHROME_COMMON_RESOURCE_BUNDLE_H__ | 195 #endif // CHROME_COMMON_RESOURCE_BUNDLE_H__ |
| OLD | NEW |