summaryrefslogtreecommitdiffstats
path: root/ui/aura/client
diff options
context:
space:
mode:
authorsadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-22 05:49:27 +0000
committersadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-22 05:49:27 +0000
commite3a37da5433dced78a29befc72fa69512ff96371 (patch)
treeef09ae2e3dfc26008d05c77892d75cd9451d9eb1 /ui/aura/client
parent2ea5c99476f2a6c32ad2370e6fab9cd5b30240d3 (diff)
downloadchromium_src-e3a37da5433dced78a29befc72fa69512ff96371.zip
chromium_src-e3a37da5433dced78a29befc72fa69512ff96371.tar.gz
chromium_src-e3a37da5433dced78a29befc72fa69512ff96371.tar.bz2
ash: Allow dragging using touch/gesture events.
This is the first step towards making it possible to drag with touch/gesture events. There will be subsequent CLs to make sure the correct touch-id is used for dragging, and update the drag-image position to be slightly above the touch-point so that it doesn't get obscured by the touch-finger. BUG=114752 TEST=mouse-event dragging should be covered by existing tests. Tests for touch-events will be added in subsequent CLs. Review URL: https://chromiumcodereview.appspot.com/9418043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122982 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/client')
-rw-r--r--ui/aura/client/drag_drop_client.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/ui/aura/client/drag_drop_client.h b/ui/aura/client/drag_drop_client.h
index cb48550..5e51221 100644
--- a/ui/aura/client/drag_drop_client.h
+++ b/ui/aura/client/drag_drop_client.h
@@ -23,15 +23,17 @@ class AURA_EXPORT DragDropClient {
virtual ~DragDropClient() {}
// Initiates a drag and drop session. Returns the drag operation that was
- // applied at the end of the drag drop session.
+ // applied at the end of the drag drop session. |root_location| is in the
+ // RootWindow's coordinate system.
virtual int StartDragAndDrop(const ui::OSExchangeData& data,
- int operation) = 0;
+ const gfx::Point& root_location,
+ int operation) = 0;
// Called when mouse is dragged during a drag and drop.
- virtual void DragUpdate(aura::Window* target, const MouseEvent& event) = 0;
+ virtual void DragUpdate(aura::Window* target, const LocatedEvent& event) = 0;
// Called when mouse is released during a drag and drop.
- virtual void Drop(aura::Window* target, const MouseEvent& event) = 0;
+ virtual void Drop(aura::Window* target, const LocatedEvent& event) = 0;
// Called when a drag and drop session is cancelled.
virtual void DragCancel() = 0;