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

Side by Side Diff: ash/aura/wm_shell_aura.cc

Issue 2741273002: chromeos: Promotes more from WmShell to Shell (Closed)
Patch Set: feedback Created 3 years, 9 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
« no previous file with comments | « ash/aura/wm_shell_aura.h ('k') | ash/common/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/aura/wm_shell_aura.h" 5 #include "ash/aura/wm_shell_aura.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "ash/aura/key_event_watcher_aura.h" 9 #include "ash/aura/key_event_watcher_aura.h"
10 #include "ash/aura/pointer_watcher_adapter.h" 10 #include "ash/aura/pointer_watcher_adapter.h"
(...skipping 29 matching lines...) Expand all
40 #if defined(USE_X11) 40 #if defined(USE_X11)
41 #include "ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_x11.h" 41 #include "ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_x11.h"
42 #endif 42 #endif
43 43
44 #if defined(USE_OZONE) 44 #if defined(USE_OZONE)
45 #include "ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_ozone. h" 45 #include "ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_ozone. h"
46 #endif 46 #endif
47 47
48 namespace ash { 48 namespace ash {
49 49
50 WmShellAura::WmShellAura(std::unique_ptr<ShellDelegate> shell_delegate) 50 WmShellAura::WmShellAura() {}
51 : WmShell(std::move(shell_delegate)) {
52 WmShell::Set(this);
53 }
54 51
55 WmShellAura::~WmShellAura() { 52 WmShellAura::~WmShellAura() {}
56 WmShell::Set(nullptr);
57 }
58 53
59 void WmShellAura::Shutdown() { 54 void WmShellAura::Shutdown() {
60 if (added_display_observer_) 55 if (added_display_observer_)
61 Shell::GetInstance()->window_tree_host_manager()->RemoveObserver(this); 56 Shell::GetInstance()->window_tree_host_manager()->RemoveObserver(this);
62 57
63 pointer_watcher_adapter_.reset(); 58 pointer_watcher_adapter_.reset();
64 59
65 WmShell::Shutdown(); 60 WmShell::Shutdown();
66 61
67 Shell::GetInstance()->window_tree_host_manager()->Shutdown(); 62 Shell::GetInstance()->window_tree_host_manager()->Shutdown();
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 for (auto& observer : display_observers_) 282 for (auto& observer : display_observers_)
288 observer.OnDisplayConfigurationChanging(); 283 observer.OnDisplayConfigurationChanging();
289 } 284 }
290 285
291 void WmShellAura::OnDisplayConfigurationChanged() { 286 void WmShellAura::OnDisplayConfigurationChanged() {
292 for (auto& observer : display_observers_) 287 for (auto& observer : display_observers_)
293 observer.OnDisplayConfigurationChanged(); 288 observer.OnDisplayConfigurationChanged();
294 } 289 }
295 290
296 } // namespace ash 291 } // namespace ash
OLDNEW
« no previous file with comments | « ash/aura/wm_shell_aura.h ('k') | ash/common/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698