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

Side by Side Diff: content/browser/renderer_host/input/passthrough_touch_event_queue.h

Issue 2826673005: Fix recursion in handling touch input events acks. (Closed)
Patch Set: Rebase Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 CONTENT_BROWSER_RENDERER_HOST_INPUT_PASSTHROUGH_TOUCH_EVENT_QUEUE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_PASSTHROUGH_TOUCH_EVENT_QUEUE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_PASSTHROUGH_TOUCH_EVENT_QUEUE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_PASSTHROUGH_TOUCH_EVENT_QUEUE_H_
7 7
8 #include "content/browser/renderer_host/input/touch_event_queue.h" 8 #include "content/browser/renderer_host/input/touch_event_queue.h"
9 9
10 #include <set> 10 #include <set>
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // Suppresses TouchMove's within a slop region when a sequence has not yet 119 // Suppresses TouchMove's within a slop region when a sequence has not yet
120 // been preventDefaulted. 120 // been preventDefaulted.
121 std::unique_ptr<TouchMoveSlopSuppressor> touchmove_slop_suppressor_; 121 std::unique_ptr<TouchMoveSlopSuppressor> touchmove_slop_suppressor_;
122 122
123 // Optional handler for timed-out touch event acks. 123 // Optional handler for timed-out touch event acks.
124 std::unique_ptr<TouchTimeoutHandler> timeout_handler_; 124 std::unique_ptr<TouchTimeoutHandler> timeout_handler_;
125 125
126 // Whether touch events should be sent as uncancelable or not. 126 // Whether touch events should be sent as uncancelable or not.
127 bool send_touch_events_async_; 127 bool send_touch_events_async_;
128 128
129 bool processing_acks_;
130
129 // Event is saved to compare pointer positions for new touchmove events. 131 // Event is saved to compare pointer positions for new touchmove events.
130 std::unique_ptr<blink::WebTouchEvent> last_sent_touchevent_; 132 std::unique_ptr<blink::WebTouchEvent> last_sent_touchevent_;
131 133
132 // Stores outstanding touches that have been sent to the renderer but have 134 // Stores outstanding touches that have been sent to the renderer but have
133 // not yet been ack'd by the renderer. The set is explicitly ordered based 135 // not yet been ack'd by the renderer. The set is explicitly ordered based
134 // on the unique touch event id. 136 // on the unique touch event id.
135 std::set<TouchEventWithLatencyInfoAndAckState> outstanding_touches_; 137 std::set<TouchEventWithLatencyInfoAndAckState> outstanding_touches_;
136 138
137 DISALLOW_COPY_AND_ASSIGN(PassthroughTouchEventQueue); 139 DISALLOW_COPY_AND_ASSIGN(PassthroughTouchEventQueue);
138 }; 140 };
139 141
140 } // namespace content 142 } // namespace content
141 143
142 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_PASSTHROUGH_TOUCH_EVENT_QUEUE_H_ 144 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_PASSTHROUGH_TOUCH_EVENT_QUEUE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698