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

Unified Diff: ash/wm/gestures/bezel_gesture_handler.cc

Issue 12618014: Switch Next Window Key functionality (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: gesture change Created 7 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/shelf/shelf_layout_manager.cc ('k') | ash/wm/window_cycle_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/gestures/bezel_gesture_handler.cc
diff --git a/ash/wm/gestures/bezel_gesture_handler.cc b/ash/wm/gestures/bezel_gesture_handler.cc
index a306f6f2323132815e520c6bb47cbfbc51c8ffe8..4d5dadfa1372b14f0b5c610e3fe5a554c8ea9777 100644
--- a/ash/wm/gestures/bezel_gesture_handler.cc
+++ b/ash/wm/gestures/bezel_gesture_handler.cc
@@ -139,13 +139,11 @@ bool BezelGestureHandler::HandleLauncherControl(const ui::GestureEvent& event) {
bool BezelGestureHandler::HandleApplicationControl(
const ui::GestureEvent& event) {
- ash::AcceleratorController* accelerator =
- ash::Shell::GetInstance()->accelerator_controller();
if (start_location_ == BEZEL_START_LEFT && event.details().scroll_x() > 0) {
- accelerator->PerformAction(CYCLE_BACKWARD_LINEAR, ui::Accelerator());
+ Launcher::ForPrimaryDisplay()->CycleWindowLinear(CYCLE_BACKWARD);
} else if (start_location_ == BEZEL_START_RIGHT &&
event.details().scroll_x() < 0) {
- accelerator->PerformAction(CYCLE_FORWARD_LINEAR, ui::Accelerator());
+ Launcher::ForPrimaryDisplay()->CycleWindowLinear(CYCLE_FORWARD);
} else {
return false;
}
« no previous file with comments | « ash/shelf/shelf_layout_manager.cc ('k') | ash/wm/window_cycle_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698