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

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

Issue 183923034: Disable the touch ack timeout for touch-action:none (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Final cleanup pass Created 6 years, 10 months 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
« no previous file with comments | « no previous file | content/browser/renderer_host/input/input_router_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 68b52f0193bb46b6b0648ee05dbda3047c0a06eb..ed39947ed071a0f91381f12226a5b08f8bde7467 100644
--- a/content/browser/renderer_host/input/input_router_impl.h
+++ b/content/browser/renderer_host/input/input_router_impl.h
@@ -125,7 +125,7 @@ private:
void OnMsgMoveCaretAck();
void OnSelectRangeAck();
void OnHasTouchEventHandlers(bool has_handlers);
- void OnSetTouchAction(content::TouchAction touch_action);
+ void OnSetTouchAction(TouchAction touch_action);
// Indicates the source of an ack provided to |ProcessInputEventAck()|.
// The source is tracked by |current_ack_source_|, which aids in ack routing.
@@ -174,6 +174,12 @@ private:
void SimulateTouchGestureWithMouse(
const MouseEventWithLatencyInfo& mouse_event);
+ // Called when a touch timeout-affecting bit has changed, in turn toggling the
+ // touch ack timeout feature of the |touch_event_queue_| as appropriate. Input
+ // to that determination includes current view properties, the allowed touch
+ // action and the command-line configured |touch_ack_timeout_supported_|.
+ void UpdateTouchAckTimeoutEnabled();
+
bool IsInOverscrollGesture() const;
int routing_id() const { return routing_id_; }
@@ -232,9 +238,12 @@ private:
KeyQueue key_queue_;
// Whether touch ack timeout handling has been enabled via the command line.
- bool touch_ack_timeout_enabled_;
+ bool touch_ack_timeout_supported_;
size_t touch_ack_timeout_delay_ms_;
+ // Cached flags from |OnViewUpdated()|, defaults to 0.
+ int current_view_flags_;
+
// The source of the ack within the scope of |ProcessInputEventAck()|.
// Defaults to ACK_SOURCE_NONE.
AckSource current_ack_source_;
« no previous file with comments | « no previous file | content/browser/renderer_host/input/input_router_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698