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

Side by Side Diff: ui/base/webui/web_ui_util.h

Issue 1516233003: Incognito NTP style tweaks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reinstate Roboto and add text_defaults_md.css Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_WEBUI_WEB_UI_UTIL_H_ 5 #ifndef UI_BASE_WEBUI_WEB_UI_UTIL_H_
6 #define UI_BASE_WEBUI_WEB_UI_UTIL_H_ 6 #define UI_BASE_WEBUI_WEB_UI_UTIL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 std::string* path, 43 std::string* path,
44 float* scale_factor); 44 float* scale_factor);
45 45
46 // Helper function to set some default values (e.g., font family, size, 46 // Helper function to set some default values (e.g., font family, size,
47 // language, and text direction) into the given dictionary. Requires an 47 // language, and text direction) into the given dictionary. Requires an
48 // application locale (i.e. g_browser_process->GetApplicationLocale()). 48 // application locale (i.e. g_browser_process->GetApplicationLocale()).
49 UI_BASE_EXPORT void SetLoadTimeDataDefaults( 49 UI_BASE_EXPORT void SetLoadTimeDataDefaults(
50 const std::string& app_locale, 50 const std::string& app_locale,
51 base::DictionaryValue* localized_strings); 51 base::DictionaryValue* localized_strings);
52 52
53 // Get a CSS declaration for common text styles using provided template.
54 UI_BASE_EXPORT std::string GetWebUiCssTextDefaults(std::string css_template);
55
53 // Get a CSS declaration for common text styles for all of Web UI. 56 // Get a CSS declaration for common text styles for all of Web UI.
54 UI_BASE_EXPORT std::string GetWebUiCssTextDefaults(); 57 UI_BASE_EXPORT std::string GetWebUiCssTextDefaults();
55 58
59 // Get a CSS declaration for common text styles for Web UI using
60 // Material Design.
61 UI_BASE_EXPORT std::string GetWebUiCssTextDefaultsMD();
Dan Beam 2016/01/12 23:05:52 MD or Md? ugh
Evan Stade 2016/01/13 04:14:53 style guide clearly states Md
edwardjung 2016/01/13 21:24:07 Done.
62
56 // Appends the CSS declaration returned by GetWebUiCssTextDefaults() as an 63 // Appends the CSS declaration returned by GetWebUiCssTextDefaults() as an
57 // inline stylesheet. 64 // inline stylesheet.
58 UI_BASE_EXPORT void AppendWebUiCssTextDefaults(std::string* html); 65 UI_BASE_EXPORT void AppendWebUiCssTextDefaults(std::string* html);
59 66
60 // Get some common font styles for all of WebUI. 67 // Get some common font styles for all of WebUI.
61 UI_BASE_EXPORT std::string GetFontFamily(); 68 UI_BASE_EXPORT std::string GetFontFamily();
62 UI_BASE_EXPORT std::string GetFontSize(); 69 UI_BASE_EXPORT std::string GetFontSize();
63 UI_BASE_EXPORT std::string GetTextDirection(); 70 UI_BASE_EXPORT std::string GetTextDirection();
64 71
65 } // namespace webui 72 } // namespace webui
66 73
67 #endif // UI_BASE_WEBUI_WEB_UI_UTIL_H_ 74 #endif // UI_BASE_WEBUI_WEB_UI_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698