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/display/window_tree_host_manager.h" | 5 #include "ash/display/window_tree_host_manager.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 #include <map> | 9 #include <map> |
10 #include <memory> | 10 #include <memory> |
11 #include <utility> | 11 #include <utility> |
12 | 12 |
13 #include "ash/common/ash_switches.h" | 13 #include "ash/ash_switches.h" |
14 #include "ash/display/cursor_window_controller.h" | 14 #include "ash/display/cursor_window_controller.h" |
15 #include "ash/display/mirror_window_controller.h" | 15 #include "ash/display/mirror_window_controller.h" |
16 #include "ash/display/root_window_transformers.h" | 16 #include "ash/display/root_window_transformers.h" |
17 #include "ash/host/ash_window_tree_host.h" | 17 #include "ash/host/ash_window_tree_host.h" |
18 #include "ash/host/ash_window_tree_host_init_params.h" | 18 #include "ash/host/ash_window_tree_host_init_params.h" |
19 #include "ash/host/root_window_transformer.h" | 19 #include "ash/host/root_window_transformer.h" |
20 #include "ash/ime/input_method_event_handler.h" | 20 #include "ash/ime/input_method_event_handler.h" |
21 #include "ash/magnifier/magnification_controller.h" | 21 #include "ash/magnifier/magnification_controller.h" |
22 #include "ash/magnifier/partial_magnification_controller.h" | 22 #include "ash/magnifier/partial_magnification_controller.h" |
23 #include "ash/root_window_controller.h" | 23 #include "ash/root_window_controller.h" |
(...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
870 | 870 |
871 window_tree_hosts_[display.id()] = ash_host; | 871 window_tree_hosts_[display.id()] = ash_host; |
872 SetDisplayPropertiesOnHost(ash_host, display); | 872 SetDisplayPropertiesOnHost(ash_host, display); |
873 | 873 |
874 if (switches::ConstrainPointerToRoot()) | 874 if (switches::ConstrainPointerToRoot()) |
875 ash_host->ConfineCursorToRootWindow(); | 875 ash_host->ConfineCursorToRootWindow(); |
876 return ash_host; | 876 return ash_host; |
877 } | 877 } |
878 | 878 |
879 } // namespace ash | 879 } // namespace ash |
OLD | NEW |