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/accelerator_controller.h" | 10 #include "ash/accelerators/accelerator_controller.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 #include "ash/wm/system_modal_container_layout_manager.h" | 72 #include "ash/wm/system_modal_container_layout_manager.h" |
73 #include "ash/wm/toplevel_window_event_handler.h" | 73 #include "ash/wm/toplevel_window_event_handler.h" |
74 #include "ash/wm/video_detector.h" | 74 #include "ash/wm/video_detector.h" |
75 #include "ash/wm/window_animations.h" | 75 #include "ash/wm/window_animations.h" |
76 #include "ash/wm/window_cycle_controller.h" | 76 #include "ash/wm/window_cycle_controller.h" |
77 #include "ash/wm/window_positioner.h" | 77 #include "ash/wm/window_positioner.h" |
78 #include "ash/wm/window_properties.h" | 78 #include "ash/wm/window_properties.h" |
79 #include "ash/wm/window_util.h" | 79 #include "ash/wm/window_util.h" |
80 #include "ash/wm/workspace_controller.h" | 80 #include "ash/wm/workspace_controller.h" |
81 #include "base/bind.h" | 81 #include "base/bind.h" |
82 #include "base/debug/trace_event.h" | 82 #include "base/trace_event/trace_event.h" |
83 #include "ui/aura/client/aura_constants.h" | 83 #include "ui/aura/client/aura_constants.h" |
84 #include "ui/aura/env.h" | 84 #include "ui/aura/env.h" |
85 #include "ui/aura/layout_manager.h" | 85 #include "ui/aura/layout_manager.h" |
86 #include "ui/aura/window.h" | 86 #include "ui/aura/window.h" |
87 #include "ui/aura/window_event_dispatcher.h" | 87 #include "ui/aura/window_event_dispatcher.h" |
88 #include "ui/base/ui_base_switches.h" | 88 #include "ui/base/ui_base_switches.h" |
89 #include "ui/base/user_activity/user_activity_detector.h" | 89 #include "ui/base/user_activity/user_activity_detector.h" |
90 #include "ui/compositor/layer.h" | 90 #include "ui/compositor/layer.h" |
91 #include "ui/compositor/layer_animator.h" | 91 #include "ui/compositor/layer_animator.h" |
92 #include "ui/events/event_target_iterator.h" | 92 #include "ui/events/event_target_iterator.h" |
(...skipping 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1165 //////////////////////////////////////////////////////////////////////////////// | 1165 //////////////////////////////////////////////////////////////////////////////// |
1166 // Shell, aura::client::ActivationChangeObserver implementation: | 1166 // Shell, aura::client::ActivationChangeObserver implementation: |
1167 | 1167 |
1168 void Shell::OnWindowActivated(aura::Window* gained_active, | 1168 void Shell::OnWindowActivated(aura::Window* gained_active, |
1169 aura::Window* lost_active) { | 1169 aura::Window* lost_active) { |
1170 if (gained_active) | 1170 if (gained_active) |
1171 target_root_window_ = gained_active->GetRootWindow(); | 1171 target_root_window_ = gained_active->GetRootWindow(); |
1172 } | 1172 } |
1173 | 1173 |
1174 } // namespace ash | 1174 } // namespace ash |
OLD | NEW |