summaryrefslogtreecommitdiffstats
path: root/content/common/drag_traits.h
diff options
context:
space:
mode:
authorvarunjain@chromium.org <varunjain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-07 12:23:24 +0000
committervarunjain@chromium.org <varunjain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-07 12:23:24 +0000
commit41d8685c5d9bba8921bc99dfb75a0f7a8d05f774 (patch)
treead92883824e8ffc874f97400aa50fbf417e6ffdd /content/common/drag_traits.h
parent41561ca31b9de2e4c1c5fe80aeb86bedb7403536 (diff)
downloadchromium_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/common/drag_traits.h')
-rw-r--r--content/common/drag_traits.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/content/common/drag_traits.h b/content/common/drag_traits.h
index ccd841b..6b693d8 100644
--- a/content/common/drag_traits.h
+++ b/content/common/drag_traits.h
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "content/common/drag_event_source_info.h"
#include "content/public/common/common_param_traits.h"
#include "ipc/ipc_message_macros.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h"
@@ -31,3 +32,10 @@ IPC_STRUCT_TRAITS_BEGIN(WebDropData)
IPC_STRUCT_TRAITS_MEMBER(file_contents)
IPC_STRUCT_TRAITS_MEMBER(custom_data)
IPC_STRUCT_TRAITS_END()
+
+IPC_ENUM_TRAITS(ui::DragDropTypes::DragEventSource)
+
+IPC_STRUCT_TRAITS_BEGIN(content::DragEventSourceInfo)
+ IPC_STRUCT_TRAITS_MEMBER(event_location)
+ IPC_STRUCT_TRAITS_MEMBER(event_source)
+IPC_STRUCT_TRAITS_END()