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

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: 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..19049147e444052afe5376384b9c999612f163b6 100644
--- a/ui/base/dragdrop/os_exchange_data.h
+++ b/ui/base/dragdrop/os_exchange_data.h
@@ -15,11 +15,13 @@
#include <objidl.h>
#endif
+#include "base/event_types.h"
#include "base/files/file_path.h"
#include "base/macros.h"
#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;
@@ -136,6 +138,13 @@ class UI_BASE_EXPORT OSExchangeData {
virtual const gfx::ImageSkia& GetDragImage() const = 0;
virtual const gfx::Vector2d& GetDragImageOffset() const = 0;
#endif
+
+#if defined(OS_MACOSX)
+ virtual void SetDragImage(const gfx::ImageSkia& image) = 0;
tapted 2016/05/11 12:36:15 it's probably nicer to expose the existing Aura me
spqchan 2016/05/23 21:26:21 I added defined(OS_MACOSX), I ran into some troubl
+ virtual const gfx::ImageSkia& GetDragImage() const = 0;
+ virtual void SetNativeEvent(const base::NativeEvent& event) = 0;
+ virtual const base::NativeEvent& GetNativeEvent() const = 0;
+#endif
};
// Creates the platform specific Provider.

Powered by Google App Engine
This is Rietveld 408576698