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

Unified Diff: ui/aura/drag_drop_controller.h

Issue 8450018: First shot at implementing drag&drop for Aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor changes 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/drag_drop_controller.h
diff --git a/ui/aura/drag_drop_controller.h b/ui/aura/drag_drop_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..8f8911ca7f9b3fb37bd682061a47b335599f9471
--- /dev/null
+++ b/ui/aura/drag_drop_controller.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_AURA_DRAG_DROP_CONTROLLER_H_
+#define UI_AURA_DRAG_DROP_CONTROLLER_H_
+#pragma once
+
+#include "ui/aura/aura_export.h"
+#include "ui/aura/event.h"
+#include "ui/base/dragdrop/os_exchange_data.h"
+#include "ui/gfx/point.h"
+
+namespace aura {
+
+class MouseEvent;
+
+class AURA_EXPORT DragDropController {
+ public:
+ virtual ~DragDropController() {}
+
+ virtual void StartDragAndDrop(const ui::OSExchangeData& data,
+ int operation,
+ const gfx::Point& location) = 0;
+
+ virtual void DragUpdate(const MouseEvent& event) = 0;
+
+ virtual void Drop(const MouseEvent& event) = 0;
+};
+
+} // namespace aura
+
+#endif // UI_AURA_DRAG_DROP_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698