| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_WEBUI_WEB_UI_UTIL_H_ | 5 #ifndef CONTENT_BROWSER_WEBUI_WEB_UI_UTIL_H_ |
| 6 #define CHROME_BROWSER_WEBUI_WEB_UI_UTIL_H_ | 6 #define CONTENT_BROWSER_WEBUI_WEB_UI_UTIL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 class ListValue; | 11 class ListValue; |
| 12 class SkBitmap; | 12 class SkBitmap; |
| 13 | 13 |
| 14 namespace web_ui_util { | 14 namespace web_ui_util { |
| 15 | 15 |
| 16 // Convenience routine to get the response string from an argument | 16 // Convenience routine to get the response string from an argument |
| (...skipping 22 matching lines...) Expand all Loading... |
| 39 // Convenience routine to get data url that corresponds to given | 39 // Convenience routine to get data url that corresponds to given |
| 40 // resource_id as an image. This function does not check if the | 40 // resource_id as an image. This function does not check if the |
| 41 // resource for the |resource_id| is an image, therefore it is the | 41 // resource for the |resource_id| is an image, therefore it is the |
| 42 // caller's responsibility to make sure the resource is indeed an | 42 // caller's responsibility to make sure the resource is indeed an |
| 43 // image. Returns empty string if a resource does not exist for given | 43 // image. Returns empty string if a resource does not exist for given |
| 44 // |resource_id|. | 44 // |resource_id|. |
| 45 std::string GetImageDataUrlFromResource(int resource_id); | 45 std::string GetImageDataUrlFromResource(int resource_id); |
| 46 | 46 |
| 47 } // namespace web_ui_util | 47 } // namespace web_ui_util |
| 48 | 48 |
| 49 #endif // CHROME_BROWSER_WEBUI_WEB_UI_UTIL_H_ | 49 #endif // CONTENT_BROWSER_WEBUI_WEB_UI_UTIL_H_ |
| OLD | NEW |