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

Unified Diff: content/public/common/web_preferences.cc

Issue 785723002: Add new extension APIs related to animation policy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Code Created 5 years, 11 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: content/public/common/web_preferences.cc
diff --git a/content/public/common/web_preferences.cc b/content/public/common/web_preferences.cc
index 5563c00caafee35e676f6491e6e01001e44c129e..d32cdf6703efec688569f89b534f484e445917c6 100644
--- a/content/public/common/web_preferences.cc
+++ b/content/public/common/web_preferences.cc
@@ -71,6 +71,15 @@ STATIC_ASSERT_MATCHING_ENUMS(
V8_SCRIPT_STREAMING_MODE_LAST,
WebSettings::V8ScriptStreamingModeAllPlusBlockParsingBlocking);
+#if defined(ENABLE_EXTENSIONS)
+STATIC_ASSERT_MATCHING_ENUMS(IMAGE_ANIMATION_POLICY_ALLOWED,
+ WebSettings::ImageAnimationPolicyAllowed);
+STATIC_ASSERT_MATCHING_ENUMS(IMAGE_ANIMATION_POLICY_ANIMATION_ONCE,
+ WebSettings::ImageAnimationPolicyAnimateOnce);
+STATIC_ASSERT_MATCHING_ENUMS(IMAGE_ANIMATION_POLICY_NO_ANIMATION,
+ WebSettings::ImageAnimationPolicyNoAnimation);
+#endif
+
STATIC_ASSERT_MATCHING_ENUMS(ui::POINTER_TYPE_NONE,
WebSettings::PointerTypeNone);
STATIC_ASSERT_MATCHING_ENUMS(ui::POINTER_TYPE_COARSE,
@@ -196,6 +205,9 @@ WebPreferences::WebPreferences()
slimming_paint_enabled(false),
cookie_enabled(true),
pepper_accelerated_video_decode_enabled(false),
+#if defined(ENABLE_EXTENSIONS)
+ animation_policy(IMAGE_ANIMATION_POLICY_ALLOWED),
+#endif
#if defined(OS_ANDROID)
text_autosizing_enabled(true),
font_scale_factor(1.0f),

Powered by Google App Engine
This is Rietveld 408576698