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 #include <algorithm> | 8 #include <algorithm> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "ash/common/shelf/wm_shelf.h" | 12 #include "ash/common/shelf/wm_shelf.h" |
13 #include "ash/common/wm/window_animation_types.h" | 13 #include "ash/common/wm/window_animation_types.h" |
14 #include "ash/common/wm/workspace_controller.h" | 14 #include "ash/common/wm/workspace_controller.h" |
15 #include "ash/common/wm_window.h" | 15 #include "ash/common/wm_window.h" |
16 #include "ash/screen_util.h" | 16 #include "ash/screen_util.h" |
17 #include "ash/wm/window_util.h" | 17 #include "ash/wm/window_util.h" |
18 #include "base/i18n/rtl.h" | 18 #include "base/i18n/rtl.h" |
19 #include "base/logging.h" | 19 #include "base/logging.h" |
20 #include "base/memory/ptr_util.h" | 20 #include "base/memory/ptr_util.h" |
21 #include "base/stl_util.h" | 21 #include "base/stl_util.h" |
22 #include "base/time/time.h" | 22 #include "base/time/time.h" |
23 #include "ui/aura/client/aura_constants.h" | 23 #include "ui/aura/client/aura_constants.h" |
24 #include "ui/aura/window.h" | 24 #include "ui/aura/window.h" |
25 #include "ui/aura/window_observer.h" | 25 #include "ui/aura/window_observer.h" |
26 #include "ui/aura/window_property.h" | 26 #include "ui/base/class_property.h" |
27 #include "ui/compositor/compositor_observer.h" | 27 #include "ui/compositor/compositor_observer.h" |
28 #include "ui/compositor/layer.h" | 28 #include "ui/compositor/layer.h" |
29 #include "ui/compositor/layer_animation_observer.h" | 29 #include "ui/compositor/layer_animation_observer.h" |
30 #include "ui/compositor/layer_animation_sequence.h" | 30 #include "ui/compositor/layer_animation_sequence.h" |
31 #include "ui/compositor/layer_animator.h" | 31 #include "ui/compositor/layer_animator.h" |
32 #include "ui/compositor/layer_tree_owner.h" | 32 #include "ui/compositor/layer_tree_owner.h" |
33 #include "ui/compositor/scoped_layer_animation_settings.h" | 33 #include "ui/compositor/scoped_layer_animation_settings.h" |
34 #include "ui/display/display.h" | 34 #include "ui/display/display.h" |
35 #include "ui/display/screen.h" | 35 #include "ui/display/screen.h" |
36 #include "ui/gfx/interpolated_transform.h" | 36 #include "ui/gfx/interpolated_transform.h" |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 case SHELF_ALIGNMENT_LEFT: | 452 case SHELF_ALIGNMENT_LEFT: |
453 return gfx::Rect(work_area.x(), work_area.y(), 0, 0); | 453 return gfx::Rect(work_area.x(), work_area.y(), 0, 0); |
454 case SHELF_ALIGNMENT_RIGHT: | 454 case SHELF_ALIGNMENT_RIGHT: |
455 return gfx::Rect(work_area.right(), work_area.y(), 0, 0); | 455 return gfx::Rect(work_area.right(), work_area.y(), 0, 0); |
456 } | 456 } |
457 NOTREACHED(); | 457 NOTREACHED(); |
458 return gfx::Rect(); | 458 return gfx::Rect(); |
459 } | 459 } |
460 | 460 |
461 } // namespace ash | 461 } // namespace ash |
OLD | NEW |