| 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 "ash/wm/window_animations.h" | 5 #include "ash/wm/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 18 matching lines...) Expand all Loading... |
| 29 #include "ui/compositor/compositor_observer.h" | 29 #include "ui/compositor/compositor_observer.h" |
| 30 #include "ui/compositor/layer.h" | 30 #include "ui/compositor/layer.h" |
| 31 #include "ui/compositor/layer_animation_observer.h" | 31 #include "ui/compositor/layer_animation_observer.h" |
| 32 #include "ui/compositor/layer_animation_sequence.h" | 32 #include "ui/compositor/layer_animation_sequence.h" |
| 33 #include "ui/compositor/layer_animator.h" | 33 #include "ui/compositor/layer_animator.h" |
| 34 #include "ui/compositor/layer_tree_owner.h" | 34 #include "ui/compositor/layer_tree_owner.h" |
| 35 #include "ui/compositor/scoped_layer_animation_settings.h" | 35 #include "ui/compositor/scoped_layer_animation_settings.h" |
| 36 #include "ui/gfx/interpolated_transform.h" | 36 #include "ui/gfx/interpolated_transform.h" |
| 37 #include "ui/gfx/screen.h" | 37 #include "ui/gfx/screen.h" |
| 38 #include "ui/gfx/vector3d_f.h" | 38 #include "ui/gfx/vector3d_f.h" |
| 39 #include "ui/views/corewm/window_util.h" | |
| 40 #include "ui/views/view.h" | 39 #include "ui/views/view.h" |
| 41 #include "ui/views/widget/widget.h" | 40 #include "ui/views/widget/widget.h" |
| 41 #include "ui/wm/core/window_util.h" |
| 42 | 42 |
| 43 namespace ash { | 43 namespace ash { |
| 44 namespace { | 44 namespace { |
| 45 const int kLayerAnimationsForMinimizeDurationMS = 200; | 45 const int kLayerAnimationsForMinimizeDurationMS = 200; |
| 46 | 46 |
| 47 // Durations for the cross-fade animation, in milliseconds. | 47 // Durations for the cross-fade animation, in milliseconds. |
| 48 const float kCrossFadeDurationMinMs = 200.f; | 48 const float kCrossFadeDurationMinMs = 200.f; |
| 49 const float kCrossFadeDurationMaxMs = 400.f; | 49 const float kCrossFadeDurationMaxMs = 400.f; |
| 50 | 50 |
| 51 // Durations for the brightness/grayscale fade animation, in milliseconds. | 51 // Durations for the brightness/grayscale fade animation, in milliseconds. |
| (...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 } | 498 } |
| 499 | 499 |
| 500 // Assume the shelf is overflowed, zoom off to the bottom right of the | 500 // Assume the shelf is overflowed, zoom off to the bottom right of the |
| 501 // work area. | 501 // work area. |
| 502 gfx::Rect work_area = | 502 gfx::Rect work_area = |
| 503 Shell::GetScreen()->GetDisplayNearestWindow(window).work_area(); | 503 Shell::GetScreen()->GetDisplayNearestWindow(window).work_area(); |
| 504 return gfx::Rect(work_area.right(), work_area.bottom(), 0, 0); | 504 return gfx::Rect(work_area.right(), work_area.bottom(), 0, 0); |
| 505 } | 505 } |
| 506 | 506 |
| 507 } // namespace ash | 507 } // namespace ash |
| OLD | NEW |