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 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
684 RemovePostTargetHandler(toplevel_window_event_handler_.get()); | 684 RemovePostTargetHandler(toplevel_window_event_handler_.get()); |
685 RemovePreTargetHandler(system_gesture_filter_.get()); | 685 RemovePreTargetHandler(system_gesture_filter_.get()); |
686 RemovePreTargetHandler(keyboard_metrics_filter_.get()); | 686 RemovePreTargetHandler(keyboard_metrics_filter_.get()); |
687 RemovePreTargetHandler(mouse_cursor_filter_.get()); | 687 RemovePreTargetHandler(mouse_cursor_filter_.get()); |
688 | 688 |
689 // TooltipController is deleted with the Shell so removing its references. | 689 // TooltipController is deleted with the Shell so removing its references. |
690 RemovePreTargetHandler(tooltip_controller_.get()); | 690 RemovePreTargetHandler(tooltip_controller_.get()); |
691 | 691 |
692 // Destroy maximize window manager early on since it has some observers which | 692 // Destroy maximize window manager early on since it has some observers which |
693 // need to be removed. | 693 // need to be removed. |
| 694 maximize_mode_window_manager_.reset(); |
694 maximize_mode_controller_.reset(); | 695 maximize_mode_controller_.reset(); |
695 maximize_mode_window_manager_.reset(); | |
696 | 696 |
697 // AppList needs to be released before shelf layout manager, which is | 697 // AppList needs to be released before shelf layout manager, which is |
698 // destroyed with shelf container in the loop below. However, app list | 698 // destroyed with shelf container in the loop below. However, app list |
699 // container is now on top of shelf container and released after it. | 699 // container is now on top of shelf container and released after it. |
700 // TODO(xiyuan): Move it back when app list container is no longer needed. | 700 // TODO(xiyuan): Move it back when app list container is no longer needed. |
701 app_list_controller_.reset(); | 701 app_list_controller_.reset(); |
702 | 702 |
703 #if defined(OS_CHROMEOS) | 703 #if defined(OS_CHROMEOS) |
704 // Destroy the LastWindowClosedLogoutReminder before the | 704 // Destroy the LastWindowClosedLogoutReminder before the |
705 // LogoutConfirmationController. | 705 // LogoutConfirmationController. |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1149 //////////////////////////////////////////////////////////////////////////////// | 1149 //////////////////////////////////////////////////////////////////////////////// |
1150 // Shell, aura::client::ActivationChangeObserver implementation: | 1150 // Shell, aura::client::ActivationChangeObserver implementation: |
1151 | 1151 |
1152 void Shell::OnWindowActivated(aura::Window* gained_active, | 1152 void Shell::OnWindowActivated(aura::Window* gained_active, |
1153 aura::Window* lost_active) { | 1153 aura::Window* lost_active) { |
1154 if (gained_active) | 1154 if (gained_active) |
1155 target_root_window_ = gained_active->GetRootWindow(); | 1155 target_root_window_ = gained_active->GetRootWindow(); |
1156 } | 1156 } |
1157 | 1157 |
1158 } // namespace ash | 1158 } // namespace ash |
OLD | NEW |