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

Side by Side Diff: Source/devtools/front_end/workspace/Workspace.js

Issue 697563003: DevTools: do not show compiled script while source maps are being loaded. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: w/ tests Created 6 years, 1 month 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
« no previous file with comments | « Source/devtools/front_end/sources/UISourceCodeFrame.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 url: function() 288 url: function()
289 { 289 {
290 return this._url; 290 return this._url;
291 }, 291 },
292 292
293 /** 293 /**
294 * @return {boolean} 294 * @return {boolean}
295 */ 295 */
296 isServiceProject: function() 296 isServiceProject: function()
297 { 297 {
298 return this._projectDelegate.type() === WebInspector.projectTypes.Debugg er || this._projectDelegate.type() === WebInspector.projectTypes.Formatter || th is._projectDelegate.type() === WebInspector.projectTypes.LiveEdit; 298 return this._projectDelegate.type() === WebInspector.projectTypes.Debugg er || this._projectDelegate.type() === WebInspector.projectTypes.Formatter || th is._projectDelegate.type() === WebInspector.projectTypes.LiveEdit ||
299 this._projectDelegate.type() === WebInspector.projectTypes.Service;
299 }, 300 },
300 301
301 /** 302 /**
302 * @param {!WebInspector.FileDescriptor} fileDescriptor 303 * @param {!WebInspector.FileDescriptor} fileDescriptor
303 */ 304 */
304 _addFile: function(fileDescriptor) 305 _addFile: function(fileDescriptor)
305 { 306 {
306 var path = fileDescriptor.parentPath ? fileDescriptor.parentPath + "/" + fileDescriptor.name : fileDescriptor.name; 307 var path = fileDescriptor.parentPath ? fileDescriptor.parentPath + "/" + fileDescriptor.name : fileDescriptor.name;
307 var uiSourceCode = this.uiSourceCode(path); 308 var uiSourceCode = this.uiSourceCode(path);
308 if (uiSourceCode) 309 if (uiSourceCode)
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 /** 561 /**
561 * @enum {string} 562 * @enum {string}
562 */ 563 */
563 WebInspector.projectTypes = { 564 WebInspector.projectTypes = {
564 Debugger: "debugger", 565 Debugger: "debugger",
565 Formatter: "formatter", 566 Formatter: "formatter",
566 LiveEdit: "liveedit", 567 LiveEdit: "liveedit",
567 Network: "network", 568 Network: "network",
568 Snippets: "snippets", 569 Snippets: "snippets",
569 FileSystem: "filesystem", 570 FileSystem: "filesystem",
570 ContentScripts: "contentscripts" 571 ContentScripts: "contentscripts",
572 Service: "service"
571 } 573 }
572 574
573 /** 575 /**
574 * @constructor 576 * @constructor
575 * @extends {WebInspector.Object} 577 * @extends {WebInspector.Object}
576 * @param {!WebInspector.FileSystemMapping} fileSystemMapping 578 * @param {!WebInspector.FileSystemMapping} fileSystemMapping
577 */ 579 */
578 WebInspector.Workspace = function(fileSystemMapping) 580 WebInspector.Workspace = function(fileSystemMapping)
579 { 581 {
580 this._fileSystemMapping = fileSystemMapping; 582 this._fileSystemMapping = fileSystemMapping;
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
843 this.addEventListener(WebInspector.Workspace.Events.UISourceCodeAdded, l istener, this); 845 this.addEventListener(WebInspector.Workspace.Events.UISourceCodeAdded, l istener, this);
844 }, 846 },
845 847
846 __proto__: WebInspector.Object.prototype 848 __proto__: WebInspector.Object.prototype
847 } 849 }
848 850
849 /** 851 /**
850 * @type {!WebInspector.Workspace} 852 * @type {!WebInspector.Workspace}
851 */ 853 */
852 WebInspector.workspace; 854 WebInspector.workspace;
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sources/UISourceCodeFrame.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698