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

Side by Side Diff: content/browser/renderer_host/input/synthetic_gesture_controller_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/synthetic_gesture_controller.h" 5 #include "content/browser/renderer_host/input/synthetic_gesture_controller.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 14 matching lines...) Expand all
25 #include "content/browser/renderer_host/input/synthetic_touchscreen_pinch_gestur e.h" 25 #include "content/browser/renderer_host/input/synthetic_touchscreen_pinch_gestur e.h"
26 #include "content/browser/renderer_host/render_widget_host_delegate.h" 26 #include "content/browser/renderer_host/render_widget_host_delegate.h"
27 #include "content/common/input/synthetic_pinch_gesture_params.h" 27 #include "content/common/input/synthetic_pinch_gesture_params.h"
28 #include "content/common/input/synthetic_smooth_drag_gesture_params.h" 28 #include "content/common/input/synthetic_smooth_drag_gesture_params.h"
29 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h" 29 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h"
30 #include "content/common/input/synthetic_tap_gesture_params.h" 30 #include "content/common/input/synthetic_tap_gesture_params.h"
31 #include "content/public/test/mock_render_process_host.h" 31 #include "content/public/test/mock_render_process_host.h"
32 #include "content/public/test/test_browser_context.h" 32 #include "content/public/test/test_browser_context.h"
33 #include "content/test/test_render_view_host.h" 33 #include "content/test/test_render_view_host.h"
34 #include "testing/gtest/include/gtest/gtest.h" 34 #include "testing/gtest/include/gtest/gtest.h"
35 #include "third_party/WebKit/public/web/WebInputEvent.h" 35 #include "third_party/WebKit/public/platform/WebInputEvent.h"
36 #include "ui/gfx/geometry/point.h" 36 #include "ui/gfx/geometry/point.h"
37 #include "ui/gfx/geometry/point_f.h" 37 #include "ui/gfx/geometry/point_f.h"
38 #include "ui/gfx/geometry/vector2d.h" 38 #include "ui/gfx/geometry/vector2d.h"
39 #include "ui/gfx/geometry/vector2d_f.h" 39 #include "ui/gfx/geometry/vector2d_f.h"
40 40
41 using blink::WebInputEvent; 41 using blink::WebInputEvent;
42 using blink::WebMouseEvent; 42 using blink::WebMouseEvent;
43 using blink::WebMouseWheelEvent; 43 using blink::WebMouseWheelEvent;
44 using blink::WebTouchEvent; 44 using blink::WebTouchEvent;
45 using blink::WebTouchPoint; 45 using blink::WebTouchPoint;
(...skipping 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after
1468 EXPECT_TRUE(tap_target->GestureFinished()); 1468 EXPECT_TRUE(tap_target->GestureFinished());
1469 EXPECT_EQ(tap_target->position(), params.position); 1469 EXPECT_EQ(tap_target->position(), params.position);
1470 EXPECT_EQ(tap_target->GetDuration().InMilliseconds(), params.duration_ms); 1470 EXPECT_EQ(tap_target->GetDuration().InMilliseconds(), params.duration_ms);
1471 EXPECT_GE(GetTotalTime(), 1471 EXPECT_GE(GetTotalTime(),
1472 base::TimeDelta::FromMilliseconds(params.duration_ms)); 1472 base::TimeDelta::FromMilliseconds(params.duration_ms));
1473 } 1473 }
1474 1474
1475 } // namespace 1475 } // namespace
1476 1476
1477 } // namespace content 1477 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698