| Index: content/public/test/browser_test_utils.cc
|
| diff --git a/content/public/test/browser_test_utils.cc b/content/public/test/browser_test_utils.cc
|
| index 61aa5f504ff156cc612c3aa413b3b7b0f197aacd..6ac4f13a9e79ed51e1c3ef7ff26c05d70e011fd0 100644
|
| --- a/content/public/test/browser_test_utils.cc
|
| +++ b/content/public/test/browser_test_utils.cc
|
| @@ -408,6 +408,20 @@ void SimulateTapAt(WebContents* web_contents, const gfx::Point& point) {
|
| tap.type = blink::WebGestureEvent::GestureTap;
|
| tap.x = point.x();
|
| tap.y = point.y();
|
| + tap.modifiers = blink::WebInputEvent::ControlKey;
|
| + RenderWidgetHostImpl* widget_host =
|
| + RenderWidgetHostImpl::From(web_contents->GetRenderViewHost());
|
| + widget_host->ForwardGestureEvent(tap);
|
| +}
|
| +
|
| +void SimulateTapWithModifiersAt(WebContents* web_contents,
|
| + unsigned modifiers,
|
| + const gfx::Point& point) {
|
| + blink::WebGestureEvent tap;
|
| + tap.type = blink::WebGestureEvent::GestureTap;
|
| + tap.x = point.x();
|
| + tap.y = point.y();
|
| + tap.modifiers = modifiers;
|
| RenderWidgetHostImpl* widget_host =
|
| RenderWidgetHostImpl::From(web_contents->GetRenderViewHost());
|
| widget_host->ForwardGestureEvent(tap);
|
|
|