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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com>
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 Color color = RenderTheme::theme().activeSelectionForegroundColor(); 207 Color color = RenderTheme::theme().activeSelectionForegroundColor();
208 return color.isValid() ? color.serialized() : ""; 208 return color.isValid() ? color.serialized() : "";
209 } 209 }
210 210
211 PassRefPtr<DOMFileSystem> InspectorFrontendHost::isolatedFileSystem(const String & fileSystemName, const String& rootURL) 211 PassRefPtr<DOMFileSystem> InspectorFrontendHost::isolatedFileSystem(const String & fileSystemName, const String& rootURL)
212 { 212 {
213 ExecutionContext* context = m_frontendPage->mainFrame()->document(); 213 ExecutionContext* context = m_frontendPage->mainFrame()->document();
214 return DOMFileSystem::create(context, fileSystemName, FileSystemTypeIsolated , KURL(ParsedURLString, rootURL)); 214 return DOMFileSystem::create(context, fileSystemName, FileSystemTypeIsolated , KURL(ParsedURLString, rootURL));
215 } 215 }
216 216
217 void InspectorFrontendHost::upgradeDraggedFileSystemPermissions(DOMFileSystem* d omFileSystem)
218 {
219 if (!m_client)
220 return;
221 RefPtr<JSONObject> message = JSONObject::create();
222 message->setNumber("id", 0);
223 message->setString("method", "upgradeDraggedFileSystemPermissions");
224 RefPtr<JSONArray> params = JSONArray::create();
225 message->setArray("params", params);
226 params->pushString(domFileSystem->rootURL().string());
227 sendMessageToEmbedder(message->toJSONString());
228 }
229
217 bool InspectorFrontendHost::isUnderTest() 230 bool InspectorFrontendHost::isUnderTest()
218 { 231 {
219 return m_client && m_client->isUnderTest(); 232 return m_client && m_client->isUnderTest();
220 } 233 }
221 234
222 } // namespace WebCore 235 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698