Updating XTBs based on .GRDs from branch master
[chromium-blink-merge.git] / ash / wm / gestures / overview_gesture_handler.h
blob32488f2c6d7a39ede73886b98713779163db0a22
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
3 // found in the LICENSE file.
5 #ifndef ASH_WM_GESTURES_OVERVIEW_GESTURE_HANDLER_H_
6 #define ASH_WM_GESTURES_OVERVIEW_GESTURE_HANDLER_H_
8 #include "base/basictypes.h"
10 namespace aura {
11 class Window;
14 namespace ui {
15 class GestureEvent;
16 class ScrollEvent;
19 namespace ash {
21 // This handles 3-finger touchpad scroll events to enter/exit overview mode.
22 class OverviewGestureHandler {
23 public:
24 OverviewGestureHandler();
25 virtual ~OverviewGestureHandler();
27 // Processes a scroll event and may start overview. Returns true if the event
28 // has been handled and should not be processed further, false otherwise.
29 bool ProcessScrollEvent(const ui::ScrollEvent& event);
31 private:
32 // The total distance scrolled with three fingers.
33 float scroll_x_;
34 float scroll_y_;
36 DISALLOW_COPY_AND_ASSIGN(OverviewGestureHandler);
39 } // namespace ash
41 #endif // ASH_WM_GESTURES_OVERVIEW_GESTURE_HANDLER_H_