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

Side by Side Diff: Source/devtools/front_end/sdk/UISourceCode.js

Issue 373743003: DevTools: Add support for adding source map to a script from the DevTools window. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 this._requestContentCallbacks = []; 52 this._requestContentCallbacks = [];
53 /** @type {!Array.<!WebInspector.PresentationConsoleMessage>} */ 53 /** @type {!Array.<!WebInspector.PresentationConsoleMessage>} */
54 this._consoleMessages = []; 54 this._consoleMessages = [];
55 55
56 /** 56 /**
57 * @type {!Map.<!WebInspector.Target, !WebInspector.SourceMapping>} 57 * @type {!Map.<!WebInspector.Target, !WebInspector.SourceMapping>}
58 */ 58 */
59 this._sourceMappingForTarget = new Map(); 59 this._sourceMappingForTarget = new Map();
60 60
61 /** 61 /**
62 * @type {!Map.<!WebInspector.Target, !WebInspector.ScriptFile>} 62 * @type {!Map.<!WebInspector.Target, !WebInspector.ResourceScriptFile>}
63 */ 63 */
64 this._scriptFileForTarget = new Map(); 64 this._scriptFileForTarget = new Map();
65 65
66 /** @type {!Array.<!WebInspector.Revision>} */ 66 /** @type {!Array.<!WebInspector.Revision>} */
67 this.history = []; 67 this.history = [];
68 } 68 }
69 69
70 WebInspector.UISourceCode.Events = { 70 WebInspector.UISourceCode.Events = {
71 WorkingCopyChanged: "WorkingCopyChanged", 71 WorkingCopyChanged: "WorkingCopyChanged",
72 WorkingCopyCommitted: "WorkingCopyCommitted", 72 WorkingCopyCommitted: "WorkingCopyCommitted",
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 /** 217 /**
218 * @return {!WebInspector.ResourceType} 218 * @return {!WebInspector.ResourceType}
219 */ 219 */
220 contentType: function() 220 contentType: function()
221 { 221 {
222 return this._contentType; 222 return this._contentType;
223 }, 223 },
224 224
225 /** 225 /**
226 * @param {!WebInspector.Target} target 226 * @param {!WebInspector.Target} target
227 * @return {?WebInspector.ScriptFile} 227 * @return {?WebInspector.ResourceScriptFile}
228 */ 228 */
229 scriptFileForTarget: function(target) 229 scriptFileForTarget: function(target)
230 { 230 {
231 return this._scriptFileForTarget.get(target) || null; 231 return this._scriptFileForTarget.get(target) || null;
232 }, 232 },
233 233
234 /** 234 /**
235 * @param {!WebInspector.Target} target 235 * @param {!WebInspector.Target} target
236 * @param {?WebInspector.ScriptFile} scriptFile 236 * @param {?WebInspector.ResourceScriptFile} scriptFile
237 */ 237 */
238 setScriptFileForTarget: function(target, scriptFile) 238 setScriptFileForTarget: function(target, scriptFile)
239 { 239 {
240 if (scriptFile) 240 if (scriptFile)
241 this._scriptFileForTarget.put(target, scriptFile); 241 this._scriptFileForTarget.put(target, scriptFile);
242 else 242 else
243 this._scriptFileForTarget.remove(target); 243 this._scriptFileForTarget.remove(target);
244 }, 244 },
245 245
246 /** 246 /**
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
920 * @param {string} query 920 * @param {string} query
921 * @param {boolean} caseSensitive 921 * @param {boolean} caseSensitive
922 * @param {boolean} isRegex 922 * @param {boolean} isRegex
923 * @param {function(!Array.<!WebInspector.ContentProvider.SearchMatch>)} cal lback 923 * @param {function(!Array.<!WebInspector.ContentProvider.SearchMatch>)} cal lback
924 */ 924 */
925 searchInContent: function(query, caseSensitive, isRegex, callback) 925 searchInContent: function(query, caseSensitive, isRegex, callback)
926 { 926 {
927 callback([]); 927 callback([]);
928 } 928 }
929 } 929 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sdk/Script.js ('k') | Source/devtools/front_end/sources/AddSourceMapURLDialog.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698