summaryrefslogtreecommitdiffstats
path: root/ash/drag_drop/drag_drop_controller.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ash/drag_drop/drag_drop_controller.cc')
-rw-r--r--ash/drag_drop/drag_drop_controller.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/ash/drag_drop/drag_drop_controller.cc b/ash/drag_drop/drag_drop_controller.cc
index cf6135e..4248099 100644
--- a/ash/drag_drop/drag_drop_controller.cc
+++ b/ash/drag_drop/drag_drop_controller.cc
@@ -106,6 +106,17 @@ int DragDropController::StartDragAndDrop(
if (IsDragDropInProgress())
return 0;
+#if defined(OS_WIN)
+ // TODO(win_ash): need to figure out how this will work in Metro, since
+ // OSExchangeDataProviderAura isn't used in Windows builds. Two alternatives:
+ // 1) Use OSExchangeDataProviderAura in Ash and OSExchangeDataProviderWin
+ // elsewhere. This will complicate creating an ui::OSExchangeData to pass
+ // in more context.
+ // 2) Add methods to get the image and offset in the base interface of these
+ // implementations to get to this data here.
+ NOTIMPLEMENTED();
+ return 0;
+#else
const ui::OSExchangeDataProviderAura& provider =
static_cast<const ui::OSExchangeDataProviderAura&>(data.provider());
// We do not support touch drag/drop without a drag image.
@@ -180,6 +191,7 @@ int DragDropController::StartDragAndDrop(
drag_source_window_->RemoveObserver(this);
drag_source_window_ = NULL;
}
+#endif
return drag_operation_;
}