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

Side by Side Diff: Source/devtools/front_end/bindings/CompilerScriptMapping.js

Issue 1345103005: Unflake inspector/sources/debugger-breakpoints/debugger-reload-breakpoints-with-source-maps.html (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 /** @type {!Map.<string, !WebInspector.SourceMap>} */ 58 /** @type {!Map.<string, !WebInspector.SourceMap>} */
59 this._sourceMapForURL = new Map(); 59 this._sourceMapForURL = new Map();
60 /** @type {!Map.<string, !WebInspector.UISourceCode>} */ 60 /** @type {!Map.<string, !WebInspector.UISourceCode>} */
61 this._stubUISourceCodes = new Map(); 61 this._stubUISourceCodes = new Map();
62 62
63 this._stubProjectID = "compiler-script-project"; 63 this._stubProjectID = "compiler-script-project";
64 this._stubProjectDelegate = new WebInspector.ContentProviderBasedProjectDele gate(this._workspace, this._stubProjectID, WebInspector.projectTypes.Service); 64 this._stubProjectDelegate = new WebInspector.ContentProviderBasedProjectDele gate(this._workspace, this._stubProjectID, WebInspector.projectTypes.Service);
65 debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.GlobalObjec tCleared, this._debuggerReset, this); 65 debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.GlobalObjec tCleared, this._debuggerReset, this);
66 } 66 }
67 67
68 WebInspector.CompilerScriptMapping.StubProjectID = "compiler-script-project";
69
68 WebInspector.CompilerScriptMapping.prototype = { 70 WebInspector.CompilerScriptMapping.prototype = {
69 /** 71 /**
70 * @param {!WebInspector.DebuggerModel.Location} rawLocation 72 * @param {!WebInspector.DebuggerModel.Location} rawLocation
71 * @return {boolean} 73 * @return {boolean}
72 */ 74 */
73 mapsToSourceCode: function (rawLocation) { 75 mapsToSourceCode: function (rawLocation) {
74 var sourceMap = this._sourceMapForScriptId[rawLocation.scriptId]; 76 var sourceMap = this._sourceMapForScriptId[rawLocation.scriptId];
75 if (!sourceMap) { 77 if (!sourceMap) {
76 return true; 78 return true;
77 } 79 }
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 this._sourceMapForScriptId = {}; 361 this._sourceMapForScriptId = {};
360 this._scriptForSourceMap.clear(); 362 this._scriptForSourceMap.clear();
361 this._sourceMapForURL.clear(); 363 this._sourceMapForURL.clear();
362 }, 364 },
363 365
364 dispose: function() 366 dispose: function()
365 { 367 {
366 this._workspace.removeEventListener(WebInspector.Workspace.Events.UISour ceCodeAdded, this._uiSourceCodeAddedToWorkspace, this); 368 this._workspace.removeEventListener(WebInspector.Workspace.Events.UISour ceCodeAdded, this._uiSourceCodeAddedToWorkspace, this);
367 } 369 }
368 } 370 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698