Chromium Code Reviews

Unified Diff: third_party/WebKit/Source/core/page/ChromeClient.h

Issue 2769823002: Add decode() functionality to image elements. (Closed)
Patch Set: update Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: third_party/WebKit/Source/core/page/ChromeClient.h
diff --git a/third_party/WebKit/Source/core/page/ChromeClient.h b/third_party/WebKit/Source/core/page/ChromeClient.h
index e2cb1bbf74e30006fe4fb54046b396afced56647..7f51363955cd1ef630f79e1fbf83cbb89c36418a 100644
--- a/third_party/WebKit/Source/core/page/ChromeClient.h
+++ b/third_party/WebKit/Source/core/page/ChromeClient.h
@@ -350,6 +350,13 @@ class CORE_EXPORT ChromeClient : public HostWindow {
virtual WebLayerTreeView* GetWebLayerTreeView(LocalFrame*) { return nullptr; }
+ virtual void RequestDecode(
+ LocalFrame*,
+ sk_sp<SkImage> image,
+ std::unique_ptr<WTF::Function<void(bool)>> callback) {
+ (*callback)(false);
+ }
+
DECLARE_TRACE();
protected:

Powered by Google App Engine