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

Side by Side Diff: content/renderer/devtools_client.cc

Issue 8635005: DevTools: remove support for legacy remote debugger (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed tests compilation Created 9 years 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
« no previous file with comments | « content/renderer/devtools_client.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/devtools_client.h" 5 #include "content/renderer/devtools_client.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "content/common/devtools_messages.h" 10 #include "content/common/devtools_messages.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 void DevToolsClient::sendFrontendLoaded() { 52 void DevToolsClient::sendFrontendLoaded() {
53 SendToAgent(DevToolsAgentMsg_FrontendLoaded(MSG_ROUTING_NONE)); 53 SendToAgent(DevToolsAgentMsg_FrontendLoaded(MSG_ROUTING_NONE));
54 } 54 }
55 55
56 void DevToolsClient::sendMessageToBackend(const WebString& message) { 56 void DevToolsClient::sendMessageToBackend(const WebString& message) {
57 SendToAgent(DevToolsAgentMsg_DispatchOnInspectorBackend(MSG_ROUTING_NONE, 57 SendToAgent(DevToolsAgentMsg_DispatchOnInspectorBackend(MSG_ROUTING_NONE,
58 message.utf8())); 58 message.utf8()));
59 } 59 }
60 60
61 void DevToolsClient::sendDebuggerCommandToAgent(const WebString& command) {
62 SendToAgent(DevToolsAgentMsg_DebuggerCommand(MSG_ROUTING_NONE,
63 command.utf8()));
64 }
65
66 void DevToolsClient::activateWindow() { 61 void DevToolsClient::activateWindow() {
67 Send(new DevToolsHostMsg_ActivateWindow(routing_id())); 62 Send(new DevToolsHostMsg_ActivateWindow(routing_id()));
68 } 63 }
69 64
70 void DevToolsClient::closeWindow() { 65 void DevToolsClient::closeWindow() {
71 Send(new DevToolsHostMsg_CloseWindow(routing_id())); 66 Send(new DevToolsHostMsg_CloseWindow(routing_id()));
72 } 67 }
73 68
74 void DevToolsClient::moveWindowBy(const WebKit::WebFloatPoint& offset) { 69 void DevToolsClient::moveWindowBy(const WebKit::WebFloatPoint& offset) {
75 Send(new DevToolsHostMsg_MoveWindow(routing_id(), offset.x, offset.y)); 70 Send(new DevToolsHostMsg_MoveWindow(routing_id(), offset.x, offset.y));
(...skipping 11 matching lines...) Expand all
87 const WebKit::WebString& content) { 82 const WebKit::WebString& content) {
88 Send(new DevToolsHostMsg_SaveAs(routing_id(), 83 Send(new DevToolsHostMsg_SaveAs(routing_id(),
89 file_name.utf8(), 84 file_name.utf8(),
90 content.utf8())); 85 content.utf8()));
91 } 86 }
92 87
93 void DevToolsClient::OnDispatchOnInspectorFrontend(const std::string& message) { 88 void DevToolsClient::OnDispatchOnInspectorFrontend(const std::string& message) {
94 web_tools_frontend_->dispatchOnInspectorFrontend( 89 web_tools_frontend_->dispatchOnInspectorFrontend(
95 WebString::fromUTF8(message)); 90 WebString::fromUTF8(message));
96 } 91 }
97
98 bool DevToolsClient::shouldHideScriptsPanel() {
99 CommandLine* cmd = CommandLine::ForCurrentProcess();
100 return cmd->HasSwitch(switches::kRemoteShellPort);
101 }
OLDNEW
« no previous file with comments | « content/renderer/devtools_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698