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

Unified Diff: content/browser/renderer_host/input/input_router_impl.h

Issue 48973005: Move TouchEvent timeout code to the TouchEventQueue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Handle no consumer Created 7 years 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/input/input_router_impl.h
diff --git a/content/browser/renderer_host/input/input_router_impl.h b/content/browser/renderer_host/input/input_router_impl.h
index 481422aa091117e78bf69de85e20d8992dbf7bab..913deae6e5c164897dfe82fd9545d7c11a2dfd9e 100644
--- a/content/browser/renderer_host/input/input_router_impl.h
+++ b/content/browser/renderer_host/input/input_router_impl.h
@@ -61,6 +61,7 @@ class CONTENT_EXPORT InputRouterImpl
const TouchEventWithLatencyInfo& touch_event) OVERRIDE;
virtual const NativeWebKeyboardEvent* GetLastKeyboardEvent() const OVERRIDE;
virtual bool ShouldForwardTouchEvent() const OVERRIDE;
+ virtual void OnViewUpdated(int view_flags) OVERRIDE;
// IPC::Listener
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
@@ -167,8 +168,6 @@ private:
void ProcessAckForOverscroll(const blink::WebInputEvent& event,
InputEventAckState ack_result);
- void HandleGestureScroll(const GestureEventWithLatencyInfo& gesture_event);
-
void SimulateTouchGestureWithMouse(
const MouseEventWithLatencyInfo& mouse_event);
@@ -234,6 +233,10 @@ private:
// not sent to the renderer.
bool has_touch_handler_;
+ // Whether touch ack timeout handling has been enabled via the command line.
+ bool touch_ack_timeout_enabled_;
+ size_t touch_ack_timeout_delay_ms_;
+
// The source of the ack within the scope of |ProcessInputEventAck()|.
// Defaults to ACK_SOURCE_NONE.
AckSource current_ack_source_;

Powered by Google App Engine
This is Rietveld 408576698