| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 * @constructor | 6 * @constructor |
| 7 * @implements {WebInspector.DebuggerSourceMapping} | 7 * @implements {WebInspector.DebuggerSourceMapping} |
| 8 * @param {!WebInspector.DebuggerModel} debuggerModel | 8 * @param {!WebInspector.DebuggerModel} debuggerModel |
| 9 * @param {!WebInspector.ScriptFormatterEditorAction} editorAction | 9 * @param {!WebInspector.ScriptFormatterEditorAction} editorAction |
| 10 */ | 10 */ |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 /** | 119 /** |
| 120 * @param {string} name | 120 * @param {string} name |
| 121 * @param {string} sourceURL | 121 * @param {string} sourceURL |
| 122 * @param {!WebInspector.ResourceType} contentType | 122 * @param {!WebInspector.ResourceType} contentType |
| 123 * @param {string} content | 123 * @param {string} content |
| 124 * @return {string} | 124 * @return {string} |
| 125 */ | 125 */ |
| 126 _addFormatted: function(name, sourceURL, contentType, content) | 126 _addFormatted: function(name, sourceURL, contentType, content) |
| 127 { | 127 { |
| 128 var contentProvider = new WebInspector.StaticContentProvider(contentType
, content); | 128 var contentProvider = new WebInspector.StaticContentProvider(contentType
, content); |
| 129 return this.addContentProvider(sourceURL, name + ":formatted", sourceURL
, "deobfuscated:" + sourceURL, contentProvider); | 129 return this.addContentProvider(sourceURL, name + ":formatted", sourceURL
, contentProvider); |
| 130 }, | 130 }, |
| 131 | 131 |
| 132 /** | 132 /** |
| 133 * @param {string} path | 133 * @param {string} path |
| 134 */ | 134 */ |
| 135 _removeFormatted: function(path) | 135 _removeFormatted: function(path) |
| 136 { | 136 { |
| 137 this.removeFile(path); | 137 this.removeFile(path); |
| 138 }, | 138 }, |
| 139 | 139 |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 | 438 |
| 439 var targets = WebInspector.targetManager.targets(); | 439 var targets = WebInspector.targetManager.targets(); |
| 440 for (var i = 0; i < targets.length; ++i) { | 440 for (var i = 0; i < targets.length; ++i) { |
| 441 var scriptMapping = /** @type {!WebInspector.FormatterScriptMapp
ing} */(this._scriptMappingByTarget.get(targets[i])); | 441 var scriptMapping = /** @type {!WebInspector.FormatterScriptMapp
ing} */(this._scriptMappingByTarget.get(targets[i])); |
| 442 WebInspector.debuggerWorkspaceBinding.setSourceMapping(targets[i
], formattedUISourceCode, scriptMapping); | 442 WebInspector.debuggerWorkspaceBinding.setSourceMapping(targets[i
], formattedUISourceCode, scriptMapping); |
| 443 } | 443 } |
| 444 this._showIfNeeded(uiSourceCode, formattedUISourceCode, formatterMap
ping); | 444 this._showIfNeeded(uiSourceCode, formattedUISourceCode, formatterMap
ping); |
| 445 } | 445 } |
| 446 } | 446 } |
| 447 } | 447 } |
| OLD | NEW |