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

Side by Side Diff: ash/wm/gestures/overview_gesture_handler.cc

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/wm/gestures/overview_gesture_handler.h" 5 #include "ash/wm/gestures/overview_gesture_handler.h"
6 6
7 #include "ash/common/wm/overview/window_selector_controller.h" 7 #include "ash/wm/overview/window_selector_controller.h"
8 #include "ash/common/wm_shell.h" 8 #include "ash/wm_shell.h"
9 #include "ui/events/event.h" 9 #include "ui/events/event.h"
10 #include "ui/events/event_constants.h" 10 #include "ui/events/event_constants.h"
11 11
12 namespace ash { 12 namespace ash {
13 13
14 // The threshold before engaging overview with a touchpad three-finger scroll. 14 // The threshold before engaging overview with a touchpad three-finger scroll.
15 const float OverviewGestureHandler::vertical_threshold_pixels_ = 300; 15 const float OverviewGestureHandler::vertical_threshold_pixels_ = 300;
16 16
17 // The threshold before moving selector horizontally when using a touchpad 17 // The threshold before moving selector horizontally when using a touchpad
18 // three-finger scroll. 18 // three-finger scroll.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 WmShell::Get()->RecordUserMetricsAction(UMA_TOUCHPAD_GESTURE_OVERVIEW); 68 WmShell::Get()->RecordUserMetricsAction(UMA_TOUCHPAD_GESTURE_OVERVIEW);
69 if (window_selector_controller->IsSelecting() && 69 if (window_selector_controller->IsSelecting() &&
70 window_selector_controller->AcceptSelection()) { 70 window_selector_controller->AcceptSelection()) {
71 return true; 71 return true;
72 } 72 }
73 window_selector_controller->ToggleOverview(); 73 window_selector_controller->ToggleOverview();
74 return true; 74 return true;
75 } 75 }
76 76
77 } // namespace ash 77 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/fullscreen_window_finder.cc ('k') | ash/wm/gestures/overview_gesture_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698