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

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

Issue 23290002: Complete migration to InspectorFrontendHost.sendMessageToFrontendHost. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 7 years, 3 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/inspector/InspectorFrontendHost.h ('k') | Source/core/inspector/InspectorFrontendHost.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « Source/core/inspector/InspectorFrontendHost.h ('k') | Source/core/inspector/InspectorFrontendHost.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698