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

Unified Diff: ash/wm/window_cycle_event_filter_aura.cc

Issue 2775973002: Promotes more accessors from WmShell to Shell (Closed)
Patch Set: feedback 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/wm/window_cycle_controller_unittest.cc ('k') | chrome/browser/chromeos/net/DEPS » ('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 77ec193b0dd7fdc3120e677b8fad4e7f1021a85c..d77397a424f89b12d66576585104cc6ec67f5a7c 100644
--- a/ash/wm/window_cycle_event_filter_aura.cc
+++ b/ash/wm/window_cycle_event_filter_aura.cc
@@ -7,7 +7,6 @@
#include "ash/common/accelerators/debug_commands.h"
#include "ash/common/wm/window_cycle_controller.h"
#include "ash/common/wm/window_cycle_list.h"
-#include "ash/common/wm_shell.h"
#include "ash/shell.h"
#include "ui/events/event.h"
@@ -43,14 +42,13 @@ void WindowCycleEventFilterAura::OnKeyEvent(ui::KeyEvent* event) {
!repeat_timer_.IsRunning()) {
repeat_timer_.Start(
FROM_HERE, base::TimeDelta::FromMilliseconds(180),
- base::Bind(
- &WindowCycleController::HandleCycleWindow,
- base::Unretained(WmShell::Get()->window_cycle_controller()),
- event->IsShiftDown() ? WindowCycleController::BACKWARD
- : WindowCycleController::FORWARD));
+ base::Bind(&WindowCycleController::HandleCycleWindow,
+ base::Unretained(Shell::Get()->window_cycle_controller()),
+ event->IsShiftDown() ? WindowCycleController::BACKWARD
+ : WindowCycleController::FORWARD));
}
} else if (event->key_code() == ui::VKEY_ESCAPE) {
- WmShell::Get()->window_cycle_controller()->CancelCycling();
+ Shell::Get()->window_cycle_controller()->CancelCycling();
}
}
@@ -73,7 +71,7 @@ void WindowCycleEventFilterAura::AltReleaseHandler::OnKeyEvent(
// Views uses VKEY_MENU for both left and right Alt keys.
if (event->key_code() == ui::VKEY_MENU &&
event->type() == ui::ET_KEY_RELEASED) {
- WmShell::Get()->window_cycle_controller()->CompleteCycling();
+ Shell::Get()->window_cycle_controller()->CompleteCycling();
// Warning: |this| will be deleted from here on.
}
}
« no previous file with comments | « ash/wm/window_cycle_controller_unittest.cc ('k') | chrome/browser/chromeos/net/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698