| 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 #ifndef UI_EVENTS_GESTURE_DETECTION_FILTERED_GESTURE_PROVIDER_H_ | 5 #ifndef UI_EVENTS_GESTURE_DETECTION_FILTERED_GESTURE_PROVIDER_H_ |
| 6 #define UI_EVENTS_GESTURE_DETECTION_FILTERED_GESTURE_PROVIDER_H_ | 6 #define UI_EVENTS_GESTURE_DETECTION_FILTERED_GESTURE_PROVIDER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "ui/events/gesture_detection/gesture_event_data_packet.h" | 9 #include "ui/events/gesture_detection/gesture_event_data_packet.h" |
| 10 #include "ui/events/gesture_detection/gesture_provider.h" | 10 #include "ui/events/gesture_detection/gesture_provider.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 void OnTouchEventAck(bool event_consumed); | 33 void OnTouchEventAck(bool event_consumed); |
| 34 | 34 |
| 35 // Methods delegated to |gesture_provider_|. | 35 // Methods delegated to |gesture_provider_|. |
| 36 void SetMultiTouchZoomSupportEnabled(bool enabled); | 36 void SetMultiTouchZoomSupportEnabled(bool enabled); |
| 37 void SetDoubleTapSupportForPlatformEnabled(bool enabled); | 37 void SetDoubleTapSupportForPlatformEnabled(bool enabled); |
| 38 void SetDoubleTapSupportForPageEnabled(bool enabled); | 38 void SetDoubleTapSupportForPageEnabled(bool enabled); |
| 39 const ui::MotionEvent* GetCurrentDownEvent() const; | 39 const ui::MotionEvent* GetCurrentDownEvent() const; |
| 40 | 40 |
| 41 private: | 41 private: |
| 42 // GestureProviderClient implementation. | 42 // GestureProviderClient implementation. |
| 43 virtual void OnGestureEvent(const ui::GestureEventData& event) OVERRIDE; | 43 virtual void OnGestureEvent(const ui::GestureEventData& event) override; |
| 44 | 44 |
| 45 // TouchDispositionGestureFilterClient implementation. | 45 // TouchDispositionGestureFilterClient implementation. |
| 46 virtual void ForwardGestureEvent(const ui::GestureEventData& event) OVERRIDE; | 46 virtual void ForwardGestureEvent(const ui::GestureEventData& event) override; |
| 47 | 47 |
| 48 GestureProviderClient* const client_; | 48 GestureProviderClient* const client_; |
| 49 | 49 |
| 50 ui::GestureProvider gesture_provider_; | 50 ui::GestureProvider gesture_provider_; |
| 51 ui::TouchDispositionGestureFilter gesture_filter_; | 51 ui::TouchDispositionGestureFilter gesture_filter_; |
| 52 | 52 |
| 53 bool handling_event_; | 53 bool handling_event_; |
| 54 ui::GestureEventDataPacket pending_gesture_packet_; | 54 ui::GestureEventDataPacket pending_gesture_packet_; |
| 55 | 55 |
| 56 DISALLOW_COPY_AND_ASSIGN(FilteredGestureProvider); | 56 DISALLOW_COPY_AND_ASSIGN(FilteredGestureProvider); |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 } // namespace ui | 59 } // namespace ui |
| 60 | 60 |
| 61 #endif // UI_EVENTS_GESTURE_DETECTION_FILTERED_GESTURE_PROVIDER_H_ | 61 #endif // UI_EVENTS_GESTURE_DETECTION_FILTERED_GESTURE_PROVIDER_H_ |
| OLD | NEW |