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 #include "content/browser/renderer_host/input/mouse_wheel_event_queue.h" | 5 #include "content/browser/renderer_host/input/mouse_wheel_event_queue.h" |
6 | 6 |
7 #include "base/metrics/histogram_macros.h" | 7 #include "base/metrics/histogram_macros.h" |
8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
9 #include "base/trace_event/trace_event.h" | 9 #include "base/trace_event/trace_event.h" |
| 10 #include "content/common/input/web_input_event_traits.h" |
10 | 11 |
11 using blink::WebGestureEvent; | 12 using blink::WebGestureEvent; |
12 using blink::WebInputEvent; | 13 using blink::WebInputEvent; |
13 using blink::WebMouseWheelEvent; | 14 using blink::WebMouseWheelEvent; |
14 using ui::LatencyInfo; | 15 using ui::LatencyInfo; |
15 | 16 |
16 namespace content { | 17 namespace content { |
17 | 18 |
18 // This class represents a single queued mouse wheel event. Its main use | 19 // This class represents a single queued mouse wheel event. Its main use |
19 // is that it is reported via trace events. | 20 // is that it is reported via trace events. |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 scroll_begin.data.scrollBegin.targetViewport = false; | 284 scroll_begin.data.scrollBegin.targetViewport = false; |
284 scroll_begin.data.scrollBegin.deltaHintUnits = | 285 scroll_begin.data.scrollBegin.deltaHintUnits = |
285 gesture_update.data.scrollUpdate.deltaUnits; | 286 gesture_update.data.scrollUpdate.deltaUnits; |
286 | 287 |
287 needs_scroll_begin_ = false; | 288 needs_scroll_begin_ = false; |
288 needs_scroll_end_ = true; | 289 needs_scroll_end_ = true; |
289 client_->ForwardGestureEventWithLatencyInfo(scroll_begin, ui::LatencyInfo()); | 290 client_->ForwardGestureEventWithLatencyInfo(scroll_begin, ui::LatencyInfo()); |
290 } | 291 } |
291 | 292 |
292 } // namespace content | 293 } // namespace content |
OLD | NEW |