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

Side by Side Diff: ui/events/gesture_detection/filtered_gesture_provider.cc

Issue 717573004: [Android] Thoroughly reset gesture detection upon page navigation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comment Created 6 years, 1 month 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ui/events/gesture_detection/filtered_gesture_provider.h" 5 #include "ui/events/gesture_detection/filtered_gesture_provider.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "ui/events/gesture_detection/motion_event.h" 9 #include "ui/events/gesture_detection/motion_event.h"
10 10
(...skipping 23 matching lines...) Expand all
34 return false; 34 return false;
35 } 35 }
36 36
37 return true; 37 return true;
38 } 38 }
39 39
40 void FilteredGestureProvider::OnTouchEventAck(bool event_consumed) { 40 void FilteredGestureProvider::OnTouchEventAck(bool event_consumed) {
41 gesture_filter_.OnTouchEventAck(event_consumed); 41 gesture_filter_.OnTouchEventAck(event_consumed);
42 } 42 }
43 43
44 void FilteredGestureProvider::ResetDetection() {
45 gesture_provider_.ResetDetection();
46 }
47
44 void FilteredGestureProvider::SetMultiTouchZoomSupportEnabled( 48 void FilteredGestureProvider::SetMultiTouchZoomSupportEnabled(
45 bool enabled) { 49 bool enabled) {
46 gesture_provider_.SetMultiTouchZoomSupportEnabled(enabled); 50 gesture_provider_.SetMultiTouchZoomSupportEnabled(enabled);
47 } 51 }
48 52
49 void FilteredGestureProvider::SetDoubleTapSupportForPlatformEnabled( 53 void FilteredGestureProvider::SetDoubleTapSupportForPlatformEnabled(
50 bool enabled) { 54 bool enabled) {
51 gesture_provider_.SetDoubleTapSupportForPlatformEnabled(enabled); 55 gesture_provider_.SetDoubleTapSupportForPlatformEnabled(enabled);
52 } 56 }
53 57
(...skipping 14 matching lines...) Expand all
68 gesture_filter_.OnGesturePacket( 72 gesture_filter_.OnGesturePacket(
69 GestureEventDataPacket::FromTouchTimeout(event)); 73 GestureEventDataPacket::FromTouchTimeout(event));
70 } 74 }
71 75
72 void FilteredGestureProvider::ForwardGestureEvent( 76 void FilteredGestureProvider::ForwardGestureEvent(
73 const GestureEventData& event) { 77 const GestureEventData& event) {
74 client_->OnGestureEvent(event); 78 client_->OnGestureEvent(event);
75 } 79 }
76 80
77 } // namespace ui 81 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/gesture_detection/filtered_gesture_provider.h ('k') | ui/events/gesture_detection/gesture_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698