Index: ash/wm/system_gesture_event_filter.h |
diff --git a/ash/wm/system_gesture_event_filter.h b/ash/wm/system_gesture_event_filter.h |
index fe58711d7e1b350812e4f8072f267b70f8da20aa..ac5af44beb376d239b6a5dccd0f05658191db44f 100644 |
--- a/ash/wm/system_gesture_event_filter.h |
+++ b/ash/wm/system_gesture_event_filter.h |
@@ -18,6 +18,20 @@ class Window; |
namespace ash { |
namespace internal { |
+typedef enum { |
sky
2012/05/11 17:00:01
use C++ style, eg enum BezelStart ... Also, the va
Mr4D (OOO till 08-26)
2012/05/11 18:09:59
Done.
|
+ bezel_start_unset = 0, |
+ bezel_start_top, |
+ bezel_start_left, |
+ bezel_start_right, |
+ bezel_start_bottom |
+} BezelStart; |
+ |
+typedef enum { |
+ scroll_orientation_unset = 0, |
+ scroll_orientation_horizontal, |
+ scroll_orientation_vertical |
+} ScrollOrientation; |
+ |
// An event filter which handles system level gesture events. |
class SystemGestureEventFilter : public aura::EventFilter { |
public: |
@@ -36,6 +50,34 @@ class SystemGestureEventFilter : public aura::EventFilter { |
aura::GestureEvent* event) OVERRIDE; |
private: |
+ // The percentage of the screen to the left and right which belongs to |
+ // device gestures. |
+ const int kOverlapPercent; |
sky
2012/05/11 17:00:01
overlap_percent_
Mr4D (OOO till 08-26)
2012/05/11 18:09:59
Done.
|
+ |
+ // Which bezel corner are we on. |
+ BezelStart start_location_; |
+ |
+ // Which orientation are we moving. |
+ ScrollOrientation orientation_; |
+ |
+ // A device swipe gesture is in progress. |
+ bool is_scrubbing_; |
+ |
+ // The touch id of the device swipe gesture. |
+ int touch_id_; |
+ |
+ // Handle events meant for volume / brightness. Returns true when no further |
+ // events from this gesture should be sent. |
+ bool HandleDeviceControl(aura::GestureEvent* event); |
sky
2012/05/11 17:00:01
methods before fields.
Mr4D (OOO till 08-26)
2012/05/11 18:09:59
Done.
|
+ |
+ // Handle events meant for showing the launcher. Returns true when no further |
+ // events from this gesture should be sent. |
+ bool HandleLauncherControl(aura::GestureEvent* event); |
+ |
+ // Handle events meant to switch through applications. Returns true when no |
+ // further events from this gesture should be sent. |
+ bool HandleApplicationControl(aura::GestureEvent* event); |
+ |
DISALLOW_COPY_AND_ASSIGN(SystemGestureEventFilter); |
}; |