| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/display/unified_mouse_warp_controller.h" | 5 #include "ash/display/unified_mouse_warp_controller.h" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 | 8 |
| 9 #include "ash/display/display_manager.h" | |
| 10 #include "ash/display/display_util.h" | 9 #include "ash/display/display_util.h" |
| 11 #include "ash/display/mirror_window_controller.h" | 10 #include "ash/display/mirror_window_controller.h" |
| 12 #include "ash/display/window_tree_host_manager.h" | 11 #include "ash/display/window_tree_host_manager.h" |
| 13 #include "ash/host/ash_window_tree_host.h" | 12 #include "ash/host/ash_window_tree_host.h" |
| 14 #include "ash/shell.h" | 13 #include "ash/shell.h" |
| 15 #include "ui/aura/client/cursor_client.h" | 14 #include "ui/aura/client/cursor_client.h" |
| 16 #include "ui/aura/window.h" | 15 #include "ui/aura/window.h" |
| 17 #include "ui/aura/window_tree_host.h" | 16 #include "ui/aura/window_tree_host.h" |
| 18 #include "ui/base/layout.h" | 17 #include "ui/base/layout.h" |
| 19 #include "ui/display/manager/display_layout.h" | 18 #include "ui/display/manager/display_layout.h" |
| 19 #include "ui/display/manager/display_manager.h" |
| 20 #include "ui/display/manager/display_manager_utilities.h" | 20 #include "ui/display/manager/display_manager_utilities.h" |
| 21 #include "ui/display/screen.h" | 21 #include "ui/display/screen.h" |
| 22 #include "ui/events/event_utils.h" | 22 #include "ui/events/event_utils.h" |
| 23 #include "ui/wm/core/coordinate_conversion.h" | 23 #include "ui/wm/core/coordinate_conversion.h" |
| 24 | 24 |
| 25 namespace ash { | 25 namespace ash { |
| 26 | 26 |
| 27 namespace { | 27 namespace { |
| 28 | 28 |
| 29 AshWindowTreeHost* GetMirroringAshWindowTreeHostForDisplayId( | 29 AshWindowTreeHost* GetMirroringAshWindowTreeHostForDisplayId( |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 in_first_edge ? display_list[0].id() : display_list[1].id(); | 165 in_first_edge ? display_list[0].id() : display_list[1].id(); |
| 166 AshWindowTreeHost* target_ash_host = | 166 AshWindowTreeHost* target_ash_host = |
| 167 GetMirroringAshWindowTreeHostForDisplayId( | 167 GetMirroringAshWindowTreeHostForDisplayId( |
| 168 in_first_edge ? display_list[1].id() : display_list[0].id()); | 168 in_first_edge ? display_list[1].id() : display_list[0].id()); |
| 169 MoveCursorTo(target_ash_host, point_in_unified_host, | 169 MoveCursorTo(target_ash_host, point_in_unified_host, |
| 170 update_mouse_location_now); | 170 update_mouse_location_now); |
| 171 return true; | 171 return true; |
| 172 } | 172 } |
| 173 | 173 |
| 174 } // namespace ash | 174 } // namespace ash |
| OLD | NEW |