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

Side by Side Diff: content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc

Issue 2478423002: Rename SyntheticPointer to SyntheticPointerDriver (Closed)
Patch Set: rename Created 4 years 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
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/renderer_host/input/synthetic_mouse_driver.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
11 #include <utility> 11 #include <utility>
12 12
13 #include "base/bind.h" 13 #include "base/bind.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "content/browser/renderer_host/input/synthetic_gesture.h" 15 #include "content/browser/renderer_host/input/synthetic_gesture.h"
16 #include "content/browser/renderer_host/input/synthetic_gesture_target.h" 16 #include "content/browser/renderer_host/input/synthetic_gesture_target.h"
17 #include "content/browser/renderer_host/input/synthetic_pinch_gesture.h" 17 #include "content/browser/renderer_host/input/synthetic_pinch_gesture.h"
18 #include "content/browser/renderer_host/input/synthetic_pointer_action.h" 18 #include "content/browser/renderer_host/input/synthetic_pointer_action.h"
19 #include "content/browser/renderer_host/input/synthetic_smooth_drag_gesture.h" 19 #include "content/browser/renderer_host/input/synthetic_smooth_drag_gesture.h"
20 #include "content/browser/renderer_host/input/synthetic_smooth_move_gesture.h" 20 #include "content/browser/renderer_host/input/synthetic_smooth_move_gesture.h"
21 #include "content/browser/renderer_host/input/synthetic_smooth_scroll_gesture.h" 21 #include "content/browser/renderer_host/input/synthetic_smooth_scroll_gesture.h"
22 #include "content/browser/renderer_host/input/synthetic_tap_gesture.h" 22 #include "content/browser/renderer_host/input/synthetic_tap_gesture.h"
23 #include "content/browser/renderer_host/input/synthetic_touch_pointer.h"
24 #include "content/browser/renderer_host/input/synthetic_touchpad_pinch_gesture.h " 23 #include "content/browser/renderer_host/input/synthetic_touchpad_pinch_gesture.h "
25 #include "content/browser/renderer_host/input/synthetic_touchscreen_pinch_gestur e.h" 24 #include "content/browser/renderer_host/input/synthetic_touchscreen_pinch_gestur e.h"
26 #include "content/browser/renderer_host/render_widget_host_delegate.h" 25 #include "content/browser/renderer_host/render_widget_host_delegate.h"
27 #include "content/common/input/synthetic_pinch_gesture_params.h" 26 #include "content/common/input/synthetic_pinch_gesture_params.h"
28 #include "content/common/input/synthetic_smooth_drag_gesture_params.h" 27 #include "content/common/input/synthetic_smooth_drag_gesture_params.h"
29 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h" 28 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h"
30 #include "content/common/input/synthetic_tap_gesture_params.h" 29 #include "content/common/input/synthetic_tap_gesture_params.h"
31 #include "content/public/test/mock_render_process_host.h" 30 #include "content/public/test/mock_render_process_host.h"
32 #include "content/public/test/test_browser_context.h" 31 #include "content/public/test/test_browser_context.h"
33 #include "content/test/test_render_view_host.h" 32 #include "content/test/test_render_view_host.h"
(...skipping 1434 matching lines...) Expand 10 before | Expand all | Expand 10 after
1468 EXPECT_TRUE(tap_target->GestureFinished()); 1467 EXPECT_TRUE(tap_target->GestureFinished());
1469 EXPECT_EQ(tap_target->position(), params.position); 1468 EXPECT_EQ(tap_target->position(), params.position);
1470 EXPECT_EQ(tap_target->GetDuration().InMilliseconds(), params.duration_ms); 1469 EXPECT_EQ(tap_target->GetDuration().InMilliseconds(), params.duration_ms);
1471 EXPECT_GE(GetTotalTime(), 1470 EXPECT_GE(GetTotalTime(),
1472 base::TimeDelta::FromMilliseconds(params.duration_ms)); 1471 base::TimeDelta::FromMilliseconds(params.duration_ms));
1473 } 1472 }
1474 1473
1475 } // namespace 1474 } // namespace
1476 1475
1477 } // namespace content 1476 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/renderer_host/input/synthetic_mouse_driver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698