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 #include "ui/gfx/compositor/layer_animation_sequence.h" | 5 #include "ui/compositor/layer_animation_sequence.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <iterator> | 8 #include <iterator> |
9 | 9 |
10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
11 #include "ui/gfx/compositor/layer_animation_delegate.h" | 11 #include "ui/compositor/layer_animation_delegate.h" |
12 #include "ui/gfx/compositor/layer_animation_element.h" | 12 #include "ui/compositor/layer_animation_element.h" |
13 #include "ui/gfx/compositor/layer_animation_observer.h" | 13 #include "ui/compositor/layer_animation_observer.h" |
14 | 14 |
15 namespace ui { | 15 namespace ui { |
16 | 16 |
17 LayerAnimationSequence::LayerAnimationSequence() | 17 LayerAnimationSequence::LayerAnimationSequence() |
18 : is_cyclic_(false), | 18 : is_cyclic_(false), |
19 last_element_(0) { | 19 last_element_(0) { |
20 } | 20 } |
21 | 21 |
22 LayerAnimationSequence::LayerAnimationSequence(LayerAnimationElement* element) | 22 LayerAnimationSequence::LayerAnimationSequence(LayerAnimationElement* element) |
23 : is_cyclic_(false), | 23 : is_cyclic_(false), |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 OnLayerAnimationEnded(this)); | 159 OnLayerAnimationEnded(this)); |
160 } | 160 } |
161 | 161 |
162 void LayerAnimationSequence::NotifyAborted() { | 162 void LayerAnimationSequence::NotifyAborted() { |
163 FOR_EACH_OBSERVER(LayerAnimationObserver, | 163 FOR_EACH_OBSERVER(LayerAnimationObserver, |
164 observers_, | 164 observers_, |
165 OnLayerAnimationAborted(this)); | 165 OnLayerAnimationAborted(this)); |
166 } | 166 } |
167 | 167 |
168 } // namespace ui | 168 } // namespace ui |
OLD | NEW |