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/compositor/layer_animator.h" | 5 #include "ui/compositor/layer_animator.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
11 #include "base/time.h" | 11 #include "base/time.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "ui/compositor/layer_animation_delegate.h" | 13 #include "ui/compositor/layer_animation_delegate.h" |
14 #include "ui/compositor/layer_animation_element.h" | 14 #include "ui/compositor/layer_animation_element.h" |
15 #include "ui/compositor/layer_animation_sequence.h" | 15 #include "ui/compositor/layer_animation_sequence.h" |
16 #include "ui/compositor/scoped_animation_duration_scale_mode.h" | 16 #include "ui/compositor/scoped_animation_duration_scale_mode.h" |
17 #include "ui/compositor/scoped_layer_animation_settings.h" | 17 #include "ui/compositor/scoped_layer_animation_settings.h" |
18 #include "ui/compositor/test/layer_animator_test_controller.h" | 18 #include "ui/compositor/test/layer_animator_test_controller.h" |
19 #include "ui/compositor/test/test_layer_animation_delegate.h" | 19 #include "ui/compositor/test/test_layer_animation_delegate.h" |
20 #include "ui/compositor/test/test_layer_animation_observer.h" | 20 #include "ui/compositor/test/test_layer_animation_observer.h" |
(...skipping 2297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2318 | 2318 |
2319 settings.SetPreemptionStrategy( | 2319 settings.SetPreemptionStrategy( |
2320 LayerAnimator::ENQUEUE_NEW_ANIMATION); | 2320 LayerAnimator::ENQUEUE_NEW_ANIMATION); |
2321 settings.SetTransitionDuration(base::TimeDelta()); | 2321 settings.SetTransitionDuration(base::TimeDelta()); |
2322 animator->SetOpacity(magic_opacity); | 2322 animator->SetOpacity(magic_opacity); |
2323 | 2323 |
2324 EXPECT_EQ(start_opacity, delegate.GetOpacityForAnimation()); | 2324 EXPECT_EQ(start_opacity, delegate.GetOpacityForAnimation()); |
2325 } | 2325 } |
2326 | 2326 |
2327 } // namespace ui | 2327 } // namespace ui |
OLD | NEW |