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

Unified Diff: ui/base/dragdrop/os_exchange_data.h

Issue 1964283002: MacViews: Implemented Drag & Drop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Forgot to add the test Created 4 years, 7 months 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/base/dragdrop/os_exchange_data.h
diff --git a/ui/base/dragdrop/os_exchange_data.h b/ui/base/dragdrop/os_exchange_data.h
index 5c237587c16216f35ba33894f1e69bb463c3d43f..1afb8668428de8888e4c720cd2c0354ae78183b6 100644
--- a/ui/base/dragdrop/os_exchange_data.h
+++ b/ui/base/dragdrop/os_exchange_data.h
@@ -20,6 +20,7 @@
#include "ui/base/clipboard/clipboard.h"
#include "ui/base/dragdrop/download_file_interface.h"
#include "ui/base/ui_base_export.h"
+#include "ui/events/event.h"
class GURL;
@@ -130,12 +131,17 @@ class UI_BASE_EXPORT OSExchangeData {
virtual bool HasHtml() const = 0;
#endif
-#if defined(USE_AURA)
+#if defined(USE_AURA) || defined(OS_MACOSX)
virtual void SetDragImage(const gfx::ImageSkia& image,
const gfx::Vector2d& cursor_offset) = 0;
virtual const gfx::ImageSkia& GetDragImage() const = 0;
virtual const gfx::Vector2d& GetDragImageOffset() const = 0;
#endif
+
+#if defined(OS_MACOSX)
+ virtual void SetEvent(const Event& event) = 0;
+ virtual const Event* GetEvent() const = 0;
+#endif
};
// Creates the platform specific Provider.

Powered by Google App Engine
This is Rietveld 408576698