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

Side by Side Diff: ash/common/wm_shell.cc

Issue 2084503007: Moves WindowSelectorController onto WmShell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_overview
Patch Set: cleanup Created 4 years, 6 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/common/wm_shell.h" 5 #include "ash/common/wm_shell.h"
6 6
7 #include "ash/common/focus_cycler.h" 7 #include "ash/common/focus_cycler.h"
8 #include "ash/common/shell_window_ids.h" 8 #include "ash/common/shell_window_ids.h"
9 #include "ash/common/system/tray/system_tray_delegate.h" 9 #include "ash/common/system/tray/system_tray_delegate.h"
10 #include "ash/common/system/tray/wm_system_tray_notifier.h" 10 #include "ash/common/system/tray/wm_system_tray_notifier.h"
11 #include "ash/common/wm/overview/window_selector_controller.h"
11 #include "ash/common/wm_window.h" 12 #include "ash/common/wm_window.h"
12 #include "base/logging.h" 13 #include "base/logging.h"
13 14
14 namespace ash { 15 namespace ash {
15 16
16 // static 17 // static
17 WmShell* WmShell::instance_ = nullptr; 18 WmShell* WmShell::instance_ = nullptr;
18 19
19 // static 20 // static
20 void WmShell::Set(WmShell* instance) { 21 void WmShell::Set(WmShell* instance) {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // TODO(jamescook): Create via ShellDelegate once it moves to //ash/common. 60 // TODO(jamescook): Create via ShellDelegate once it moves to //ash/common.
60 system_tray_delegate_ = std::move(delegate); 61 system_tray_delegate_ = std::move(delegate);
61 system_tray_delegate_->Initialize(); 62 system_tray_delegate_->Initialize();
62 } else { 63 } else {
63 DCHECK(system_tray_delegate_); 64 DCHECK(system_tray_delegate_);
64 system_tray_delegate_->Shutdown(); 65 system_tray_delegate_->Shutdown();
65 system_tray_delegate_.reset(); 66 system_tray_delegate_.reset();
66 } 67 }
67 } 68 }
68 69
70 void WmShell::CreateWindowSelectorController() {
71 window_selector_controller_.reset(new WindowSelectorController());
James Cook 2016/06/22 22:46:19 WindowSelectorController does nothing in its const
sky 2016/06/22 23:19:39 I made construction immediate, but destruction has
72 }
73
74 void WmShell::DeleteWindowSelectorController() {
75 window_selector_controller_.reset();
76 }
77
69 } // namespace ash 78 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698