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

Unified 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: wm 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/aura/wm_shell_aura.cc
diff --git a/ash/aura/wm_shell_aura.cc b/ash/aura/wm_shell_aura.cc
index 7b6e2e16c515db54371d5058c1b336f624a2fc82..f86b2b17f1ee33b3f5d99dfdca800b4ea456d1df 100644
--- a/ash/aura/wm_shell_aura.cc
+++ b/ash/aura/wm_shell_aura.cc
@@ -10,6 +10,7 @@
#include "ash/common/wm_activation_observer.h"
#include "ash/common/wm_display_observer.h"
#include "ash/common/wm_overview_mode_observer.h"
+#include "ash/common/wm_shell_common.h"
#include "ash/display/window_tree_host_manager.h"
#include "ash/shell.h"
#include "ash/shell_delegate.h"
@@ -22,7 +23,8 @@
namespace ash {
-WmShellAura::WmShellAura() {
+WmShellAura::WmShellAura(WmShellCommon* wm_shell_common)
+ : wm_shell_common_(wm_shell_common) {
WmShell::Set(this);
Shell::GetInstance()->AddShellObserver(this);
}
@@ -39,6 +41,10 @@ WmShellAura::~WmShellAura() {
Shell::GetInstance()->RemoveShellObserver(this);
}
+MruWindowTracker* WmShellAura::GetMruWindowTracker() {
+ return wm_shell_common_->mru_window_tracker();
+}
+
WmWindow* WmShellAura::NewContainerWindow() {
aura::Window* aura_window = new aura::Window(nullptr);
aura_window->Init(ui::LAYER_NOT_DRAWN);
@@ -69,19 +75,6 @@ WmWindow* WmShellAura::GetRootWindowForNewWindows() {
return WmWindowAura::Get(Shell::GetTargetRootWindow());
}
-std::vector<WmWindow*> WmShellAura::GetMruWindowList() {
- // TODO(sky): remove this and provide accessor for MruWindowTracker.
- // http://crbug.com/617789.
- return Shell::GetInstance()->mru_window_tracker()->BuildMruWindowList();
-}
-
-std::vector<WmWindow*> WmShellAura::GetMruWindowListIgnoreModals() {
- // TODO(sky): remove this and provide accessor for MruWindowTracker.
- // http://crbug.com/617789.
- return Shell::GetInstance()
- ->mru_window_tracker()
- ->BuildWindowListIgnoreModal();
-}
bool WmShellAura::IsForceMaximizeOnFirstRun() {
return Shell::GetInstance()->delegate()->IsForceMaximizeOnFirstRun();
« 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