| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |