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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js

Issue 1363993007: DevTools: remove UISourceCode.networkURL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaselined Created 5 years, 2 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
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698