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
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index eff42ccb..cbc1c620 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -40,6 +40,7 @@
}
namespace WebKit {
+class WebGestureEvent;
class WebMouseEvent;
class WebTouchEvent;
}
@@ -413,6 +414,12 @@
// won't be sent to WebKit or trigger DidHandleMouseEvent().
virtual bool WillHandleMouseEvent(const WebKit::WebMouseEvent& event);
+ // Called by OnHandleInputEvent() to notify subclasses that a gesture event is
+ // about to be handled.
+ // Returns true if no further handling is needed. In that case, the event
+ // won't be sent to WebKit.
+ virtual bool WillHandleGestureEvent(const WebKit::WebGestureEvent& event);
+
// Called by OnHandleInputEvent() to notify subclasses that a mouse event was
// just handled.
virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {}