Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Unified Diff: ui/aura/client/drag_drop_client.h

Issue 8682029: Make drag and drop work on webpage. Also slightly modify drag drop workflow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: modified according to comments Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/aura/client/drag_drop_client.h
diff --git a/ui/aura/client/drag_drop_client.h b/ui/aura/client/drag_drop_client.h
index 68ed6ea5d0831f572deebbae4f6ace2c53e98b68..44cbb33711e03c60161b89b7b8eb103c900b65d0 100644
--- a/ui/aura/client/drag_drop_client.h
+++ b/ui/aura/client/drag_drop_client.h
@@ -22,8 +22,9 @@ class AURA_EXPORT DragDropClient {
public:
virtual ~DragDropClient() {}
- // Initiates a drag and drop session
- virtual void StartDragAndDrop(const ui::OSExchangeData& data,
+ // Initiates a drag and drop session. Returns the drag operation that was
+ // applied at the end of the drag drop session.
+ virtual int StartDragAndDrop(const ui::OSExchangeData& data,
int operation) = 0;
// Called when mouse is dragged during a drag and drop.
@@ -34,6 +35,9 @@ class AURA_EXPORT DragDropClient {
// Called when a drag and drop session is cancelled.
virtual void DragCancel() = 0;
+
+ // Returns true if a drag and drop session is in progress.
+ virtual bool IsDragDropInProgress() = 0;
};
} // namespace aura
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | ui/aura/client/window_drag_drop_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698