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

Unified Diff: ui/base/webui/web_ui_util.h

Issue 880313002: webui: add [lang] attribute to <html> element on all webui pages so (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cros Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/dir_header.html ('k') | ui/base/webui/web_ui_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/webui/web_ui_util.h
diff --git a/ui/base/webui/web_ui_util.h b/ui/base/webui/web_ui_util.h
index 2dbcfc72e008376f87470ebe63143a70677a7213..34596408ff2833f727d8b5a8e4e016fdfa52a0b1 100644
--- a/ui/base/webui/web_ui_util.h
+++ b/ui/base/webui/web_ui_util.h
@@ -45,13 +45,11 @@ UI_BASE_EXPORT void ParsePathAndScale(const GURL& url,
std::string* path,
float* scale_factor);
-// Helper function to set the font family, size, and text direction into the
-// given dictionary.
-// Note that using font family and size in JS templates is deprecated, because
-// it might lead to flicker. Instead, use AppendWebUICSSTextDefaults() below.
-// TODO(bauerb): Remove uses of font-family and font-size in JS templates, then
-// rename this method to SetTextDirection().
-UI_BASE_EXPORT void SetFontAndTextDirection(
+// Helper function to set some default values (e.g., font family, size,
+// language, and text direction) into the given dictionary. Requires an
+// application locale (i.e. g_browser_process->GetApplicationLocale()).
+UI_BASE_EXPORT void SetLoadTimeDataDefaults(
+ const std::string& app_locale,
base::DictionaryValue* localized_strings);
// Get a CSS declaration for common text styles for all of Web UI.
« no previous file with comments | « net/base/dir_header.html ('k') | ui/base/webui/web_ui_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698