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

Unified Diff: ash/wm/window_cycle_event_filter_aura.cc

Issue 2157393002: Moves WindowCycleList/Controller to ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Feedback and std::move Created 4 years, 5 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') | ash/wm/window_cycle_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_cycle_event_filter_aura.cc
diff --git a/ash/wm/window_cycle_event_filter_aura.cc b/ash/wm/window_cycle_event_filter_aura.cc
index dbe4450ceba1bbddee11275b180c63f25590b586..c0504e9b3fa5b93060d6e9c6b6689a3344f88c6f 100644
--- a/ash/wm/window_cycle_event_filter_aura.cc
+++ b/ash/wm/window_cycle_event_filter_aura.cc
@@ -4,8 +4,9 @@
#include "ash/wm/window_cycle_event_filter_aura.h"
+#include "ash/common/wm/window_cycle_controller.h"
+#include "ash/common/wm_shell.h"
#include "ash/shell.h"
-#include "ash/wm/window_cycle_controller.h"
#include "ui/events/event.h"
namespace ash {
@@ -25,7 +26,7 @@ void WindowCycleEventFilterAura::OnKeyEvent(ui::KeyEvent* event) {
// Views uses VKEY_MENU for both left and right Alt keys.
if (event->key_code() == ui::VKEY_MENU &&
event->type() == ui::ET_KEY_RELEASED) {
- Shell::GetInstance()->window_cycle_controller()->StopCycling();
+ WmShell::Get()->window_cycle_controller()->StopCycling();
// Warning: |this| will be deleted from here on.
}
}
« no previous file with comments | « ash/wm/window_cycle_controller_unittest.cc ('k') | ash/wm/window_cycle_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698