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

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

Issue 2526333002: ash: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase Created 4 years 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
« no previous file with comments | « ash/wm/boot_splash_screen_chromeos.h ('k') | ash/wm/lock_state_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef ASH_WM_GESTURES_OVERVIEW_GESTURE_HANDLER_H_ 5 #ifndef ASH_WM_GESTURES_OVERVIEW_GESTURE_HANDLER_H_
6 #define ASH_WM_GESTURES_OVERVIEW_GESTURE_HANDLER_H_ 6 #define ASH_WM_GESTURES_OVERVIEW_GESTURE_HANDLER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 9
10 namespace aura {
11 class Window;
12 }
13
14 namespace ui { 10 namespace ui {
15 class GestureEvent;
16 class ScrollEvent; 11 class ScrollEvent;
17 } 12 }
18 13
19 namespace ash { 14 namespace ash {
20 15
21 // This handles 3-finger touchpad scroll events to enter/exit overview mode. 16 // This handles 3-finger touchpad scroll events to enter/exit overview mode.
22 class OverviewGestureHandler { 17 class OverviewGestureHandler {
23 public: 18 public:
24 OverviewGestureHandler(); 19 OverviewGestureHandler();
25 virtual ~OverviewGestureHandler(); 20 virtual ~OverviewGestureHandler();
26 21
27 // Processes a scroll event and may start overview. Returns true if the event 22 // 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. 23 // has been handled and should not be processed further, false otherwise.
29 bool ProcessScrollEvent(const ui::ScrollEvent& event); 24 bool ProcessScrollEvent(const ui::ScrollEvent& event);
30 25
31 private: 26 private:
32 // The total distance scrolled with three fingers. 27 // The total distance scrolled with three fingers.
33 float scroll_x_; 28 float scroll_x_;
34 float scroll_y_; 29 float scroll_y_;
35 30
36 DISALLOW_COPY_AND_ASSIGN(OverviewGestureHandler); 31 DISALLOW_COPY_AND_ASSIGN(OverviewGestureHandler);
37 }; 32 };
38 33
39 } // namespace ash 34 } // namespace ash
40 35
41 #endif // ASH_WM_GESTURES_OVERVIEW_GESTURE_HANDLER_H_ 36 #endif // ASH_WM_GESTURES_OVERVIEW_GESTURE_HANDLER_H_
OLDNEW
« no previous file with comments | « ash/wm/boot_splash_screen_chromeos.h ('k') | ash/wm/lock_state_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698