| 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/views/corewm/window_animations.h" | 5 #include "ui/wm/core/window_animations.h" |
| 6 | 6 |
| 7 #include "base/time/time.h" | 7 #include "base/time/time.h" |
| 8 #include "ui/aura/client/animation_host.h" | 8 #include "ui/aura/client/animation_host.h" |
| 9 #include "ui/aura/test/aura_test_base.h" | 9 #include "ui/aura/test/aura_test_base.h" |
| 10 #include "ui/aura/test/test_windows.h" | 10 #include "ui/aura/test/test_windows.h" |
| 11 #include "ui/aura/window.h" | 11 #include "ui/aura/window.h" |
| 12 #include "ui/compositor/layer.h" | 12 #include "ui/compositor/layer.h" |
| 13 #include "ui/compositor/layer_animator.h" | 13 #include "ui/compositor/layer_animator.h" |
| 14 #include "ui/compositor/scoped_animation_duration_scale_mode.h" | 14 #include "ui/compositor/scoped_animation_duration_scale_mode.h" |
| 15 #include "ui/gfx/animation/animation_container_element.h" | 15 #include "ui/gfx/animation/animation_container_element.h" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 AnimateOnChildWindowVisibilityChanged(window.get(), true); | 134 AnimateOnChildWindowVisibilityChanged(window.get(), true); |
| 135 EXPECT_TRUE(window->layer()->visible()); | 135 EXPECT_TRUE(window->layer()->visible()); |
| 136 | 136 |
| 137 EXPECT_FALSE(animation_host.hide_completed()); | 137 EXPECT_FALSE(animation_host.hide_completed()); |
| 138 AnimateOnChildWindowVisibilityChanged(window.get(), false); | 138 AnimateOnChildWindowVisibilityChanged(window.get(), false); |
| 139 EXPECT_TRUE(animation_host.hide_completed()); | 139 EXPECT_TRUE(animation_host.hide_completed()); |
| 140 } | 140 } |
| 141 | 141 |
| 142 } // namespace corewm | 142 } // namespace corewm |
| 143 } // namespace views | 143 } // namespace views |
| OLD | NEW |