OLD | NEW |
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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // current sequence. This is only used when the event is synthetically | 114 // current sequence. This is only used when the event is synthetically |
115 // cancelled after a touch timeout. | 115 // cancelled after a touch timeout. |
116 bool drop_remaining_touches_in_sequence_; | 116 bool drop_remaining_touches_in_sequence_; |
117 | 117 |
118 // Optional handler for timed-out touch event acks. | 118 // Optional handler for timed-out touch event acks. |
119 std::unique_ptr<TouchTimeoutHandler> timeout_handler_; | 119 std::unique_ptr<TouchTimeoutHandler> timeout_handler_; |
120 | 120 |
121 // Whether touch events should be sent as uncancelable or not. | 121 // Whether touch events should be sent as uncancelable or not. |
122 bool send_touch_events_async_; | 122 bool send_touch_events_async_; |
123 | 123 |
| 124 bool processing_acks_; |
| 125 |
124 // Event is saved to compare pointer positions for new touchmove events. | 126 // Event is saved to compare pointer positions for new touchmove events. |
125 std::unique_ptr<blink::WebTouchEvent> last_sent_touchevent_; | 127 std::unique_ptr<blink::WebTouchEvent> last_sent_touchevent_; |
126 | 128 |
127 // Stores outstanding touches that have been sent to the renderer but have | 129 // Stores outstanding touches that have been sent to the renderer but have |
128 // not yet been ack'd by the renderer. The set is explicitly ordered based | 130 // not yet been ack'd by the renderer. The set is explicitly ordered based |
129 // on the unique touch event id. | 131 // on the unique touch event id. |
130 std::set<TouchEventWithLatencyInfoAndAckState> outstanding_touches_; | 132 std::set<TouchEventWithLatencyInfoAndAckState> outstanding_touches_; |
131 | 133 |
132 DISALLOW_COPY_AND_ASSIGN(PassthroughTouchEventQueue); | 134 DISALLOW_COPY_AND_ASSIGN(PassthroughTouchEventQueue); |
133 }; | 135 }; |
134 | 136 |
135 } // namespace content | 137 } // namespace content |
136 | 138 |
137 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_PASSTHROUGH_TOUCH_EVENT_QUEUE_H_ | 139 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_PASSTHROUGH_TOUCH_EVENT_QUEUE_H_ |
OLD | NEW |