Chromium Code Reviews| Index: content/browser/renderer_host/input/mouse_wheel_event_queue.h |
| diff --git a/content/browser/renderer_host/input/mouse_wheel_event_queue.h b/content/browser/renderer_host/input/mouse_wheel_event_queue.h |
| index b5ad7f2dcb3829af51e750325f346c33dea0575c..17ee8db2b0add05cc769476adc7816eb439a73f0 100644 |
| --- a/content/browser/renderer_host/input/mouse_wheel_event_queue.h |
| +++ b/content/browser/renderer_host/input/mouse_wheel_event_queue.h |
| @@ -17,7 +17,9 @@ namespace content { |
| // The duration in which a ScrollEnd will be sent after the last |
| // ScrollUpdate was sent for wheel based gesture scrolls. |
| -const int64_t kDefaultWheelScrollTransactionMs = 100; |
| +// Current set the default wheel transaction to 0ms until |
|
tdresser
2016/03/09 14:30:05
"Current set" -> "Set"
dtapuska
2016/03/09 16:12:29
Done.
|
| +// crbug.com/526463 is fully implemented. |
| +const int64_t kDefaultWheelScrollTransactionMs = 0; // 100; |
| class QueuedWebMouseWheelEvent; |
| @@ -76,16 +78,18 @@ class CONTENT_EXPORT MouseWheelEventQueue { |
| private: |
| void TryForwardNextEventToRenderer(); |
| - void SendScrollEnd(blink::WebGestureEvent update_event); |
| - void SendGesture(const GestureEventWithLatencyInfo& gesture); |
| + void SendScrollEnd(blink::WebGestureEvent update_event, bool synthetic); |
| + void SendScrollBegin(const GestureEventWithLatencyInfo& gesture_update, |
| + bool synthetic); |
| MouseWheelEventQueueClient* client_; |
| - bool needs_scroll_begin_; |
| base::OneShotTimer scroll_end_timer_; |
| typedef std::deque<QueuedWebMouseWheelEvent*> WheelEventQueue; |
| WheelEventQueue wheel_queue_; |
| scoped_ptr<QueuedWebMouseWheelEvent> event_sent_for_gesture_ack_; |
| + bool needs_scroll_begin_; |
|
tdresser
2016/03/09 14:30:06
Can we add a comment on these?
dtapuska
2016/03/09 16:12:29
Done.
|
| + bool needs_scroll_end_; |
| bool send_gestures_; |
| int64_t scroll_transaction_ms_; |
| blink::WebGestureDevice scrolling_device_; |