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

Unified Diff: Source/platform/graphics/ImageAnimationPolicy.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 Code Created 6 years 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
« no previous file with comments | « Source/platform/graphics/BitmapImageTest.cpp ('k') | Source/platform/graphics/ImageObserver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/ImageAnimationPolicy.h
diff --git a/Source/platform/graphics/ImageAnimationPolicy.h b/Source/platform/graphics/ImageAnimationPolicy.h
new file mode 100644
index 0000000000000000000000000000000000000000..1b7f20cd874b956d6491da10989535f19c7418c6
--- /dev/null
+++ b/Source/platform/graphics/ImageAnimationPolicy.h
@@ -0,0 +1,24 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ImageAnimationPolicy_h
+#define ImageAnimationPolicy_h
+
+namespace blink {
+
+// ImageAnimationPolicy is used for controlling image animation
+// when image frame is rendered for animation
+
+enum ImageAnimationPolicy {
+ // Animate the image (the default).
+ ImageAnimationPolicyAllowed,
+ // Animate image just once.
+ ImageAnimationPolicyAnimateOnce,
+ // Show the first frame and do not animate.
+ ImageAnimationPolicyNoAnimation
+};
+
+} // namespace blink
+
+#endif // ImageAnimationPolicy_h
« no previous file with comments | « Source/platform/graphics/BitmapImageTest.cpp ('k') | Source/platform/graphics/ImageObserver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698