OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/overview/scoped_window_copy.h" | 5 #include "ash/wm/overview/scoped_window_copy.h" |
6 | 6 |
7 #include "ash/screen_util.h" | 7 #include "ash/screen_util.h" |
8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
9 #include "ui/aura/client/aura_constants.h" | 9 #include "ui/aura/client/aura_constants.h" |
10 #include "ui/aura/client/screen_position_client.h" | 10 #include "ui/aura/client/screen_position_client.h" |
11 #include "ui/aura/window.h" | 11 #include "ui/aura/window.h" |
12 #include "ui/aura/window_event_dispatcher.h" | 12 #include "ui/aura/window_event_dispatcher.h" |
13 #include "ui/compositor/layer_animation_observer.h" | 13 #include "ui/compositor/layer_animation_observer.h" |
14 #include "ui/compositor/layer_tree_owner.h" | 14 #include "ui/compositor/layer_tree_owner.h" |
15 #include "ui/gfx/display.h" | 15 #include "ui/gfx/display.h" |
16 #include "ui/views/corewm/shadow_types.h" | |
17 #include "ui/views/corewm/window_util.h" | |
18 #include "ui/views/widget/widget.h" | 16 #include "ui/views/widget/widget.h" |
| 17 #include "ui/wm/core/shadow_types.h" |
| 18 #include "ui/wm/core/window_util.h" |
19 | 19 |
20 namespace ash { | 20 namespace ash { |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 // Creates a copy of |window| with |recreated_layer| in the |target_root|. | 24 // Creates a copy of |window| with |recreated_layer| in the |target_root|. |
25 views::Widget* CreateCopyOfWindow(aura::Window* target_root, | 25 views::Widget* CreateCopyOfWindow(aura::Window* target_root, |
26 aura::Window* src_window, | 26 aura::Window* src_window, |
27 ui::Layer* recreated_layer) { | 27 ui::Layer* recreated_layer) { |
28 // Save and remove the transform from the layer to later reapply to both the | 28 // Save and remove the transform from the layer to later reapply to both the |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 // The cleanup observer will delete itself and the window when any pending | 170 // The cleanup observer will delete itself and the window when any pending |
171 // animations have completed. | 171 // animations have completed. |
172 cleanup_observer_->TakeOwnershipOfWidget(); | 172 cleanup_observer_->TakeOwnershipOfWidget(); |
173 } | 173 } |
174 | 174 |
175 aura::Window* ScopedWindowCopy::GetWindow() { | 175 aura::Window* ScopedWindowCopy::GetWindow() { |
176 return widget_->GetNativeWindow(); | 176 return widget_->GetNativeWindow(); |
177 } | 177 } |
178 | 178 |
179 } // namespace ash | 179 } // namespace ash |
OLD | NEW |