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

Unified Diff: chrome/browser/chromeos/login/ui/webui_login_view.cc

Issue 2075923002: mash: Convert FocusCycler to wm common types and move to //ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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/wm/window_cycle_controller_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/ui/webui_login_view.cc
diff --git a/chrome/browser/chromeos/login/ui/webui_login_view.cc b/chrome/browser/chromeos/login/ui/webui_login_view.cc
index fda501d359fb080cf553505c55409085cef6056e..806167d4ebb8471177150594c4fcbecd636427b2 100644
--- a/chrome/browser/chromeos/login/ui/webui_login_view.cc
+++ b/chrome/browser/chromeos/login/ui/webui_login_view.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/chromeos/login/ui/webui_login_view.h"
+#include "ash/common/focus_cycler.h"
+#include "ash/common/wm_shell.h"
#include "ash/shell.h"
#include "ash/system/tray/system_tray.h"
#include "base/bind.h"
@@ -443,8 +445,8 @@ bool WebUILoginView::TakeFocus(content::WebContents* source, bool reverse) {
ash::SystemTray* tray = ash::Shell::GetInstance()->GetPrimarySystemTray();
if (tray && tray->GetWidget()->IsVisible()) {
tray->SetNextFocusableView(this);
- ash::Shell::GetInstance()->RotateFocus(reverse ? ash::Shell::BACKWARD :
- ash::Shell::FORWARD);
+ ash::WmShell::Get()->focus_cycler()->RotateFocus(
+ reverse ? ash::FocusCycler::BACKWARD : ash::FocusCycler::FORWARD);
}
return true;
« no previous file with comments | « ash/wm/window_cycle_controller_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698