diff options
author | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-11 12:28:35 +0000 |
---|---|---|
committer | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-11 12:28:35 +0000 |
commit | 7153d83d9dd74251ee98d6d4d0794b84a374f990 (patch) | |
tree | 8708297f9240b7aeef6977055016387e0b7e1de7 /chrome/renderer | |
parent | adb98d94912f8a499821734ce190936a557bc2b5 (diff) | |
download | chromium_src-7153d83d9dd74251ee98d6d4d0794b84a374f990.zip chromium_src-7153d83d9dd74251ee98d6d4d0794b84a374f990.tar.gz chromium_src-7153d83d9dd74251ee98d6d4d0794b84a374f990.tar.bz2 |
DevTools: migrate APU from dedicated commands to the inspector protocol.
BUG=
TEST=
Review URL: http://codereview.chromium.org/6119005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71037 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/devtools_agent.cc | 16 | ||||
-rw-r--r-- | chrome/renderer/devtools_agent.h | 2 |
2 files changed, 0 insertions, 18 deletions
diff --git a/chrome/renderer/devtools_agent.cc b/chrome/renderer/devtools_agent.cc index e1dbba6..ca1ef3a 100644 --- a/chrome/renderer/devtools_agent.cc +++ b/chrome/renderer/devtools_agent.cc @@ -83,8 +83,6 @@ bool DevToolsAgent::OnMessageReceived(const IPC::Message& message) { IPC_MESSAGE_HANDLER(DevToolsAgentMsg_DispatchOnInspectorBackend, OnDispatchOnInspectorBackend) IPC_MESSAGE_HANDLER(DevToolsAgentMsg_InspectElement, OnInspectElement) - IPC_MESSAGE_HANDLER(DevToolsAgentMsg_SetApuAgentEnabled, - OnSetApuAgentEnabled) IPC_MESSAGE_UNHANDLED(handled = false) IPC_END_MESSAGE_MAP() return handled; @@ -105,13 +103,6 @@ void DevToolsAgent::sendDebuggerOutput(const WebKit::WebString& data) { render_view_->Send(m); } -void DevToolsAgent::sendDispatchToAPU(const WebKit::WebString& data) { - IPC::Message* m = new ViewHostMsg_ForwardToDevToolsClient( - routing_id_, - DevToolsClientMsg_DispatchToAPU(data.utf8())); - render_view_->Send(m); -} - int DevToolsAgent::hostIdentifier() { return routing_id_; } @@ -200,13 +191,6 @@ void DevToolsAgent::OnInspectElement(int x, int y) { } } -void DevToolsAgent::OnSetApuAgentEnabled(bool enabled) { - WebDevToolsAgent* web_agent = GetWebAgent(); - if (web_agent) - web_agent->setRuntimeProperty("apu-agent", enabled ? - WebString::fromUTF8("true") : WebString::fromUTF8("false")); -} - WebDevToolsAgent* DevToolsAgent::GetWebAgent() { WebView* web_view = render_view_->webview(); if (!web_view) diff --git a/chrome/renderer/devtools_agent.h b/chrome/renderer/devtools_agent.h index 14a7247..4b1b465 100644 --- a/chrome/renderer/devtools_agent.h +++ b/chrome/renderer/devtools_agent.h @@ -39,7 +39,6 @@ class DevToolsAgent : public WebKit::WebDevToolsAgentClient, // WebDevToolsAgentClient implementation virtual void sendMessageToInspectorFrontend(const WebKit::WebString& data); virtual void sendDebuggerOutput(const WebKit::WebString& data); - virtual void sendDispatchToAPU(const WebKit::WebString& data); virtual int hostIdentifier(); virtual void runtimeFeatureStateChanged(const WebKit::WebString& feature, @@ -66,7 +65,6 @@ class DevToolsAgent : public WebKit::WebDevToolsAgentClient, void OnFrontendLoaded(); void OnDispatchOnInspectorBackend(const std::string& message); void OnInspectElement(int x, int y); - void OnSetApuAgentEnabled(bool enabled); static std::map<int, DevToolsAgent*> agent_for_routing_id_; |