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> |
11 | 11 |
12 #include "ash/launcher/launcher.h" | 12 #include "ash/launcher/launcher.h" |
13 #include "ash/screen_ash.h" | 13 #include "ash/screen_ash.h" |
14 #include "ash/shell.h" | 14 #include "ash/shell.h" |
15 #include "ash/wm/window_util.h" | 15 #include "ash/wm/window_util.h" |
| 16 #include "ash/wm/workspace/workspace_animations.h" |
16 #include "ash/wm/workspace_controller.h" | 17 #include "ash/wm/workspace_controller.h" |
17 #include "ash/wm/workspace/workspace_animations.h" | |
18 #include "base/command_line.h" | 18 #include "base/command_line.h" |
19 #include "base/compiler_specific.h" | 19 #include "base/compiler_specific.h" |
20 #include "base/logging.h" | 20 #include "base/logging.h" |
21 #include "base/message_loop.h" | 21 #include "base/message_loop.h" |
22 #include "base/stl_util.h" | 22 #include "base/stl_util.h" |
23 #include "base/time.h" | 23 #include "base/time/time.h" |
24 #include "ui/aura/client/aura_constants.h" | 24 #include "ui/aura/client/aura_constants.h" |
25 #include "ui/aura/window.h" | 25 #include "ui/aura/window.h" |
26 #include "ui/aura/window_observer.h" | 26 #include "ui/aura/window_observer.h" |
27 #include "ui/aura/window_property.h" | 27 #include "ui/aura/window_property.h" |
28 #include "ui/compositor/compositor_observer.h" | 28 #include "ui/compositor/compositor_observer.h" |
29 #include "ui/compositor/layer.h" | 29 #include "ui/compositor/layer.h" |
30 #include "ui/compositor/layer_animation_observer.h" | 30 #include "ui/compositor/layer_animation_observer.h" |
31 #include "ui/compositor/layer_animation_sequence.h" | 31 #include "ui/compositor/layer_animation_sequence.h" |
32 #include "ui/compositor/layer_animator.h" | 32 #include "ui/compositor/layer_animator.h" |
33 #include "ui/compositor/scoped_layer_animation_settings.h" | 33 #include "ui/compositor/scoped_layer_animation_settings.h" |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 type == LAYER_SCALE_ANIMATION_ABOVE ? kLayerScaleAboveSize : | 507 type == LAYER_SCALE_ANIMATION_ABOVE ? kLayerScaleAboveSize : |
508 kLayerScaleBelowSize; | 508 kLayerScaleBelowSize; |
509 gfx::Transform transform; | 509 gfx::Transform transform; |
510 transform.Translate(-layer->bounds().width() * (scale - 1.0f) / 2, | 510 transform.Translate(-layer->bounds().width() * (scale - 1.0f) / 2, |
511 -layer->bounds().height() * (scale - 1.0f) / 2); | 511 -layer->bounds().height() * (scale - 1.0f) / 2); |
512 transform.Scale(scale, scale); | 512 transform.Scale(scale, scale); |
513 layer->SetTransform(transform); | 513 layer->SetTransform(transform); |
514 } | 514 } |
515 | 515 |
516 } // namespace ash | 516 } // namespace ash |
OLD | NEW |