OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/common/input/event_with_latency_info.h" | 5 #include "content/common/input/event_with_latency_info.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 #include "third_party/WebKit/public/web/WebInputEvent.h" | 10 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
11 | 11 |
12 using blink::WebGestureEvent; | 12 using blink::WebGestureEvent; |
13 using blink::WebInputEvent; | 13 using blink::WebInputEvent; |
14 using blink::WebMouseEvent; | 14 using blink::WebMouseEvent; |
15 using blink::WebMouseWheelEvent; | 15 using blink::WebMouseWheelEvent; |
16 using blink::WebTouchEvent; | 16 using blink::WebTouchEvent; |
17 using blink::WebTouchPoint; | 17 using blink::WebTouchPoint; |
18 using std::numeric_limits; | 18 using std::numeric_limits; |
19 | 19 |
20 namespace content { | 20 namespace content { |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 MouseWheelEventWithLatencyInfo mouse_wheel_1 = CreateMouseWheel(2, 2); | 360 MouseWheelEventWithLatencyInfo mouse_wheel_1 = CreateMouseWheel(2, 2); |
361 mouse_wheel_1.event.timeStampSeconds = 10.0; | 361 mouse_wheel_1.event.timeStampSeconds = 10.0; |
362 | 362 |
363 EXPECT_TRUE(CanCoalesce(mouse_wheel_0, mouse_wheel_1)); | 363 EXPECT_TRUE(CanCoalesce(mouse_wheel_0, mouse_wheel_1)); |
364 Coalesce(mouse_wheel_1, &mouse_wheel_0); | 364 Coalesce(mouse_wheel_1, &mouse_wheel_0); |
365 EXPECT_EQ(10.0, mouse_wheel_0.event.timeStampSeconds); | 365 EXPECT_EQ(10.0, mouse_wheel_0.event.timeStampSeconds); |
366 } | 366 } |
367 | 367 |
368 } // namespace | 368 } // namespace |
369 } // namespace content | 369 } // namespace content |
OLD | NEW |