OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ui/compositor/test/layer_animator_collection_test_controller.h" |
| 6 |
| 7 #include "ui/compositor/layer_animator.h" |
| 8 |
| 9 namespace ui { |
| 10 |
| 11 LayerAnimatorCollectionTestController::LayerAnimatorCollectionTestController( |
| 12 LayerAnimatorCollection* collection) |
| 13 : collection_(collection) { |
| 14 CHECK(collection_); |
| 15 } |
| 16 |
| 17 LayerAnimatorCollectionTestController:: |
| 18 ~LayerAnimatorCollectionTestController() { |
| 19 } |
| 20 |
| 21 void LayerAnimatorCollectionTestController::StopAllAnimators() { |
| 22 std::set<scoped_refptr<LayerAnimator> > list = collection_->animators_; |
| 23 for (std::set<scoped_refptr<LayerAnimator> >::iterator iter = list.begin(); |
| 24 iter != list.end(); |
| 25 ++iter) { |
| 26 (*iter)->StopAnimating(); |
| 27 } |
| 28 } |
| 29 |
| 30 } // namespace ui |
OLD | NEW |