| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 return DevToolsHost.addSourceToFrame(mimeType, source, element.id); | 54 return DevToolsHost.addSourceToFrame(mimeType, source, element.id); |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 | 57 |
| 58 /** | 58 /** |
| 59 * {@inheritDoc}. | 59 * {@inheritDoc}. |
| 60 */ | 60 */ |
| 61 devtools.InspectorControllerImpl.prototype.addResourceSourceToFrame = | 61 devtools.InspectorControllerImpl.prototype.addResourceSourceToFrame = |
| 62 function(identifier, element) { | 62 function(identifier, element) { |
| 63 var self = this; | 63 var self = this; |
| 64 tools.getNetAgent().getResourceContentAsync(identifier, function(source) { | 64 var netAgent = devtools.tools.getNetAgent(); |
| 65 netAgent.getResourceContentAsync(identifier, function(source) { |
| 65 var resource = netAgent.getResource(identifier); | 66 var resource = netAgent.getResource(identifier); |
| 66 self.addSourceToFrame(resource.mimeType, source, element); | 67 self.addSourceToFrame(resource.mimeType, source, element); |
| 67 }); | 68 }); |
| 68 return false; | 69 return false; |
| 69 }; | 70 }; |
| 70 | 71 |
| 71 | 72 |
| 72 /** | 73 /** |
| 73 * {@inheritDoc}. | 74 * {@inheritDoc}. |
| 74 */ | 75 */ |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 }; | 142 }; |
| 142 | 143 |
| 143 | 144 |
| 144 devtools.InspectorControllerImpl.prototype.stepOverStatementInDebugger = | 145 devtools.InspectorControllerImpl.prototype.stepOverStatementInDebugger = |
| 145 function() { | 146 function() { |
| 146 devtools.tools.getDebuggerAgent().stepOverStatement(); | 147 devtools.tools.getDebuggerAgent().stepOverStatement(); |
| 147 }; | 148 }; |
| 148 | 149 |
| 149 | 150 |
| 150 var InspectorController = new devtools.InspectorControllerImpl(); | 151 var InspectorController = new devtools.InspectorControllerImpl(); |
| OLD | NEW |