| 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/shell.h" | 5 #include "ash/shell.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 #include "ui/wm/core/visibility_controller.h" | 121 #include "ui/wm/core/visibility_controller.h" |
| 122 #include "ui/wm/core/window_modality_controller.h" | 122 #include "ui/wm/core/window_modality_controller.h" |
| 123 | 123 |
| 124 #if defined(OS_CHROMEOS) | 124 #if defined(OS_CHROMEOS) |
| 125 #if defined(USE_X11) | 125 #if defined(USE_X11) |
| 126 #include "ui/gfx/x/x11_types.h" // nogncheck | 126 #include "ui/gfx/x/x11_types.h" // nogncheck |
| 127 #endif // defined(USE_X11) | 127 #endif // defined(USE_X11) |
| 128 #include "ash/accelerators/magnifier_key_scroller.h" | 128 #include "ash/accelerators/magnifier_key_scroller.h" |
| 129 #include "ash/accelerators/spoken_feedback_toggler.h" | 129 #include "ash/accelerators/spoken_feedback_toggler.h" |
| 130 #include "ash/common/ash_constants.h" | 130 #include "ash/common/ash_constants.h" |
| 131 #include "ash/common/system/chromeos/power/power_status.h" |
| 131 #include "ash/display/display_change_observer_chromeos.h" | 132 #include "ash/display/display_change_observer_chromeos.h" |
| 132 #include "ash/display/display_color_manager_chromeos.h" | 133 #include "ash/display/display_color_manager_chromeos.h" |
| 133 #include "ash/display/display_error_observer_chromeos.h" | 134 #include "ash/display/display_error_observer_chromeos.h" |
| 134 #include "ash/display/projecting_observer_chromeos.h" | 135 #include "ash/display/projecting_observer_chromeos.h" |
| 135 #include "ash/display/resolution_notification_controller.h" | 136 #include "ash/display/resolution_notification_controller.h" |
| 136 #include "ash/display/screen_orientation_controller_chromeos.h" | 137 #include "ash/display/screen_orientation_controller_chromeos.h" |
| 137 #include "ash/sticky_keys/sticky_keys_controller.h" | 138 #include "ash/sticky_keys/sticky_keys_controller.h" |
| 138 #include "ash/system/chromeos/bluetooth/bluetooth_notification_controller.h" | 139 #include "ash/system/chromeos/bluetooth/bluetooth_notification_controller.h" |
| 139 #include "ash/system/chromeos/brightness/brightness_controller_chromeos.h" | 140 #include "ash/system/chromeos/brightness/brightness_controller_chromeos.h" |
| 140 #include "ash/system/chromeos/power/power_event_observer.h" | 141 #include "ash/system/chromeos/power/power_event_observer.h" |
| 141 #include "ash/system/chromeos/power/power_status.h" | |
| 142 #include "ash/system/chromeos/power/video_activity_notifier.h" | 142 #include "ash/system/chromeos/power/video_activity_notifier.h" |
| 143 #include "ash/system/chromeos/session/last_window_closed_logout_reminder.h" | 143 #include "ash/system/chromeos/session/last_window_closed_logout_reminder.h" |
| 144 #include "ash/system/chromeos/session/logout_confirmation_controller.h" | 144 #include "ash/system/chromeos/session/logout_confirmation_controller.h" |
| 145 #include "ash/touch/touch_transformer_controller.h" | 145 #include "ash/touch/touch_transformer_controller.h" |
| 146 #include "ash/virtual_keyboard_controller.h" | 146 #include "ash/virtual_keyboard_controller.h" |
| 147 #include "base/bind_helpers.h" | 147 #include "base/bind_helpers.h" |
| 148 #include "base/sys_info.h" | 148 #include "base/sys_info.h" |
| 149 #include "chromeos/audio/audio_a11y_controller.h" | 149 #include "chromeos/audio/audio_a11y_controller.h" |
| 150 #include "chromeos/dbus/dbus_thread_manager.h" | 150 #include "chromeos/dbus/dbus_thread_manager.h" |
| 151 #include "ui/chromeos/user_activity_power_manager_notifier.h" | 151 #include "ui/chromeos/user_activity_power_manager_notifier.h" |
| (...skipping 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1243 | 1243 |
| 1244 void Shell::OnWindowActivated( | 1244 void Shell::OnWindowActivated( |
| 1245 aura::client::ActivationChangeObserver::ActivationReason reason, | 1245 aura::client::ActivationChangeObserver::ActivationReason reason, |
| 1246 aura::Window* gained_active, | 1246 aura::Window* gained_active, |
| 1247 aura::Window* lost_active) { | 1247 aura::Window* lost_active) { |
| 1248 if (gained_active) | 1248 if (gained_active) |
| 1249 target_root_window_ = gained_active->GetRootWindow(); | 1249 target_root_window_ = gained_active->GetRootWindow(); |
| 1250 } | 1250 } |
| 1251 | 1251 |
| 1252 } // namespace ash | 1252 } // namespace ash |
| OLD | NEW |