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