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

Side by Side Diff: Source/platform/graphics/ImageAnimationPolicy.h

Issue 1120963003: Implements getImageAnimationPolicy() at ImageLoader. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ImageAnimationPolicy_h 5 #ifndef ImageAnimationPolicy_h
6 #define ImageAnimationPolicy_h 6 #define ImageAnimationPolicy_h
7 7
8 namespace blink { 8 namespace blink {
9 9
10 // ImageAnimationPolicy is used for controlling image animation 10 // ImageAnimationPolicy is used for controlling image animation
11 // when image frame is rendered for animation 11 // when image frame is rendered for animation
12 12
13 enum ImageAnimationPolicy { 13 enum ImageAnimationPolicy {
14 // Animate the image (the default). 14 // Animate the image (the default).
15 ImageAnimationPolicyAllowed, 15 ImageAnimationPolicyAllowed,
16 // Animate image just once. 16 // Animate image just once.
17 ImageAnimationPolicyAnimateOnce, 17 ImageAnimationPolicyAnimateOnce,
18 // Show the first frame and do not animate. 18 // Show the first frame and do not animate.
19 ImageAnimationPolicyNoAnimation 19 ImageAnimationPolicyNoAnimation,
20 // Need to update policy
21 ImageAnimationPolicyInvalid
20 }; 22 };
21 23
22 } // namespace blink 24 } // namespace blink
23 25
24 #endif // ImageAnimationPolicy_h 26 #endif // ImageAnimationPolicy_h
OLDNEW
« Source/core/fetch/ImageResource.cpp ('K') | « Source/core/fetch/ImageResource.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698