OLD | NEW |
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 Loading... |
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 |
OLD | NEW |