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

Side by Side Diff: webkit/glue/devtools/js/inspector_controller_impl.js

Issue 208059: DevTools: repair eval on call frame. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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/devtools/js/devtools.js ('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) 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 /** 5 /**
6 * @fileoverview DevTools' implementation of the InspectorController API. 6 * @fileoverview DevTools' implementation of the InspectorController API.
7 */ 7 */
8 goog.require('devtools.InspectorController'); 8 goog.require('devtools.InspectorController');
9 9
10 goog.provide('devtools.InspectorControllerImpl'); 10 goog.provide('devtools.InspectorControllerImpl');
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 */ 220 */
221 devtools.InspectorControllerImpl.prototype.stopProfiling = function() { 221 devtools.InspectorControllerImpl.prototype.stopProfiling = function() {
222 devtools.tools.getDebuggerAgent().stopProfiling( 222 devtools.tools.getDebuggerAgent().stopProfiling(
223 devtools.DebuggerAgent.ProfilerModules.PROFILER_MODULE_CPU); 223 devtools.DebuggerAgent.ProfilerModules.PROFILER_MODULE_CPU);
224 }; 224 };
225 225
226 226
227 /** 227 /**
228 * @override 228 * @override
229 */ 229 */
230 devtools.InspectorControllerImpl.prototype.evaluateInCallFrame =
231 function(callFrameId, code, callback) {
232 devtools.tools.getDebuggerAgent().evaluateInCallFrame(callFrameId, code,
233 callback);
234 };
235
236
237 /**
238 * @override
239 */
240 devtools.InspectorControllerImpl.prototype.dispatchOnInjectedScript = function( 230 devtools.InspectorControllerImpl.prototype.dispatchOnInjectedScript = function(
241 callId, methodName, argsString) { 231 callId, methodName, argsString) {
242 var callback = function(result, isException) { 232 var callback = function(result, isException) {
243 WebInspector.didDispatchOnInjectedScript(callId, result, isException); 233 WebInspector.didDispatchOnInjectedScript(callId, result, isException);
244 }; 234 };
245 RemoteToolsAgent.DispatchOnInjectedScript( 235 RemoteToolsAgent.DispatchOnInjectedScript(
246 devtools.Callback.wrap(callback), 236 devtools.Callback.wrap(callback),
247 methodName, 237 methodName,
248 argsString); 238 argsString);
249 }; 239 };
(...skipping 18 matching lines...) Expand all
268 function(methodName, var_arg) { 258 function(methodName, var_arg) {
269 var args = Array.prototype.slice.call(arguments, 1); 259 var args = Array.prototype.slice.call(arguments, 1);
270 RemoteToolsAgent.DispatchOnInspectorController( 260 RemoteToolsAgent.DispatchOnInspectorController(
271 devtools.Callback.wrap(function(){}), 261 devtools.Callback.wrap(function(){}),
272 methodName, 262 methodName,
273 JSON.stringify(args)); 263 JSON.stringify(args));
274 }; 264 };
275 265
276 266
277 InspectorController = new devtools.InspectorControllerImpl(); 267 InspectorController = new devtools.InspectorControllerImpl();
OLDNEW
« no previous file with comments | « webkit/glue/devtools/js/devtools.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698