Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(329)

Side by Side Diff: content/common/input/event_with_latency_info_unittest.cc

Issue 2497033002: Break apart WebGestureEvent from WebInputEvent. (Closed)
Patch Set: Rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/common/input/event_with_latency_info.h ('k') | content/common/input/gesture_event_stream_validator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698