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

Side by Side Diff: ui/base/l10n/l10n_util_win.h

Issue 117983002: Prefix string16 with base:: in ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 years 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 | « ui/base/l10n/l10n_util_unittest.cc ('k') | ui/base/l10n/l10n_util_win.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) 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_L10N_L10N_UTIL_WIN_H_ 5 #ifndef UI_BASE_L10N_L10N_UTIL_WIN_H_
6 #define UI_BASE_L10N_L10N_UTIL_WIN_H_ 6 #define UI_BASE_L10N_L10N_UTIL_WIN_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 22 matching lines...) Expand all
33 33
34 // See http://blogs.msdn.com/oldnewthing/archive/2005/09/15/467598.aspx 34 // See http://blogs.msdn.com/oldnewthing/archive/2005/09/15/467598.aspx
35 // and http://blogs.msdn.com/oldnewthing/archive/2006/06/26/647365.aspx 35 // and http://blogs.msdn.com/oldnewthing/archive/2006/06/26/647365.aspx
36 // as to why we need these three functions. 36 // as to why we need these three functions.
37 37
38 // Return true if the default font (we get from Windows) is not suitable 38 // Return true if the default font (we get from Windows) is not suitable
39 // to use in the UI of the current UI (e.g. Malayalam, Bengali). If 39 // to use in the UI of the current UI (e.g. Malayalam, Bengali). If
40 // override_font_family and font_size_scaler are not null, they'll be 40 // override_font_family and font_size_scaler are not null, they'll be
41 // filled with the font family name and the size scaler. The output 41 // filled with the font family name and the size scaler. The output
42 // parameters are not modified if the return value is false. 42 // parameters are not modified if the return value is false.
43 UI_EXPORT bool NeedOverrideDefaultUIFont(string16* override_font_family, 43 UI_EXPORT bool NeedOverrideDefaultUIFont(base::string16* override_font_family,
44 double* font_size_scaler); 44 double* font_size_scaler);
45 45
46 // If the default UI font stored in |logfont| is not suitable, its family 46 // If the default UI font stored in |logfont| is not suitable, its family
47 // and size are replaced with those stored in the per-locale resource. The 47 // and size are replaced with those stored in the per-locale resource. The
48 // font size is adjusted based on the font scale setting in the OS preferences. 48 // font size is adjusted based on the font scale setting in the OS preferences.
49 // Windows 8 supports scale factors of 1, 1.4 and 1.8. 49 // Windows 8 supports scale factors of 1, 1.4 and 1.8.
50 UI_EXPORT void AdjustUIFont(LOGFONT* logfont); 50 UI_EXPORT void AdjustUIFont(LOGFONT* logfont);
51 51
52 // If the default UI font stored in |logfont| is not suitable, its family 52 // If the default UI font stored in |logfont| is not suitable, its family
53 // and size are replaced with those stored in the per-locale resource. The 53 // and size are replaced with those stored in the per-locale resource. The
(...skipping 13 matching lines...) Expand all
67 // Application startup. 67 // Application startup.
68 UI_EXPORT void OverrideLocaleWithUILanguageList(); 68 UI_EXPORT void OverrideLocaleWithUILanguageList();
69 69
70 // Retrieve the locale override, or an empty vector if the locale has not been 70 // Retrieve the locale override, or an empty vector if the locale has not been
71 // or failed to be overridden. 71 // or failed to be overridden.
72 const std::vector<std::string>& GetLocaleOverrides(); 72 const std::vector<std::string>& GetLocaleOverrides();
73 73
74 } // namespace l10n_util 74 } // namespace l10n_util
75 75
76 #endif // UI_BASE_L10N_L10N_UTIL_WIN_H_ 76 #endif // UI_BASE_L10N_L10N_UTIL_WIN_H_
OLDNEW
« no previous file with comments | « ui/base/l10n/l10n_util_unittest.cc ('k') | ui/base/l10n/l10n_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698