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

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

Issue 2537223003: [DevTools] Introduce Project.isServiceProject method. (Closed)
Patch Set: rebased Created 4 years 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 /** @type {!Map<string, !SDK.TextSourceMap>} */ 50 /** @type {!Map<string, !SDK.TextSourceMap>} */
51 this._sourceMapForScriptId = new Map(); 51 this._sourceMapForScriptId = new Map();
52 /** @type {!Map.<!SDK.TextSourceMap, !SDK.Script>} */ 52 /** @type {!Map.<!SDK.TextSourceMap, !SDK.Script>} */
53 this._scriptForSourceMap = new Map(); 53 this._scriptForSourceMap = new Map();
54 /** @type {!Map.<string, !SDK.TextSourceMap>} */ 54 /** @type {!Map.<string, !SDK.TextSourceMap>} */
55 this._sourceMapForURL = new Map(); 55 this._sourceMapForURL = new Map();
56 /** @type {!Map.<string, !Workspace.UISourceCode>} */ 56 /** @type {!Map.<string, !Workspace.UISourceCode>} */
57 this._stubUISourceCodes = new Map(); 57 this._stubUISourceCodes = new Map();
58 58
59 var projectId = Bindings.CompilerScriptMapping.projectIdForTarget(this._targ et); 59 var projectId = Bindings.CompilerScriptMapping.projectIdForTarget(this._targ et);
60 this._stubProject = 60 this._stubProject = new Bindings.ContentProviderBasedProject(
61 new Bindings.ContentProviderBasedProject(workspace, projectId, Workspace .projectTypes.Service, ''); 61 workspace, projectId, Workspace.projectTypes.Service, '', true /* isServ iceProject */);
62 this._eventListeners = [ 62 this._eventListeners = [
63 workspace.addEventListener( 63 workspace.addEventListener(
64 Workspace.Workspace.Events.UISourceCodeAdded, this._uiSourceCodeAddedT oWorkspace, this), 64 Workspace.Workspace.Events.UISourceCodeAdded, this._uiSourceCodeAddedT oWorkspace, this),
65 debuggerModel.addEventListener(SDK.DebuggerModel.Events.GlobalObjectCleare d, this._debuggerReset, this) 65 debuggerModel.addEventListener(SDK.DebuggerModel.Events.GlobalObjectCleare d, this._debuggerReset, this)
66 ]; 66 ];
67 } 67 }
68 68
69 /** 69 /**
70 * @param {!Workspace.UISourceCode} uiSourceCode 70 * @param {!Workspace.UISourceCode} uiSourceCode
71 * @return {?string} 71 * @return {?string}
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 } 375 }
376 376
377 dispose() { 377 dispose() {
378 Common.EventTarget.removeEventListeners(this._eventListeners); 378 Common.EventTarget.removeEventListeners(this._eventListeners);
379 this._debuggerReset(); 379 this._debuggerReset();
380 this._stubProject.dispose(); 380 this._stubProject.dispose();
381 } 381 }
382 }; 382 };
383 383
384 Bindings.CompilerScriptMapping._originSymbol = Symbol('origin'); 384 Bindings.CompilerScriptMapping._originSymbol = Symbol('origin');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698