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

Unified Diff: Source/core/clipboard/DraggedIsolatedFileSystem.cpp

Issue 925913002: Fixed WebDragData's wrong dependency. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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: Source/core/clipboard/DraggedIsolatedFileSystem.cpp
diff --git a/Source/core/clipboard/DraggedIsolatedFileSystem.cpp b/Source/core/clipboard/DraggedIsolatedFileSystem.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..159bf146768dfe2042ea87c8b380d70b1adce94a
--- /dev/null
+++ b/Source/core/clipboard/DraggedIsolatedFileSystem.cpp
@@ -0,0 +1,20 @@
+#include "config.h"
tkent 2015/02/23 23:40:40 Add the 3-line copyright header.
tasak 2015/02/25 08:15:24 Done.
+#include "core/clipboard/DraggedIsolatedFileSystem.h"
+
+namespace blink {
+
+void (*DraggedIsolatedFileSystem::m_prepareMethod)(DataObject*, const String&) = nullptr;
+
+void DraggedIsolatedFileSystem::init(void (*prepareMethod)(DataObject*, const String&))
+{
+ ASSERT(!m_prepareMethod);
+ m_prepareMethod = prepareMethod;
+}
+
+void DraggedIsolatedFileSystem::prepareForDataObject(DataObject* dataObject, const String& filesystemId)
+{
+ ASSERT(m_prepareMethod);
+ (*m_prepareMethod)(dataObject, filesystemId);
+}
+
+}

Powered by Google App Engine
This is Rietveld 408576698