Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Side by Side Diff: ui/wm/core/window_animations_unittest.cc

Issue 2550933002: Make all LayerAnimationElement::Create*Element return unique_ptr (Closed)
Patch Set: Complete inclusion Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <memory>
8
7 #include "base/macros.h" 9 #include "base/macros.h"
8 #include "base/time/time.h" 10 #include "base/time/time.h"
9 #include "ui/aura/test/aura_test_base.h" 11 #include "ui/aura/test/aura_test_base.h"
10 #include "ui/aura/test/test_windows.h" 12 #include "ui/aura/test/test_windows.h"
11 #include "ui/aura/window.h" 13 #include "ui/aura/window.h"
12 #include "ui/compositor/layer.h" 14 #include "ui/compositor/layer.h"
13 #include "ui/compositor/layer_animator.h" 15 #include "ui/compositor/layer_animator.h"
14 #include "ui/compositor/scoped_animation_duration_scale_mode.h" 16 #include "ui/compositor/scoped_animation_duration_scale_mode.h"
15 #include "ui/gfx/animation/animation_container_element.h" 17 #include "ui/gfx/animation/animation_container_element.h"
16 #include "ui/gfx/geometry/vector2d.h" 18 #include "ui/gfx/geometry/vector2d.h"
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 wm::SetWindowVisibilityAnimationType(window.get(), 321 wm::SetWindowVisibilityAnimationType(window.get(),
320 WINDOW_VISIBILITY_ANIMATION_TYPE_ROTATE); 322 WINDOW_VISIBILITY_ANIMATION_TYPE_ROTATE);
321 AnimateOnChildWindowVisibilityChanged(window.get(), true); 323 AnimateOnChildWindowVisibilityChanged(window.get(), true);
322 window->layer()->GetAnimator()->Step(base::TimeTicks::Now() + 324 window->layer()->GetAnimator()->Step(base::TimeTicks::Now() +
323 base::TimeDelta::FromSeconds(5)); 325 base::TimeDelta::FromSeconds(5));
324 AnimateOnChildWindowVisibilityChanged(window.get(), false); 326 AnimateOnChildWindowVisibilityChanged(window.get(), false);
325 animating_layer->GetAnimator()->StopAnimating(); 327 animating_layer->GetAnimator()->StopAnimating();
326 } 328 }
327 329
328 } // namespace wm 330 } // namespace wm
OLDNEW
« ui/compositor/layer_animation_sequence.cc ('K') | « ui/wm/core/window_animations.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698