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

Unified Diff: public/web/WebSettings.h

Issue 754813002: Expose setting API to set ImageAnimationPolicy(Allowed, Once, None) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Support three options for animations Created 6 years, 1 month 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
« Source/web/WebSettingsImpl.h ('K') | « Source/web/WebSettingsImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebSettings.h
diff --git a/public/web/WebSettings.h b/public/web/WebSettings.h
index 8f303d0e63241d222004a7528874c33fe7206b7f..d62f2f81f3663c2e176bfb5184282197f82a09e3 100644
--- a/public/web/WebSettings.h
+++ b/public/web/WebSettings.h
@@ -45,6 +45,12 @@ class WebURL;
// these functions have a 1:1 mapping with the methods in WebCore/page/Settings.h.
class WebSettings {
public:
+ enum AnimatedImageType {
+ AnimatedImageTypeNone,
+ AnimatedImageTypeOnce,
+ AnimatedImageTypeNormal
+ };
+
enum EditingBehavior {
EditingBehaviorMac,
EditingBehaviorWin,
@@ -160,6 +166,7 @@ public:
virtual void setHyperlinkAuditingEnabled(bool) = 0;
virtual void setIgnoreMainFrameOverflowHiddenQuirk(bool) = 0;
virtual void setImagesEnabled(bool) = 0;
+ virtual void setAnimatedImageType(AnimatedImageType) = 0;
virtual void setInlineTextBoxAccessibilityEnabled(bool) = 0;
virtual void setJavaEnabled(bool) = 0;
virtual void setJavaScriptCanAccessClipboard(bool) = 0;
« Source/web/WebSettingsImpl.h ('K') | « Source/web/WebSettingsImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698