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

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

Issue 747923004: webui: minimize webui flicker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 85f5fd900439d9fdbb9c3831a30a6639787a4f85..b8b983b6ee43bbe94b56ba2249a4d4208ef0f880 100644
--- a/ui/base/webui/web_ui_util.h
+++ b/ui/base/webui/web_ui_util.h
@@ -50,6 +50,11 @@ UI_BASE_EXPORT void ParsePathAndScale(const GURL& url,
UI_BASE_EXPORT void SetFontAndTextDirection(
base::DictionaryValue* localized_strings);
+// Replaces IDS_WEB_FONT_FAMILY and IDS_WEB_FONT_SIZE with their effective
+// equivalents for the current locale and platform.
+UI_BASE_EXPORT std::string ReplaceFontFamilyAndSize(
+ const std::string& html_page);
+
} // namespace webui
#endif // UI_BASE_WEBUI_WEB_UI_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698