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

Side by Side Diff: ash/wm/system_gesture_event_filter.cc

Issue 10037012: Three Finger Swipe (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove pinch/scroll start/end calls Created 8 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
« no previous file with comments | « no previous file | ash/wm/system_gesture_event_filter_unittest.cc » ('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 (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
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
OLDNEW
« no previous file with comments | « no previous file | ash/wm/system_gesture_event_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698