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

Unified Diff: Source/core/inspector/InspectorFrontendHost.cpp

Issue 57373002: DevTools: Add support for adding folders to workspace with drag and drop (renderer part) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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/inspector/InspectorFrontendHost.cpp
diff --git a/Source/core/inspector/InspectorFrontendHost.cpp b/Source/core/inspector/InspectorFrontendHost.cpp
index c4f26cedf06f70d4af2d508179da10d52b054a69..b53b3f51a219e1dac37c2b69547ba184291fbb2a 100644
--- a/Source/core/inspector/InspectorFrontendHost.cpp
+++ b/Source/core/inspector/InspectorFrontendHost.cpp
@@ -214,6 +214,19 @@ PassRefPtr<DOMFileSystem> InspectorFrontendHost::isolatedFileSystem(const String
return DOMFileSystem::create(context, fileSystemName, FileSystemTypeIsolated, KURL(ParsedURLString, rootURL));
}
+void InspectorFrontendHost::upgradeDraggedFileSystemPermissions(DOMFileSystem* domFileSystem)
+{
+ if (!m_client)
+ return;
+ RefPtr<JSONObject> message = JSONObject::create();
+ message->setNumber("id", 0);
+ message->setString("method", "upgradeDraggedFileSystemPermissions");
+ RefPtr<JSONArray> params = JSONArray::create();
+ message->setArray("params", params);
+ params->pushString(domFileSystem->rootURL().string());
+ sendMessageToEmbedder(message->toJSONString());
+}
+
bool InspectorFrontendHost::isUnderTest()
{
return m_client && m_client->isUnderTest();

Powered by Google App Engine
This is Rietveld 408576698