| 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 | 9 |
| 10 #include "ash/accelerators/focus_manager_factory.h" | 10 #include "ash/accelerators/focus_manager_factory.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 #include "ash/wm/base_layout_manager.h" | 47 #include "ash/wm/base_layout_manager.h" |
| 48 #include "ash/wm/capture_controller.h" | 48 #include "ash/wm/capture_controller.h" |
| 49 #include "ash/wm/coordinate_conversion.h" | 49 #include "ash/wm/coordinate_conversion.h" |
| 50 #include "ash/wm/custom_frame_view_ash.h" | 50 #include "ash/wm/custom_frame_view_ash.h" |
| 51 #include "ash/wm/event_client_impl.h" | 51 #include "ash/wm/event_client_impl.h" |
| 52 #include "ash/wm/event_rewriter_event_filter.h" | 52 #include "ash/wm/event_rewriter_event_filter.h" |
| 53 #include "ash/wm/lock_state_controller.h" | 53 #include "ash/wm/lock_state_controller.h" |
| 54 #include "ash/wm/lock_state_controller_impl2.h" | 54 #include "ash/wm/lock_state_controller_impl2.h" |
| 55 #include "ash/wm/mru_window_tracker.h" | 55 #include "ash/wm/mru_window_tracker.h" |
| 56 #include "ash/wm/overlay_event_filter.h" | 56 #include "ash/wm/overlay_event_filter.h" |
| 57 #include "ash/wm/overview/window_selector_controller.h" |
| 57 #include "ash/wm/power_button_controller.h" | 58 #include "ash/wm/power_button_controller.h" |
| 58 #include "ash/wm/property_util.h" | 59 #include "ash/wm/property_util.h" |
| 59 #include "ash/wm/resize_shadow_controller.h" | 60 #include "ash/wm/resize_shadow_controller.h" |
| 60 #include "ash/wm/root_window_layout_manager.h" | 61 #include "ash/wm/root_window_layout_manager.h" |
| 61 #include "ash/wm/screen_dimmer.h" | 62 #include "ash/wm/screen_dimmer.h" |
| 62 #include "ash/wm/session_state_controller_impl.h" | 63 #include "ash/wm/session_state_controller_impl.h" |
| 63 #include "ash/wm/system_gesture_event_filter.h" | 64 #include "ash/wm/system_gesture_event_filter.h" |
| 64 #include "ash/wm/system_modal_container_event_filter.h" | 65 #include "ash/wm/system_modal_container_event_filter.h" |
| 65 #include "ash/wm/system_modal_container_layout_manager.h" | 66 #include "ash/wm/system_modal_container_layout_manager.h" |
| 66 #include "ash/wm/user_activity_detector.h" | 67 #include "ash/wm/user_activity_detector.h" |
| 67 #include "ash/wm/video_detector.h" | 68 #include "ash/wm/video_detector.h" |
| 68 #include "ash/wm/window_animations.h" | 69 #include "ash/wm/window_animations.h" |
| 69 #include "ash/wm/window_cycle_controller.h" | 70 #include "ash/wm/window_cycle_controller.h" |
| 70 #include "ash/wm/window_properties.h" | 71 #include "ash/wm/window_properties.h" |
| 71 #include "ash/wm/window_selector_controller.h" | |
| 72 #include "ash/wm/window_util.h" | 72 #include "ash/wm/window_util.h" |
| 73 #include "ash/wm/workspace_controller.h" | 73 #include "ash/wm/workspace_controller.h" |
| 74 #include "base/bind.h" | 74 #include "base/bind.h" |
| 75 #include "base/command_line.h" | 75 #include "base/command_line.h" |
| 76 #include "base/debug/leak_annotations.h" | 76 #include "base/debug/leak_annotations.h" |
| 77 #include "ui/aura/client/aura_constants.h" | 77 #include "ui/aura/client/aura_constants.h" |
| 78 #include "ui/aura/client/user_action_client.h" | 78 #include "ui/aura/client/user_action_client.h" |
| 79 #include "ui/aura/env.h" | 79 #include "ui/aura/env.h" |
| 80 #include "ui/aura/focus_manager.h" | 80 #include "ui/aura/focus_manager.h" |
| 81 #include "ui/aura/layout_manager.h" | 81 #include "ui/aura/layout_manager.h" |
| (...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 986 //////////////////////////////////////////////////////////////////////////////// | 986 //////////////////////////////////////////////////////////////////////////////// |
| 987 // Shell, aura::client::ActivationChangeObserver implementation: | 987 // Shell, aura::client::ActivationChangeObserver implementation: |
| 988 | 988 |
| 989 void Shell::OnWindowActivated(aura::Window* gained_active, | 989 void Shell::OnWindowActivated(aura::Window* gained_active, |
| 990 aura::Window* lost_active) { | 990 aura::Window* lost_active) { |
| 991 if (gained_active) | 991 if (gained_active) |
| 992 target_root_window_ = gained_active->GetRootWindow(); | 992 target_root_window_ = gained_active->GetRootWindow(); |
| 993 } | 993 } |
| 994 | 994 |
| 995 } // namespace ash | 995 } // namespace ash |
| OLD | NEW |