| 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 22 matching lines...) Expand all Loading... |
| 33 this.installInjectedScriptDelegate_('applyStyleRuleText'); | 33 this.installInjectedScriptDelegate_('applyStyleRuleText'); |
| 34 this.installInjectedScriptDelegate_('addStyleSelector'); | 34 this.installInjectedScriptDelegate_('addStyleSelector'); |
| 35 this.installInjectedScriptDelegate_('setStyleProperty'); | 35 this.installInjectedScriptDelegate_('setStyleProperty'); |
| 36 this.installInjectedScriptDelegate_('getPrototypes'); | 36 this.installInjectedScriptDelegate_('getPrototypes'); |
| 37 this.installInjectedScriptDelegate_('setPropertyValue'); | 37 this.installInjectedScriptDelegate_('setPropertyValue'); |
| 38 this.installInjectedScriptDelegate_('evaluate'); | 38 this.installInjectedScriptDelegate_('evaluate'); |
| 39 this.installInjectedScriptDelegate_('addInspectedNode'); | 39 this.installInjectedScriptDelegate_('addInspectedNode'); |
| 40 this.installInjectedScriptDelegate_('pushNodeToFrontend'); | 40 this.installInjectedScriptDelegate_('pushNodeToFrontend'); |
| 41 this.installInjectedScriptDelegate_('performSearch'); | 41 this.installInjectedScriptDelegate_('performSearch'); |
| 42 this.installInjectedScriptDelegate_('searchCanceled'); | 42 this.installInjectedScriptDelegate_('searchCanceled'); |
| 43 this.installInjectedScriptDelegate_('openInInspectedWindow'); |
| 43 }; | 44 }; |
| 44 goog.inherits(devtools.InspectorControllerImpl, | 45 goog.inherits(devtools.InspectorControllerImpl, |
| 45 devtools.InspectorController); | 46 devtools.InspectorController); |
| 46 | 47 |
| 47 | 48 |
| 48 /** | 49 /** |
| 49 * {@inheritDoc}. | 50 * {@inheritDoc}. |
| 50 */ | 51 */ |
| 51 devtools.InspectorControllerImpl.prototype.platform = function() { | 52 devtools.InspectorControllerImpl.prototype.platform = function() { |
| 52 return DevToolsHost.getPlatform(); | 53 return DevToolsHost.getPlatform(); |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 */ | 229 */ |
| 229 devtools.InspectorControllerImpl.prototype.stopProfiling = function() { | 230 devtools.InspectorControllerImpl.prototype.stopProfiling = function() { |
| 230 devtools.tools.getDebuggerAgent().stopProfiling( | 231 devtools.tools.getDebuggerAgent().stopProfiling( |
| 231 devtools.DebuggerAgent.ProfilerModules.PROFILER_MODULE_CPU); | 232 devtools.DebuggerAgent.ProfilerModules.PROFILER_MODULE_CPU); |
| 232 }; | 233 }; |
| 233 | 234 |
| 234 | 235 |
| 235 /** | 236 /** |
| 236 * @override | 237 * @override |
| 237 */ | 238 */ |
| 238 devtools.InspectorControllerImpl.prototype.getCallFrames = function(callback) { | |
| 239 callback(devtools.tools.getDebuggerAgent().getCallFrames()); | |
| 240 }; | |
| 241 | |
| 242 | |
| 243 /** | |
| 244 * @override | |
| 245 */ | |
| 246 devtools.InspectorControllerImpl.prototype.evaluateInCallFrame = | 239 devtools.InspectorControllerImpl.prototype.evaluateInCallFrame = |
| 247 function(callFrameId, code, callback) { | 240 function(callFrameId, code, callback) { |
| 248 devtools.tools.getDebuggerAgent().evaluateInCallFrame(callFrameId, code, | 241 devtools.tools.getDebuggerAgent().evaluateInCallFrame(callFrameId, code, |
| 249 callback); | 242 callback); |
| 250 }; | 243 }; |
| 251 | 244 |
| 252 | 245 |
| 253 /** | 246 /** |
| 254 * @override | 247 * @override |
| 255 */ | 248 */ |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 | 313 |
| 321 devtools.InspectorControllerImpl.parseWrap_ = function(callback) { | 314 devtools.InspectorControllerImpl.parseWrap_ = function(callback) { |
| 322 return devtools.Callback.wrap( | 315 return devtools.Callback.wrap( |
| 323 function(data) { | 316 function(data) { |
| 324 callback.call(this, JSON.parse(data)); | 317 callback.call(this, JSON.parse(data)); |
| 325 }); | 318 }); |
| 326 }; | 319 }; |
| 327 | 320 |
| 328 | 321 |
| 329 InspectorController = new devtools.InspectorControllerImpl(); | 322 InspectorController = new devtools.InspectorControllerImpl(); |
| OLD | NEW |