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

Unified Diff: third_party/WebKit/Source/core/frame/WebFrameWidgetBase.h

Issue 2769823002: Add decode() functionality to image elements. (Closed)
Patch Set: rebase Created 3 years, 7 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: third_party/WebKit/Source/core/frame/WebFrameWidgetBase.h
diff --git a/third_party/WebKit/Source/core/frame/WebFrameWidgetBase.h b/third_party/WebKit/Source/core/frame/WebFrameWidgetBase.h
index 2abfa65042694f778055ea1b362aa1b09c549072..1607f2218eec5be733b2a2517b5d3ab2f7f7b407 100644
--- a/third_party/WebKit/Source/core/frame/WebFrameWidgetBase.h
+++ b/third_party/WebKit/Source/core/frame/WebFrameWidgetBase.h
@@ -86,6 +86,10 @@ class CORE_EXPORT WebFrameWidgetBase
void DidLosePointerLock() override;
void ShowContextMenu(WebMenuSourceType) override;
+ // Image decode functionality.
+ void RequestDecode(sk_sp<SkImage>,
+ std::unique_ptr<WTF::Function<void(bool)>> callback);
+
protected:
enum DragAction { kDragEnter, kDragOver };
« no previous file with comments | « third_party/WebKit/Source/core/exported/WebViewBase.h ('k') | third_party/WebKit/Source/core/frame/WebFrameWidgetBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698