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

Unified Diff: ash/common/focus_cycler.cc

Issue 2766543002: Move even more from WmShell to Shell (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: ash/common/focus_cycler.cc
diff --git a/ash/common/focus_cycler.cc b/ash/common/focus_cycler.cc
index 5ef50d4f8f6822e794a11110582a610e5bc41142..0ef88b605d743e88165a01d2a4a4f18b7ff37403 100644
--- a/ash/common/focus_cycler.cc
+++ b/ash/common/focus_cycler.cc
@@ -8,6 +8,7 @@
#include "ash/common/wm/window_state.h"
#include "ash/common/wm_shell.h"
#include "ash/common/wm_window.h"
+#include "ash/shell.h"
#include "ui/views/accessible_pane_view.h"
#include "ui/views/focus/focus_search.h"
#include "ui/views/widget/widget.h"
@@ -18,7 +19,7 @@ namespace ash {
namespace {
bool HasFocusableWindow() {
- return !WmShell::Get()->mru_window_tracker()->BuildMruWindowList().empty();
+ return !Shell::Get()->mru_window_tracker()->BuildMruWindowList().empty();
}
} // namespace
@@ -80,7 +81,7 @@ void FocusCycler::RotateFocus(Direction direction) {
if (index == browser_index) {
// Activate the most recently active browser window.
MruWindowTracker::WindowList mru_windows(
- WmShell::Get()->mru_window_tracker()->BuildMruWindowList());
+ Shell::Get()->mru_window_tracker()->BuildMruWindowList());
if (mru_windows.empty())
break;
WmWindow* window = mru_windows.front();
« no previous file with comments | « ash/common/accelerators/debug_commands.cc ('k') | ash/common/frame/caption_buttons/frame_caption_button_container_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698