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 UI_WEBUI_WEB_UI_UTIL_H_ | 5 #ifndef UI_WEBUI_WEB_UI_UTIL_H_ |
6 #define UI_WEBUI_WEB_UI_UTIL_H_ | 6 #define 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/strings/string_piece.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "ui/base/layout.h" | 12 #include "ui/base/layout.h" |
| 13 #include "ui/base/ui_export.h" |
13 #include "ui/base/window_open_disposition.h" | 14 #include "ui/base/window_open_disposition.h" |
14 #include "ui/base/ui_export.h" | |
15 | 15 |
16 class GURL; | 16 class GURL; |
17 class SkBitmap; | 17 class SkBitmap; |
18 | 18 |
19 namespace webui { | 19 namespace webui { |
20 | 20 |
21 // Convenience routine to convert SkBitmap object to data url | 21 // Convenience routine to convert SkBitmap object to data url |
22 // so that it can be used in WebUI. | 22 // so that it can be used in WebUI. |
23 UI_EXPORT std::string GetBitmapDataUrl(const SkBitmap& bitmap); | 23 UI_EXPORT std::string GetBitmapDataUrl(const SkBitmap& bitmap); |
24 | 24 |
(...skipping 25 matching lines...) Expand all Loading... |
50 ui::ScaleFactor* scale_factor); | 50 ui::ScaleFactor* scale_factor); |
51 | 51 |
52 // Helper function to set the font family, size, and text direction into the | 52 // Helper function to set the font family, size, and text direction into the |
53 // given dictionary. | 53 // given dictionary. |
54 UI_EXPORT void SetFontAndTextDirection( | 54 UI_EXPORT void SetFontAndTextDirection( |
55 base::DictionaryValue* localized_strings); | 55 base::DictionaryValue* localized_strings); |
56 | 56 |
57 } // namespace webui | 57 } // namespace webui |
58 | 58 |
59 #endif // UI_WEBUI_WEB_UI_UTIL_H_ | 59 #endif // UI_WEBUI_WEB_UI_UTIL_H_ |
OLD | NEW |