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

Unified Diff: third_party/WebKit/Source/core/page/ChromeClient.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/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 c709d97f990df18f92e0e31e357ce37658367804..b80dda485373d022f2f63802b79cec5ad47d9cdb 100644
--- a/third_party/WebKit/Source/core/page/ChromeClient.h
+++ b/third_party/WebKit/Source/core/page/ChromeClient.h
@@ -358,6 +358,13 @@ class CORE_EXPORT ChromeClient : public PlatformChromeClient {
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
This is Rietveld 408576698