Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Side by Side Diff: ash/shell.cc

Issue 1133323002: Close mirroring window only when necessary (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 window_cycle_controller_.reset(); 751 window_cycle_controller_.reset();
752 window_selector_controller_.reset(); 752 window_selector_controller_.reset();
753 mru_window_tracker_.reset(); 753 mru_window_tracker_.reset();
754 754
755 // |shelf_window_watcher_| has a weak pointer to |shelf_Model_| 755 // |shelf_window_watcher_| has a weak pointer to |shelf_Model_|
756 // and has window observers. 756 // and has window observers.
757 shelf_window_watcher_.reset(); 757 shelf_window_watcher_.reset();
758 758
759 // Destroy all child windows including widgets. 759 // Destroy all child windows including widgets.
760 display_controller_->CloseChildWindows(); 760 display_controller_->CloseChildWindows();
761 display_controller_->CloseMirroringDisplay(); 761 // display_controller_->CloseMirroringDisplay();
Jun Mukai 2015/05/13 17:43:12 Comment out doesn't look correct. CloseMirroringDi
oshima 2015/05/13 23:04:25 meant to be removed as this is done in shutdown co
762 762
763 // Chrome implementation of shelf delegate depends on FocusClient, 763 // Chrome implementation of shelf delegate depends on FocusClient,
764 // so must be deleted before |focus_client_|. 764 // so must be deleted before |focus_client_|.
765 shelf_delegate_.reset(); 765 shelf_delegate_.reset();
766 focus_client_.reset(); 766 focus_client_.reset();
767 767
768 // Destroy SystemTrayNotifier after destroying SystemTray as TrayItems 768 // Destroy SystemTrayNotifier after destroying SystemTray as TrayItems
769 // needs to remove observers from it. 769 // needs to remove observers from it.
770 system_tray_notifier_.reset(); 770 system_tray_notifier_.reset();
771 771
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
1177 //////////////////////////////////////////////////////////////////////////////// 1177 ////////////////////////////////////////////////////////////////////////////////
1178 // Shell, aura::client::ActivationChangeObserver implementation: 1178 // Shell, aura::client::ActivationChangeObserver implementation:
1179 1179
1180 void Shell::OnWindowActivated(aura::Window* gained_active, 1180 void Shell::OnWindowActivated(aura::Window* gained_active,
1181 aura::Window* lost_active) { 1181 aura::Window* lost_active) {
1182 if (gained_active) 1182 if (gained_active)
1183 target_root_window_ = gained_active->GetRootWindow(); 1183 target_root_window_ = gained_active->GetRootWindow();
1184 } 1184 }
1185 1185
1186 } // namespace ash 1186 } // namespace ash
OLDNEW
« ash/display/mirror_window_controller.cc ('K') | « ash/display/mirror_window_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698