| Index: Source/core/inspector/InspectorFrontendHost.cpp
|
| diff --git a/Source/core/inspector/InspectorFrontendHost.cpp b/Source/core/inspector/InspectorFrontendHost.cpp
|
| index 9df3e41bfbfe8aa7bb3ced0894763d60a53cb095..b1f267fc71a77d16972ef15cf5a09e28036704dc 100644
|
| --- a/Source/core/inspector/InspectorFrontendHost.cpp
|
| +++ b/Source/core/inspector/InspectorFrontendHost.cpp
|
| @@ -137,35 +137,16 @@ void InspectorFrontendHost::loaded()
|
| {
|
| }
|
|
|
| -void InspectorFrontendHost::requestSetDockSide(const String& side)
|
| -{
|
| - if (!m_client)
|
| - return;
|
| - if (side == "undocked")
|
| - m_client->requestSetDockSide(InspectorFrontendClient::Undocked);
|
| - else if (side == "right")
|
| - m_client->requestSetDockSide(InspectorFrontendClient::DockedToRight);
|
| - else if (side == "bottom")
|
| - m_client->requestSetDockSide(InspectorFrontendClient::DockedToBottom);
|
| -}
|
| -
|
| void InspectorFrontendHost::closeWindow()
|
| {
|
| if (m_client) {
|
| RefPtr<JSONObject> message = JSONObject::create();
|
| message->setString("method", "closeWindow");
|
| sendMessageToEmbedder(message->toJSONString());
|
| - m_client->closeWindow();
|
| disconnectClient(); // Disconnect from client.
|
| }
|
| }
|
|
|
| -void InspectorFrontendHost::bringToFront()
|
| -{
|
| - if (m_client)
|
| - m_client->bringToFront();
|
| -}
|
| -
|
| void InspectorFrontendHost::setZoomFactor(float zoom)
|
| {
|
| m_frontendPage->mainFrame()->setPageAndTextZoomFactors(zoom, 1);
|
| @@ -179,14 +160,6 @@ void InspectorFrontendHost::inspectedURLChanged(const String& newURL)
|
|
|
| void InspectorFrontendHost::setAttachedWindowHeight(unsigned height)
|
| {
|
| - if (m_client)
|
| - m_client->changeAttachedWindowHeight(height);
|
| -}
|
| -
|
| -void InspectorFrontendHost::moveWindowBy(float x, float y) const
|
| -{
|
| - if (m_client)
|
| - m_client->moveWindowBy(x, y);
|
| }
|
|
|
| void InspectorFrontendHost::setInjectedScriptForOrigin(const String& origin, const String& script)
|
| @@ -204,29 +177,11 @@ void InspectorFrontendHost::copyText(const String& text)
|
| Pasteboard::generalPasteboard()->writePlainText(text, Pasteboard::CannotSmartReplace);
|
| }
|
|
|
| -void InspectorFrontendHost::openInNewTab(const String& url)
|
| -{
|
| - if (m_client)
|
| - m_client->openInNewTab(url);
|
| -}
|
| -
|
| bool InspectorFrontendHost::canSave()
|
| {
|
| return true;
|
| }
|
|
|
| -void InspectorFrontendHost::save(const String& url, const String& content, bool forceSaveAs)
|
| -{
|
| - if (m_client)
|
| - m_client->save(url, content, forceSaveAs);
|
| -}
|
| -
|
| -void InspectorFrontendHost::append(const String& url, const String& content)
|
| -{
|
| - if (m_client)
|
| - m_client->append(url, content);
|
| -}
|
| -
|
| void InspectorFrontendHost::close(const String&)
|
| {
|
| }
|
| @@ -296,48 +251,12 @@ bool InspectorFrontendHost::supportsFileSystems()
|
| return true;
|
| }
|
|
|
| -void InspectorFrontendHost::requestFileSystems()
|
| -{
|
| - if (m_client)
|
| - m_client->requestFileSystems();
|
| -}
|
| -
|
| -void InspectorFrontendHost::addFileSystem()
|
| -{
|
| - if (m_client)
|
| - m_client->addFileSystem();
|
| -}
|
| -
|
| -void InspectorFrontendHost::removeFileSystem(const String& fileSystemPath)
|
| -{
|
| - if (m_client)
|
| - m_client->removeFileSystem(fileSystemPath);
|
| -}
|
| -
|
| PassRefPtr<DOMFileSystem> InspectorFrontendHost::isolatedFileSystem(const String& fileSystemName, const String& rootURL)
|
| {
|
| ScriptExecutionContext* context = m_frontendPage->mainFrame()->document();
|
| return DOMFileSystem::create(context, fileSystemName, FileSystemTypeIsolated, KURL(ParsedURLString, rootURL), AsyncFileSystem::create());
|
| }
|
|
|
| -void InspectorFrontendHost::indexPath(int requestId, const String& fileSystemPath)
|
| -{
|
| - if (m_client)
|
| - m_client->indexPath(requestId, fileSystemPath);
|
| -}
|
| -
|
| -void InspectorFrontendHost::stopIndexing(int requestId)
|
| -{
|
| - if (m_client)
|
| - m_client->stopIndexing(requestId);
|
| -}
|
| -
|
| -void InspectorFrontendHost::searchInPath(int requestId, const String& fileSystemPath, const String& query)
|
| -{
|
| - if (m_client)
|
| - m_client->searchInPath(requestId, fileSystemPath, query);
|
| -}
|
| -
|
| bool InspectorFrontendHost::isUnderTest()
|
| {
|
| return m_client && m_client->isUnderTest();
|
|
|