| 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> |
| (...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 827 observer.OnDisplayConfigurationChanged(); | 827 observer.OnDisplayConfigurationChanged(); |
| 828 UpdateMouseLocationAfterDisplayChange(); | 828 UpdateMouseLocationAfterDisplayChange(); |
| 829 | 829 |
| 830 #if defined(USE_X11) && defined(OS_CHROMEOS) | 830 #if defined(USE_X11) && defined(OS_CHROMEOS) |
| 831 if (must_clear_window) | 831 if (must_clear_window) |
| 832 ui::ClearX11DefaultRootWindow(); | 832 ui::ClearX11DefaultRootWindow(); |
| 833 #endif | 833 #endif |
| 834 } | 834 } |
| 835 | 835 |
| 836 #if defined(OS_CHROMEOS) | 836 #if defined(OS_CHROMEOS) |
| 837 ui::DisplayConfigurator* WindowTreeHostManager::display_configurator() { | 837 display::DisplayConfigurator* WindowTreeHostManager::display_configurator() { |
| 838 return Shell::GetInstance()->display_configurator(); | 838 return Shell::GetInstance()->display_configurator(); |
| 839 } | 839 } |
| 840 #endif | 840 #endif |
| 841 | 841 |
| 842 ui::EventDispatchDetails WindowTreeHostManager::DispatchKeyEventPostIME( | 842 ui::EventDispatchDetails WindowTreeHostManager::DispatchKeyEventPostIME( |
| 843 ui::KeyEvent* event) { | 843 ui::KeyEvent* event) { |
| 844 // Getting the active root window to dispatch the event. This isn't | 844 // Getting the active root window to dispatch the event. This isn't |
| 845 // significant as the event will be sent to the window resolved by | 845 // significant as the event will be sent to the window resolved by |
| 846 // aura::client::FocusClient which is FocusController in ash. | 846 // aura::client::FocusClient which is FocusController in ash. |
| 847 aura::Window* active_window = wm::GetActiveWindow(); | 847 aura::Window* active_window = wm::GetActiveWindow(); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 890 SetDisplayPropertiesOnHost(ash_host, display); | 890 SetDisplayPropertiesOnHost(ash_host, display); |
| 891 | 891 |
| 892 #if defined(OS_CHROMEOS) | 892 #if defined(OS_CHROMEOS) |
| 893 if (switches::ConstrainPointerToRoot()) | 893 if (switches::ConstrainPointerToRoot()) |
| 894 ash_host->ConfineCursorToRootWindow(); | 894 ash_host->ConfineCursorToRootWindow(); |
| 895 #endif | 895 #endif |
| 896 return ash_host; | 896 return ash_host; |
| 897 } | 897 } |
| 898 | 898 |
| 899 } // namespace ash | 899 } // namespace ash |
| OLD | NEW |