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

Unified Diff: third_party/WebKit/Source/web/WebFrameWidgetBase.h

Issue 2769823002: Add decode() functionality to image elements. (Closed)
Patch Set: rebase + update 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/web/WebFrameWidgetBase.h
diff --git a/third_party/WebKit/Source/web/WebFrameWidgetBase.h b/third_party/WebKit/Source/web/WebFrameWidgetBase.h
index ef640ac314754e634c067de03da8f261a52f0703..cb50b75241d35c34cfeecf90b9be868bb92bef58 100644
--- a/third_party/WebKit/Source/web/WebFrameWidgetBase.h
+++ b/third_party/WebKit/Source/web/WebFrameWidgetBase.h
@@ -81,6 +81,10 @@ class WebFrameWidgetBase : public WebFrameWidget {
void DidNotAcquirePointerLock() override;
void DidLosePointerLock() override;
+ // Image decode functionality.
+ void RequestDecode(sk_sp<SkImage>,
+ std::unique_ptr<WTF::Function<void(bool)>> callback);
+
protected:
enum DragAction { kDragEnter, kDragOver };

Powered by Google App Engine
This is Rietveld 408576698