Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Side by Side Diff: chrome/common/resource_bundle.h

Issue 57025: Make the font family and the font size used in dom UI localizable. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/gfx/chrome_font_win.cc ('k') | chrome/common/resource_bundle.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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__
OLDNEW
« no previous file with comments | « chrome/common/gfx/chrome_font_win.cc ('k') | chrome/common/resource_bundle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698