OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/system_gesture_event_filter.h" | 5 #include "ash/wm/system_gesture_event_filter.h" |
6 | 6 |
7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "ui/aura/event.h" | 8 #include "ui/aura/event.h" |
9 #include "ui/aura/root_window.h" | 9 #include "ui/aura/root_window.h" |
10 | 10 |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 ui::TouchStatus SystemGestureEventFilter::PreHandleTouchEvent( | 31 ui::TouchStatus SystemGestureEventFilter::PreHandleTouchEvent( |
32 aura::Window* target, | 32 aura::Window* target, |
33 aura::TouchEvent* event) { | 33 aura::TouchEvent* event) { |
34 return ui::TOUCH_STATUS_UNKNOWN; | 34 return ui::TOUCH_STATUS_UNKNOWN; |
35 } | 35 } |
36 | 36 |
37 ui::GestureStatus SystemGestureEventFilter::PreHandleGestureEvent( | 37 ui::GestureStatus SystemGestureEventFilter::PreHandleGestureEvent( |
38 aura::Window* target, aura::GestureEvent* event) { | 38 aura::Window* target, aura::GestureEvent* event) { |
39 // TODO(tdresser) handle system level gesture events | 39 // TODO(tdresser) handle system level gesture events |
| 40 if (event->type() == ui::ET_GESTURE_THREE_FINGER_SWIPE) |
| 41 return ui::GESTURE_STATUS_CONSUMED; |
40 if (target == Shell::GetRootWindow()) | 42 if (target == Shell::GetRootWindow()) |
41 return ui::GESTURE_STATUS_CONSUMED; | 43 return ui::GESTURE_STATUS_CONSUMED; |
42 return ui::GESTURE_STATUS_UNKNOWN; | 44 return ui::GESTURE_STATUS_UNKNOWN; |
43 } | 45 } |
44 | 46 |
45 } // namespace internal | 47 } // namespace internal |
46 } // namespace ash | 48 } // namespace ash |
47 | |
OLD | NEW |