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

Unified Diff: public/web/WebViewClient.h

Issue 518043003: Add saveImageFromDataURL() and use it in saveImageAt(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add test Created 6 years, 3 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: public/web/WebViewClient.h
diff --git a/public/web/WebViewClient.h b/public/web/WebViewClient.h
index 172919c8e0f044375d0bb9f6fbff8fcf409926e4..5fae7b47d6cde9b11660b10373ecc978ac5a3aa1 100644
--- a/public/web/WebViewClient.h
+++ b/public/web/WebViewClient.h
@@ -121,6 +121,10 @@ public:
// will never be called.
virtual bool enumerateChosenDirectory(const WebString& path, WebFileChooserCompletion*) { return false; }
+ // This method is called in response to WebView's saveImageAt(x, y).
+ // A data url from <canvas> or <img> is passed to the method's argument.
+ virtual void saveImageFromDataURL(const WebString&) { }
jochen (gone - plz use gerrit) 2014/09/16 15:53:32 why not pass a WebURL ?
+
// Editing -------------------------------------------------------------
« Source/web/WebViewImpl.cpp ('K') | « Source/web/tests/data/image-with-data-url.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698