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

Unified Diff: chrome/renderer/devtools_agent.cc

Issue 6119005: DevTools: migrate APU from dedicated commands to the inspector protocol. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Test fixed. Created 9 years, 11 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 | « chrome/renderer/devtools_agent.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/devtools_agent.cc
diff --git a/chrome/renderer/devtools_agent.cc b/chrome/renderer/devtools_agent.cc
index e1dbba6d0c33cd61ef34e84ffbd90f5f1d91077b..ca1ef3a1bde515079aa01befbe802bde954ade1a 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)
« no previous file with comments | « chrome/renderer/devtools_agent.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698