OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_COMPOSITOR_LAYER_ANIMATION_ELEMENT_H_ | 5 #ifndef UI_COMPOSITOR_LAYER_ANIMATION_ELEMENT_H_ |
6 #define UI_COMPOSITOR_LAYER_ANIMATION_ELEMENT_H_ | 6 #define UI_COMPOSITOR_LAYER_ANIMATION_ELEMENT_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
12 #include "cc/animation/animation.h" | 12 #include "cc/animation/animation.h" |
13 #include "cc/animation/animation_events.h" | 13 #include "cc/animation/animation_events.h" |
14 #include "third_party/skia/include/core/SkColor.h" | 14 #include "third_party/skia/include/core/SkColor.h" |
15 #include "ui/compositor/compositor_export.h" | 15 #include "ui/compositor/compositor_export.h" |
16 #include "ui/gfx/animation/tween.h" | 16 #include "ui/gfx/animation/tween.h" |
17 #include "ui/gfx/rect.h" | 17 #include "ui/gfx/geometry/rect.h" |
18 #include "ui/gfx/transform.h" | 18 #include "ui/gfx/transform.h" |
19 | 19 |
20 namespace ui { | 20 namespace ui { |
21 | 21 |
22 class InterpolatedTransform; | 22 class InterpolatedTransform; |
23 class LayerAnimationDelegate; | 23 class LayerAnimationDelegate; |
24 | 24 |
25 // LayerAnimationElements represent one segment of an animation between two | 25 // LayerAnimationElements represent one segment of an animation between two |
26 // keyframes. They know how to update a LayerAnimationDelegate given a value | 26 // keyframes. They know how to update a LayerAnimationDelegate given a value |
27 // between 0 and 1 (0 for initial, and 1 for final). | 27 // between 0 and 1 (0 for initial, and 1 for final). |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 double last_progressed_fraction_; | 238 double last_progressed_fraction_; |
239 | 239 |
240 base::WeakPtrFactory<LayerAnimationElement> weak_ptr_factory_; | 240 base::WeakPtrFactory<LayerAnimationElement> weak_ptr_factory_; |
241 | 241 |
242 DISALLOW_ASSIGN(LayerAnimationElement); | 242 DISALLOW_ASSIGN(LayerAnimationElement); |
243 }; | 243 }; |
244 | 244 |
245 } // namespace ui | 245 } // namespace ui |
246 | 246 |
247 #endif // UI_COMPOSITOR_LAYER_ANIMATION_ELEMENT_H_ | 247 #endif // UI_COMPOSITOR_LAYER_ANIMATION_ELEMENT_H_ |
OLD | NEW |