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

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
« no previous file with comments | « Source/core/clipboard/DraggedIsolatedFileSystem.h ('k') | Source/core/clipboard/Pasteboard.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..73a236426fd9ae5f0c2ec3cf65fcfd5806b5b542
--- /dev/null
+++ b/Source/core/clipboard/DraggedIsolatedFileSystem.cpp
@@ -0,0 +1,24 @@
+// Copyright 2015 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.
+
+#include "config.h"
+#include "core/clipboard/DraggedIsolatedFileSystem.h"
+
+namespace blink {
+
+DraggedIsolatedFileSystem::FileSystemIdPreparationCallback DraggedIsolatedFileSystem::s_prepareCallback = nullptr;
+
+void DraggedIsolatedFileSystem::init(DraggedIsolatedFileSystem::FileSystemIdPreparationCallback callback)
+{
+ ASSERT(!s_prepareCallback);
+ s_prepareCallback = callback;
+}
+
+void DraggedIsolatedFileSystem::prepareForDataObject(DataObject* dataObject, const String& filesystemId)
+{
+ ASSERT(s_prepareCallback);
+ (*s_prepareCallback)(dataObject, filesystemId);
+}
+
+}
« no previous file with comments | « Source/core/clipboard/DraggedIsolatedFileSystem.h ('k') | Source/core/clipboard/Pasteboard.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698