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

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: Update with fix layout test fail 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
Index: public/web/WebSettings.h
diff --git a/public/web/WebSettings.h b/public/web/WebSettings.h
index 8f303d0e63241d222004a7528874c33fe7206b7f..2c7269d89cf2bf2956185e451798d89e6921628b 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 ImageAnimationPolicy {
+ ImageAnimationPolicyAllowed,
+ ImageAnimationPolicyAnimateOnce,
+ ImageAnimationPolicyNoAnimation
+ };
+
enum EditingBehavior {
EditingBehaviorMac,
EditingBehaviorWin,
@@ -159,6 +165,7 @@ public:
virtual void setFullscreenSupported(bool) = 0;
virtual void setHyperlinkAuditingEnabled(bool) = 0;
virtual void setIgnoreMainFrameOverflowHiddenQuirk(bool) = 0;
+ virtual void setImageAnimationPolicy(ImageAnimationPolicy) = 0;
virtual void setImagesEnabled(bool) = 0;
virtual void setInlineTextBoxAccessibilityEnabled(bool) = 0;
virtual void setJavaEnabled(bool) = 0;
« Source/platform/graphics/ImageAnimationPolicy.h ('K') | « Source/web/WebSettingsImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698