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

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: 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
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 84e06f3170be5d3e336a932458efc5d5447f4f25..a139f7868e52d58eb3a9ed1cc4e593f364bca3d5 100644
--- a/ui/base/webui/web_ui_util.h
+++ b/ui/base/webui/web_ui_util.h
@@ -45,9 +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.
-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 some common font styles for all of WebUI.

Powered by Google App Engine
This is Rietveld 408576698