diff options
author | varunjain@chromium.org <varunjain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-07 12:23:24 +0000 |
---|---|---|
committer | varunjain@chromium.org <varunjain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-07 12:23:24 +0000 |
commit | 41d8685c5d9bba8921bc99dfb75a0f7a8d05f774 (patch) | |
tree | ad92883824e8ffc874f97400aa50fbf417e6ffdd /content/browser/renderer_host/test_render_view_host.cc | |
parent | 41561ca31b9de2e4c1c5fe80aeb86bedb7403536 (diff) | |
download | chromium_src-41d8685c5d9bba8921bc99dfb75a0f7a8d05f774.zip chromium_src-41d8685c5d9bba8921bc99dfb75a0f7a8d05f774.tar.gz chromium_src-41d8685c5d9bba8921bc99dfb75a0f7a8d05f774.tar.bz2 |
Plumb drag event info through from the renderer. This CL appends the following
two pieces of information to the StartDragging IPC:
1. Whether the drag was started by a touch event or mouse event
2. The location of drag start. This information is needed for chromeos and was
currently being read from the platform. But that is not possible (also not
correct) for touch based drag/drop. So we pass this information from the
renderer.
BUG=114755
Review URL: https://chromiumcodereview.appspot.com/11369102
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166401 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/renderer_host/test_render_view_host.cc')
-rw-r--r-- | content/browser/renderer_host/test_render_view_host.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/content/browser/renderer_host/test_render_view_host.cc b/content/browser/renderer_host/test_render_view_host.cc index c2cb5d1..193b654 100644 --- a/content/browser/renderer_host/test_render_view_host.cc +++ b/content/browser/renderer_host/test_render_view_host.cc @@ -355,7 +355,9 @@ void TestRenderViewHost::SimulateWasShown() { void TestRenderViewHost::TestOnMsgStartDragging( const WebDropData& drop_data) { WebKit::WebDragOperationsMask drag_operation = WebKit::WebDragOperationEvery; - OnMsgStartDragging(drop_data, drag_operation, SkBitmap(), gfx::Vector2d()); + DragEventSourceInfo event_info; + OnMsgStartDragging(drop_data, drag_operation, SkBitmap(), gfx::Vector2d(), + event_info); } void TestRenderViewHost::set_simulate_fetch_via_proxy(bool proxy) { |