OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_WEBUI_WEB_UI_UTIL_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_WEB_UI_UTIL_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_WEB_UI_UTIL_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_WEB_UI_UTIL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/string_piece.h" | 10 #include "base/string_piece.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 // SCALE_FACTOR_NONE, and false is returned. | 41 // SCALE_FACTOR_NONE, and false is returned. |
42 bool ParseScaleFactor(const base::StringPiece& identifier, | 42 bool ParseScaleFactor(const base::StringPiece& identifier, |
43 ui::ScaleFactor* scale_factor); | 43 ui::ScaleFactor* scale_factor); |
44 | 44 |
45 // Parses a URL containing some path @{scale}x. If it does not contain a scale | 45 // Parses a URL containing some path @{scale}x. If it does not contain a scale |
46 // factor then the default scale factor is returned. | 46 // factor then the default scale factor is returned. |
47 void ParsePathAndScale(const GURL& url, | 47 void ParsePathAndScale(const GURL& url, |
48 std::string* path, | 48 std::string* path, |
49 ui::ScaleFactor* scale_factor); | 49 ui::ScaleFactor* scale_factor); |
50 | 50 |
| 51 // Helper function to set the font family, size, and text direction into the |
| 52 // given dictionary. |
| 53 void SetFontAndTextDirection(base::DictionaryValue* localized_strings); |
| 54 |
51 } // namespace web_ui_util | 55 } // namespace web_ui_util |
52 | 56 |
53 #endif // CHROME_BROWSER_UI_WEBUI_WEB_UI_UTIL_H_ | 57 #endif // CHROME_BROWSER_UI_WEBUI_WEB_UI_UTIL_H_ |
OLD | NEW |