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 | 9 |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| 11 #include "base/timer/timer.h" |
11 #include "content/browser/renderer_host/event_with_latency_info.h" | 12 #include "content/browser/renderer_host/event_with_latency_info.h" |
12 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
13 #include "content/common/input/input_event_ack_state.h" | 14 #include "content/common/input/input_event_ack_state.h" |
14 #include "third_party/WebKit/public/web/WebInputEvent.h" | 15 #include "third_party/WebKit/public/web/WebInputEvent.h" |
15 | 16 |
16 namespace content { | 17 namespace content { |
17 | 18 |
18 // The duration in which a ScrollEnd will be sent after the last | 19 // The duration in which a ScrollEnd will be sent after the last |
19 // ScrollUpdate was sent for wheel based gesture scrolls. | 20 // ScrollUpdate was sent for wheel based gesture scrolls. |
20 // This value is used only if |enable_scroll_latching_| is true. | 21 // This value is used only if |enable_scroll_latching_| is true. |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 102 |
102 int64_t scroll_transaction_ms_; | 103 int64_t scroll_transaction_ms_; |
103 blink::WebGestureDevice scrolling_device_; | 104 blink::WebGestureDevice scrolling_device_; |
104 | 105 |
105 DISALLOW_COPY_AND_ASSIGN(MouseWheelEventQueue); | 106 DISALLOW_COPY_AND_ASSIGN(MouseWheelEventQueue); |
106 }; | 107 }; |
107 | 108 |
108 } // namespace content | 109 } // namespace content |
109 | 110 |
110 #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 |