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

Unified Diff: chrome/browser/ui/webui/web_ui_util.h

Issue 10532048: [cros] Initial WebRTC-enabled implementation of user image picker on OOBE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/web_ui_util.h
diff --git a/chrome/browser/ui/webui/web_ui_util.h b/chrome/browser/ui/webui/web_ui_util.h
index 5a5e6d23f9db3dad266f3e6ef082e870a4d14bb2..6f5e7bb4774bda6fdb65b4b0679d80556afc21db 100644
--- a/chrome/browser/ui/webui/web_ui_util.h
+++ b/chrome/browser/ui/webui/web_ui_util.h
@@ -29,6 +29,9 @@ std::string GetImageDataUrl(const gfx::ImageSkia& image);
// |resource_id|.
std::string GetImageDataUrlFromResource(int resource_id);
+// Convenience routine to convert data url to an ImageSkia object.
+gfx::ImageSkia GetImageFromDataUrl(const std::string& data_url);
+
// Extracts a disposition from click event arguments. |args| should contain
// an integer button and booleans alt key, ctrl key, meta key, and shift key
// (in that order), starting at |start_index|.

Powered by Google App Engine
This is Rietveld 408576698