| OLD | NEW |
| 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 |
| OLD | NEW |