OLD | NEW |
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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/strings/string_piece.h" | 10 #include "base/strings/string_piece.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 // factor then the default scale factor is returned. | 43 // factor then the default scale factor is returned. |
44 UI_BASE_EXPORT void ParsePathAndScale(const GURL& url, | 44 UI_BASE_EXPORT void ParsePathAndScale(const GURL& url, |
45 std::string* path, | 45 std::string* path, |
46 float* scale_factor); | 46 float* scale_factor); |
47 | 47 |
48 // Helper function to set the font family, size, and text direction into the | 48 // Helper function to set the font family, size, and text direction into the |
49 // given dictionary. | 49 // given dictionary. |
50 UI_BASE_EXPORT void SetFontAndTextDirection( | 50 UI_BASE_EXPORT void SetFontAndTextDirection( |
51 base::DictionaryValue* localized_strings); | 51 base::DictionaryValue* localized_strings); |
52 | 52 |
| 53 // Get some common font styles for all of WebUI. |
| 54 UI_BASE_EXPORT std::string GetFontFamily(); |
| 55 UI_BASE_EXPORT std::string GetFontSize(); |
| 56 UI_BASE_EXPORT std::string GetTextDirection(); |
| 57 |
53 } // namespace webui | 58 } // namespace webui |
54 | 59 |
55 #endif // UI_BASE_WEBUI_WEB_UI_UTIL_H_ | 60 #endif // UI_BASE_WEBUI_WEB_UI_UTIL_H_ |
OLD | NEW |