OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_MOUSE_WHEEL_EVENT_QUEUE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_MOUSE_WHEEL_EVENT_QUEUE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_MOUSE_WHEEL_EVENT_QUEUE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_MOUSE_WHEEL_EVENT_QUEUE_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 std::deque<std::unique_ptr<QueuedWebMouseWheelEvent>> wheel_queue_; | 83 std::deque<std::unique_ptr<QueuedWebMouseWheelEvent>> wheel_queue_; |
84 std::unique_ptr<QueuedWebMouseWheelEvent> event_sent_for_gesture_ack_; | 84 std::unique_ptr<QueuedWebMouseWheelEvent> event_sent_for_gesture_ack_; |
85 | 85 |
86 // True if a non-synthetic GSB needs to be sent before a GSU is sent. | 86 // True if a non-synthetic GSB needs to be sent before a GSU is sent. |
87 bool needs_scroll_begin_; | 87 bool needs_scroll_begin_; |
88 | 88 |
89 // True if a non-synthetic GSE needs to be sent because a non-synthetic | 89 // True if a non-synthetic GSE needs to be sent because a non-synthetic |
90 // GSB has been sent in the past. | 90 // GSB has been sent in the past. |
91 bool needs_scroll_end_; | 91 bool needs_scroll_end_; |
92 | 92 |
93 // True if the touchpad and wheel scroll latching is enabled. | 93 // True if the touchpad and wheel scroll latching flag is enabled. |
94 bool enable_scroll_latching_; | 94 bool enable_scroll_latching_; |
95 | 95 |
| 96 // True if the async wheel events flag is enabled. |
| 97 bool enable_async_wheel_events_; |
| 98 |
| 99 // True if the ack for the first wheel event in a scroll sequence is not |
| 100 // consumed. This lets us to send the rest of the wheel events in the sequence |
| 101 // as non-blocking. |
| 102 bool send_wheel_events_async_; |
| 103 |
96 blink::WebGestureDevice scrolling_device_; | 104 blink::WebGestureDevice scrolling_device_; |
97 | 105 |
98 DISALLOW_COPY_AND_ASSIGN(MouseWheelEventQueue); | 106 DISALLOW_COPY_AND_ASSIGN(MouseWheelEventQueue); |
99 }; | 107 }; |
100 | 108 |
101 } // namespace content | 109 } // namespace content |
102 | 110 |
103 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_MOUSE_WHEEL_EVENT_QUEUE_H_ | 111 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_MOUSE_WHEEL_EVENT_QUEUE_H_ |
OLD | NEW |