| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |