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/wm/core/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/test/aura_test_base.h" | 8 #include "ui/aura/test/aura_test_base.h" |
9 #include "ui/aura/test/test_windows.h" | 9 #include "ui/aura/test/test_windows.h" |
10 #include "ui/aura/window.h" | 10 #include "ui/aura/window.h" |
11 #include "ui/compositor/layer.h" | 11 #include "ui/compositor/layer.h" |
12 #include "ui/compositor/layer_animator.h" | 12 #include "ui/compositor/layer_animator.h" |
13 #include "ui/compositor/scoped_animation_duration_scale_mode.h" | 13 #include "ui/compositor/scoped_animation_duration_scale_mode.h" |
14 #include "ui/gfx/animation/animation_container_element.h" | 14 #include "ui/gfx/animation/animation_container_element.h" |
15 #include "ui/gfx/vector2d.h" | 15 #include "ui/gfx/geometry/vector2d.h" |
16 #include "ui/wm/core/transient_window_manager.h" | 16 #include "ui/wm/core/transient_window_manager.h" |
17 #include "ui/wm/core/transient_window_stacking_client.h" | 17 #include "ui/wm/core/transient_window_stacking_client.h" |
18 #include "ui/wm/core/window_util.h" | 18 #include "ui/wm/core/window_util.h" |
19 #include "ui/wm/public/animation_host.h" | 19 #include "ui/wm/public/animation_host.h" |
20 | 20 |
21 using aura::Window; | 21 using aura::Window; |
22 using ui::Layer; | 22 using ui::Layer; |
23 | 23 |
24 namespace wm { | 24 namespace wm { |
25 namespace { | 25 namespace { |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 wm::SetWindowVisibilityAnimationType(window.get(), | 299 wm::SetWindowVisibilityAnimationType(window.get(), |
300 WINDOW_VISIBILITY_ANIMATION_TYPE_ROTATE); | 300 WINDOW_VISIBILITY_ANIMATION_TYPE_ROTATE); |
301 | 301 |
302 AnimateOnChildWindowVisibilityChanged(window.get(), true); | 302 AnimateOnChildWindowVisibilityChanged(window.get(), true); |
303 AnimateOnChildWindowVisibilityChanged(window.get(), false); | 303 AnimateOnChildWindowVisibilityChanged(window.get(), false); |
304 | 304 |
305 animating_layer->GetAnimator()->StopAnimating(); | 305 animating_layer->GetAnimator()->StopAnimating(); |
306 } | 306 } |
307 | 307 |
308 } // namespace wm | 308 } // namespace wm |
OLD | NEW |