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

Side by Side Diff: webkit/tools/test_shell/test_shell_devtools_client.cc

Issue 8693004: Remove one more sendDebuggerCommandToAgent obsolete implementation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « webkit/tools/test_shell/test_shell_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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgent.h" 5 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgent.h"
6 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsFrontend.h " 6 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsFrontend.h "
7 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" 7 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h"
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptSource.h" 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptSource.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 if (dev_tools_agent_) 46 if (dev_tools_agent_)
47 dev_tools_agent_->frontendLoaded(); 47 dev_tools_agent_->frontendLoaded();
48 } 48 }
49 49
50 void TestShellDevToolsClient::sendMessageToBackend( 50 void TestShellDevToolsClient::sendMessageToBackend(
51 const WebString& data) { 51 const WebString& data) {
52 if (dev_tools_agent_) 52 if (dev_tools_agent_)
53 dev_tools_agent_->AsyncCall(TestShellDevToolsCallArgs(data)); 53 dev_tools_agent_->AsyncCall(TestShellDevToolsCallArgs(data));
54 } 54 }
55 55
56 void TestShellDevToolsClient::sendDebuggerCommandToAgent(
57 const WebString& command) {
58 WebDevToolsAgent::executeDebuggerCommand(command, 1);
59 }
60
61 void TestShellDevToolsClient::activateWindow() { 56 void TestShellDevToolsClient::activateWindow() {
62 NOTIMPLEMENTED(); 57 NOTIMPLEMENTED();
63 } 58 }
64 59
65 void TestShellDevToolsClient::closeWindow() { 60 void TestShellDevToolsClient::closeWindow() {
66 NOTIMPLEMENTED(); 61 NOTIMPLEMENTED();
67 } 62 }
68 63
69 void TestShellDevToolsClient::dockWindow() { 64 void TestShellDevToolsClient::dockWindow() {
70 NOTIMPLEMENTED(); 65 NOTIMPLEMENTED();
(...skipping 14 matching lines...) Expand all
85 web_tools_frontend_->dispatchOnInspectorFrontend(args.data_); 80 web_tools_frontend_->dispatchOnInspectorFrontend(args.data_);
86 if (TestShellDevToolsCallArgs::calls_count() == 1) 81 if (TestShellDevToolsCallArgs::calls_count() == 1)
87 all_messages_processed(); 82 all_messages_processed();
88 } 83 }
89 84
90 void TestShellDevToolsClient::all_messages_processed() { 85 void TestShellDevToolsClient::all_messages_processed() {
91 web_view_->mainFrame()->executeScript(WebKit::WebScriptSource( 86 web_view_->mainFrame()->executeScript(WebKit::WebScriptSource(
92 WebString::fromUTF8("if (window.WebInspector && " 87 WebString::fromUTF8("if (window.WebInspector && "
93 "WebInspector.queuesAreEmpty) WebInspector.queuesAreEmpty();"))); 88 "WebInspector.queuesAreEmpty) WebInspector.queuesAreEmpty();")));
94 } 89 }
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/test_shell_devtools_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698