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

Unified Diff: ui/aura/window.h

Issue 8450018: First shot at implementing drag&drop for Aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added missing test file 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/window.h
diff --git a/ui/aura/window.h b/ui/aura/window.h
index 485bcb41b5ea3b6a7df52550b665eb843546f619..ad6c1ff20c04ac70816b2376c5cb5263198ec83a 100644
--- a/ui/aura/window.h
+++ b/ui/aura/window.h
@@ -42,6 +42,7 @@ class MouseEvent;
class ToplevelWindowContainer;
class TouchEvent;
class WindowDelegate;
+class WindowDragDropDelegate;
class WindowObserver;
namespace internal {
@@ -90,6 +91,11 @@ class AURA_EXPORT Window : public ui::LayerDelegate {
void set_user_data(void* user_data) { user_data_ = user_data; }
void* user_data() const { return user_data_; }
+ WindowDragDropDelegate* drag_drop_delegate() { return drag_drop_delegate_; }
+ void set_drag_drop_delegate(WindowDragDropDelegate* drag_drop_delegate) {
+ drag_drop_delegate_ = drag_drop_delegate;
+ }
+
// Changes the visibility of the window.
void Show();
void Hide();
@@ -349,6 +355,9 @@ class AURA_EXPORT Window : public ui::LayerDelegate {
// implementation.
std::map<const char*, void*> prop_map_;
+ // Delegate for handling drag and drop operations.
+ WindowDragDropDelegate* drag_drop_delegate_;
Ben Goodger (Google) 2011/11/11 17:26:53 I think we should not add this directly to Window.
varunjain 2011/11/15 19:39:33 Done.
+
DISALLOW_COPY_AND_ASSIGN(Window);
};

Powered by Google App Engine
This is Rietveld 408576698