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

Side by Side Diff: webkit/glue/webdevtoolsagent_impl.cc

Issue 159395: DevTools: make pause work for script evaluations (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/glue/webdevtoolsagent_impl.h ('k') | webkit/glue/webkit_resources.grd » ('j') | 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) 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
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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 const std::string& command, 357 const std::string& command,
349 int caller_id) { 358 int caller_id) {
350 DebuggerAgentManager::ExecuteDebuggerCommand(command, caller_id); 359 DebuggerAgentManager::ExecuteDebuggerCommand(command, caller_id);
351 } 360 }
352 361
353 // static 362 // static
354 void WebDevToolsAgent::SetMessageLoopDispatchHandler( 363 void WebDevToolsAgent::SetMessageLoopDispatchHandler(
355 MessageLoopDispatchHandler handler) { 364 MessageLoopDispatchHandler handler) {
356 DebuggerAgentManager::SetMessageLoopDispatchHandler(handler); 365 DebuggerAgentManager::SetMessageLoopDispatchHandler(handler);
357 } 366 }
OLDNEW
« no previous file with comments | « webkit/glue/webdevtoolsagent_impl.h ('k') | webkit/glue/webkit_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698