| 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 /** | 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  Loading... | 
| 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  Loading... | 
| 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(); | 
| OLD | NEW | 
|---|