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

Unified Diff: ash/common/focus_cycler.cc

Issue 2787363002: Moves couple of WmShell methods to standalone functions (Closed)
Patch Set: feedback and fix applist 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
« no previous file with comments | « ash/common/accelerators/debug_commands.cc ('k') | ash/common/wm/fullscreen_window_finder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/focus_cycler.cc
diff --git a/ash/common/focus_cycler.cc b/ash/common/focus_cycler.cc
index 0ef88b605d743e88165a01d2a4a4f18b7ff37403..653f23c13cd2c66059012f361a318486c12f64f9 100644
--- a/ash/common/focus_cycler.cc
+++ b/ash/common/focus_cycler.cc
@@ -9,6 +9,7 @@
#include "ash/common/wm_shell.h"
#include "ash/common/wm_window.h"
#include "ash/shell.h"
+#include "ash/wm/window_util.h"
#include "ui/views/accessible_pane_view.h"
#include "ui/views/focus/focus_search.h"
#include "ui/views/widget/widget.h"
@@ -39,7 +40,7 @@ void FocusCycler::RemoveWidget(views::Widget* widget) {
}
void FocusCycler::RotateFocus(Direction direction) {
- WmWindow* window = WmShell::Get()->GetActiveWindow();
+ WmWindow* window = WmWindow::Get(wm::GetActiveWindow());
if (window) {
views::Widget* widget = window->GetInternalWidget();
// First try to rotate focus within the active widget. If that succeeds,
« no previous file with comments | « ash/common/accelerators/debug_commands.cc ('k') | ash/common/wm/fullscreen_window_finder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698