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

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

Issue 224113005: Eliminate ash::internal namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
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/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 namespace aura { 10 namespace aura {
11 class Window; 11 class Window;
12 } 12 }
13 13
14 namespace ui { 14 namespace ui {
15 class GestureEvent; 15 class GestureEvent;
16 class ScrollEvent; 16 class ScrollEvent;
17 } 17 }
18 18
19 namespace ash { 19 namespace ash {
20 namespace internal {
21 20
22 // This handles a 3-finger swipe down gesture from the top of the screen to 21 // This handles a 3-finger swipe down gesture from the top of the screen to
23 // enter overview mode. 22 // enter overview mode.
24 class OverviewGestureHandler { 23 class OverviewGestureHandler {
25 public: 24 public:
26 OverviewGestureHandler(); 25 OverviewGestureHandler();
27 virtual ~OverviewGestureHandler(); 26 virtual ~OverviewGestureHandler();
28 27
29 // Processes a scroll event and may start overview. Returns true if the event 28 // Processes a scroll event and may start overview. Returns true if the event
30 // has been handled and should not be processed further, false otherwise. 29 // has been handled and should not be processed further, false otherwise.
31 bool ProcessScrollEvent(const ui::ScrollEvent& event); 30 bool ProcessScrollEvent(const ui::ScrollEvent& event);
32 31
33 // Processes a gesture event and may start overview. Returns true if the event 32 // Processes a gesture event and may start overview. Returns true if the event
34 // has been handled and should not be processed any farther, false otherwise. 33 // has been handled and should not be processed any farther, false otherwise.
35 bool ProcessGestureEvent(const ui::GestureEvent& event); 34 bool ProcessGestureEvent(const ui::GestureEvent& event);
36 35
37 private: 36 private:
38 // True if the current/last gesture began in the top bezel. 37 // True if the current/last gesture began in the top bezel.
39 bool in_top_bezel_gesture_; 38 bool in_top_bezel_gesture_;
40 39
41 // The total distance scrolled with three fingers. 40 // The total distance scrolled with three fingers.
42 float scroll_x_; 41 float scroll_x_;
43 float scroll_y_; 42 float scroll_y_;
44 43
45 DISALLOW_COPY_AND_ASSIGN(OverviewGestureHandler); 44 DISALLOW_COPY_AND_ASSIGN(OverviewGestureHandler);
46 }; 45 };
47 46
48 } // namespace internal
49 } // namespace ash 47 } // namespace ash
50 48
51 #endif // ASH_WM_GESTURES_OVERVIEW_GESTURE_HANDLER_H_ 49 #endif // ASH_WM_GESTURES_OVERVIEW_GESTURE_HANDLER_H_
OLDNEW
« no previous file with comments | « ash/wm/gestures/long_press_affordance_handler.cc ('k') | ash/wm/gestures/overview_gesture_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698