Index: content/browser/renderer_host/input/touch_emulator.h |
diff --git a/content/browser/renderer_host/input/touch_emulator.h b/content/browser/renderer_host/input/touch_emulator.h |
index c6950c966b76274fbb6e1f1127cbb5441be8bfb1..0abeb00317385338fb63cd7c767590bec502c566 100644 |
--- a/content/browser/renderer_host/input/touch_emulator.h |
+++ b/content/browser/renderer_host/input/touch_emulator.h |
@@ -28,10 +28,12 @@ class CONTENT_EXPORT TouchEmulator : public ui::GestureProviderClient { |
bool HandleMouseEvent(const blink::WebMouseEvent& event); |
bool HandleMouseWheelEvent(const blink::WebMouseWheelEvent& event); |
bool HandleKeyboardEvent(const blink::WebKeyboardEvent& event); |
+ bool HandleTouchEvent(const blink::WebTouchEvent& event); |
// Returns |true| if the event ack was consumed. Consumed ack should not |
// propagate any further. |
- bool HandleTouchEventAck(InputEventAckState ack_result); |
+ bool HandleTouchEventAck(const blink::WebTouchEvent& event, |
+ InputEventAckState ack_result); |
// Cancel any touches, for example, when focus is lost. |
void CancelTouch(); |
@@ -59,6 +61,8 @@ class CONTENT_EXPORT TouchEmulator : public ui::GestureProviderClient { |
void PinchEnd(const blink::WebGestureEvent& event); |
void ScrollEnd(const blink::WebGestureEvent& event); |
+ void ForwardTouchEventToClient(); |
+ |
TouchEmulatorClient* const client_; |
ui::FilteredGestureProvider gesture_provider_; |
@@ -83,7 +87,8 @@ class CONTENT_EXPORT TouchEmulator : public ui::GestureProviderClient { |
bool shift_pressed_; |
blink::WebTouchEvent touch_event_; |
- bool touch_active_; |
+ int emulated_stream_active_sequence_count_; |
+ int native_stream_active_sequence_count_; |
// Whether we should suppress next fling cancel. This may happen when we |
// did not send fling start in pinch mode. |