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

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

Issue 1915363002: Rename gfx::Display/Screen to display::Display/Screen in views/wm (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more cleanups Created 4 years, 7 months 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
« no previous file with comments | « ui/wm/core/native_cursor_manager.h ('k') | ui/wm/wm.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <math.h> 7 #include <math.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <vector> 10 #include <vector>
(...skipping 16 matching lines...) Expand all
27 #include "ui/compositor/layer_animation_sequence.h" 27 #include "ui/compositor/layer_animation_sequence.h"
28 #include "ui/compositor/layer_animator.h" 28 #include "ui/compositor/layer_animator.h"
29 #include "ui/compositor/layer_tree_owner.h" 29 #include "ui/compositor/layer_tree_owner.h"
30 #include "ui/compositor/scoped_animation_duration_scale_mode.h" 30 #include "ui/compositor/scoped_animation_duration_scale_mode.h"
31 #include "ui/compositor/scoped_layer_animation_settings.h" 31 #include "ui/compositor/scoped_layer_animation_settings.h"
32 #include "ui/gfx/animation/animation.h" 32 #include "ui/gfx/animation/animation.h"
33 #include "ui/gfx/geometry/rect_conversions.h" 33 #include "ui/gfx/geometry/rect_conversions.h"
34 #include "ui/gfx/geometry/vector2d.h" 34 #include "ui/gfx/geometry/vector2d.h"
35 #include "ui/gfx/geometry/vector3d_f.h" 35 #include "ui/gfx/geometry/vector3d_f.h"
36 #include "ui/gfx/interpolated_transform.h" 36 #include "ui/gfx/interpolated_transform.h"
37 #include "ui/gfx/screen.h"
38 #include "ui/wm/core/window_util.h" 37 #include "ui/wm/core/window_util.h"
39 #include "ui/wm/core/wm_core_switches.h" 38 #include "ui/wm/core/wm_core_switches.h"
40 #include "ui/wm/public/animation_host.h" 39 #include "ui/wm/public/animation_host.h"
41 40
42 DECLARE_WINDOW_PROPERTY_TYPE(wm::WindowVisibilityAnimationType) 41 DECLARE_WINDOW_PROPERTY_TYPE(wm::WindowVisibilityAnimationType)
43 DECLARE_WINDOW_PROPERTY_TYPE(wm::WindowVisibilityAnimationTransition) 42 DECLARE_WINDOW_PROPERTY_TYPE(wm::WindowVisibilityAnimationTransition)
44 DECLARE_WINDOW_PROPERTY_TYPE(float) 43 DECLARE_WINDOW_PROPERTY_TYPE(float)
45 44
46 namespace wm { 45 namespace wm {
47 namespace { 46 namespace {
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 // being accessed via Remote Desktop. 655 // being accessed via Remote Desktop.
657 if (ui::ScopedAnimationDurationScaleMode::duration_scale_mode() == 656 if (ui::ScopedAnimationDurationScaleMode::duration_scale_mode() ==
658 ui::ScopedAnimationDurationScaleMode::NON_ZERO_DURATION) 657 ui::ScopedAnimationDurationScaleMode::NON_ZERO_DURATION)
659 return false; 658 return false;
660 659
661 // Let the user decide whether or not to play the animation. 660 // Let the user decide whether or not to play the animation.
662 return !gfx::Animation::ShouldRenderRichAnimation(); 661 return !gfx::Animation::ShouldRenderRichAnimation();
663 } 662 }
664 663
665 } // namespace wm 664 } // namespace wm
OLDNEW
« no previous file with comments | « ui/wm/core/native_cursor_manager.h ('k') | ui/wm/wm.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698