| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "Document.h" | 9 #include "Document.h" |
| 10 #include "EventListener.h" | 10 #include "EventListener.h" |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 const String& function_name, | 206 const String& function_name, |
| 207 const String& json_args) { | 207 const String& json_args) { |
| 208 String result; | 208 String result; |
| 209 String exception; | 209 String exception; |
| 210 result = debugger_agent_impl_->ExecuteUtilityFunction(utility_context_, | 210 result = debugger_agent_impl_->ExecuteUtilityFunction(utility_context_, |
| 211 function_name, json_args, &exception); | 211 function_name, json_args, &exception); |
| 212 tools_agent_delegate_stub_->DidExecuteUtilityFunction(call_id, | 212 tools_agent_delegate_stub_->DidExecuteUtilityFunction(call_id, |
| 213 result, exception); | 213 result, exception); |
| 214 } | 214 } |
| 215 | 215 |
| 216 void WebDevToolsAgentImpl::EvaluateJavaScript( |
| 217 int call_id, |
| 218 const WebCore::String& source) { |
| 219 String exception; |
| 220 String result = debugger_agent_impl_->EvaluateJavaScript(utility_context_, |
| 221 source, &exception); |
| 222 tools_agent_delegate_stub_->DidEvaluateJavaScript(call_id, result, exception); |
| 223 } |
| 224 |
| 216 void WebDevToolsAgentImpl::ClearConsoleMessages() { | 225 void WebDevToolsAgentImpl::ClearConsoleMessages() { |
| 217 Page* page = web_view_impl_->page(); | 226 Page* page = web_view_impl_->page(); |
| 218 if (page) { | 227 if (page) { |
| 219 page->inspectorController()->clearConsoleMessages(); | 228 page->inspectorController()->clearConsoleMessages(); |
| 220 } | 229 } |
| 221 } | 230 } |
| 222 | 231 |
| 223 void WebDevToolsAgentImpl::GetResourceContent( | 232 void WebDevToolsAgentImpl::GetResourceContent( |
| 224 int call_id, | 233 int call_id, |
| 225 int identifier) { | 234 int identifier) { |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 const std::string& command, | 351 const std::string& command, |
| 343 int caller_id) { | 352 int caller_id) { |
| 344 DebuggerAgentManager::ExecuteDebuggerCommand(command, caller_id); | 353 DebuggerAgentManager::ExecuteDebuggerCommand(command, caller_id); |
| 345 } | 354 } |
| 346 | 355 |
| 347 // static | 356 // static |
| 348 void WebDevToolsAgent::SetMessageLoopDispatchHandler( | 357 void WebDevToolsAgent::SetMessageLoopDispatchHandler( |
| 349 MessageLoopDispatchHandler handler) { | 358 MessageLoopDispatchHandler handler) { |
| 350 DebuggerAgentManager::SetMessageLoopDispatchHandler(handler); | 359 DebuggerAgentManager::SetMessageLoopDispatchHandler(handler); |
| 351 } | 360 } |
| OLD | NEW |