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

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

Issue 2041423002: Moves MruWindowTracker to WmShell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_mru_window_tracker
Patch Set: merge 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
« no previous file with comments | « ash/aura/wm_shell_aura.h ('k') | ash/common/wm/window_positioner.cc » ('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 "ash/aura/wm_window_aura.h" 7 #include "ash/aura/wm_window_aura.h"
8 #include "ash/common/session/session_state_delegate.h" 8 #include "ash/common/session/session_state_delegate.h"
9 #include "ash/common/wm/mru_window_tracker.h" 9 #include "ash/common/wm/mru_window_tracker.h"
10 #include "ash/common/wm_activation_observer.h" 10 #include "ash/common/wm_activation_observer.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 WmWindow* WmShellAura::GetRootWindowForDisplayId(int64_t display_id) { 62 WmWindow* WmShellAura::GetRootWindowForDisplayId(int64_t display_id) {
63 return WmWindowAura::Get(Shell::GetInstance() 63 return WmWindowAura::Get(Shell::GetInstance()
64 ->window_tree_host_manager() 64 ->window_tree_host_manager()
65 ->GetRootWindowForDisplayId(display_id)); 65 ->GetRootWindowForDisplayId(display_id));
66 } 66 }
67 67
68 WmWindow* WmShellAura::GetRootWindowForNewWindows() { 68 WmWindow* WmShellAura::GetRootWindowForNewWindows() {
69 return WmWindowAura::Get(Shell::GetTargetRootWindow()); 69 return WmWindowAura::Get(Shell::GetTargetRootWindow());
70 } 70 }
71 71
72 std::vector<WmWindow*> WmShellAura::GetMruWindowList() {
73 // TODO(sky): remove this and provide accessor for MruWindowTracker.
74 // http://crbug.com/617789.
75 return Shell::GetInstance()->mru_window_tracker()->BuildMruWindowList();
76 }
77
78 std::vector<WmWindow*> WmShellAura::GetMruWindowListIgnoreModals() {
79 // TODO(sky): remove this and provide accessor for MruWindowTracker.
80 // http://crbug.com/617789.
81 return Shell::GetInstance()
82 ->mru_window_tracker()
83 ->BuildWindowListIgnoreModal();
84 }
85 72
86 bool WmShellAura::IsForceMaximizeOnFirstRun() { 73 bool WmShellAura::IsForceMaximizeOnFirstRun() {
87 return Shell::GetInstance()->delegate()->IsForceMaximizeOnFirstRun(); 74 return Shell::GetInstance()->delegate()->IsForceMaximizeOnFirstRun();
88 } 75 }
89 76
90 bool WmShellAura::CanShowWindowForUser(WmWindow* window) { 77 bool WmShellAura::CanShowWindowForUser(WmWindow* window) {
91 return Shell::GetInstance()->delegate()->CanShowWindowForUser( 78 return Shell::GetInstance()->delegate()->CanShowWindowForUser(
92 WmWindowAura::GetAuraWindow(window)); 79 WmWindowAura::GetAuraWindow(window));
93 } 80 }
94 81
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 FOR_EACH_OBSERVER(WmDisplayObserver, display_observers_, 182 FOR_EACH_OBSERVER(WmDisplayObserver, display_observers_,
196 OnDisplayConfigurationChanged()); 183 OnDisplayConfigurationChanged());
197 } 184 }
198 185
199 void WmShellAura::OnOverviewModeEnded() { 186 void WmShellAura::OnOverviewModeEnded() {
200 FOR_EACH_OBSERVER(WmOverviewModeObserver, overview_mode_observers_, 187 FOR_EACH_OBSERVER(WmOverviewModeObserver, overview_mode_observers_,
201 OnOverviewModeEnded()); 188 OnOverviewModeEnded());
202 } 189 }
203 190
204 } // namespace ash 191 } // namespace ash
OLDNEW
« no previous file with comments | « ash/aura/wm_shell_aura.h ('k') | ash/common/wm/window_positioner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698