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

Side by Side Diff: Source/devtools/front_end/sources/UISourceCodeFrame.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
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 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 10 *
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 delete this._boundWindowFocused; 73 delete this._boundWindowFocused;
74 this._uiSourceCode.removeWorkingCopyGetter(); 74 this._uiSourceCode.removeWorkingCopyGetter();
75 }, 75 },
76 76
77 /** 77 /**
78 * @return {boolean} 78 * @return {boolean}
79 */ 79 */
80 canEditSource: function() 80 canEditSource: function()
81 { 81 {
82 var projectType = this._uiSourceCode.project().type(); 82 var projectType = this._uiSourceCode.project().type();
83 if (projectType === WebInspector.projectTypes.Debugger || projectType == = WebInspector.projectTypes.Formatter) 83 if (projectType === WebInspector.projectTypes.Service || projectType === WebInspector.projectTypes.Debugger || projectType === WebInspector.projectTypes .Formatter)
84 return false; 84 return false;
85 if (projectType === WebInspector.projectTypes.Network && this._uiSourceC ode.contentType() === WebInspector.resourceTypes.Document) 85 if (projectType === WebInspector.projectTypes.Network && this._uiSourceC ode.contentType() === WebInspector.resourceTypes.Document)
86 return false; 86 return false;
87 return true; 87 return true;
88 }, 88 },
89 89
90 _windowFocused: function(event) 90 _windowFocused: function(event)
91 { 91 {
92 this._checkContentUpdated(); 92 this._checkContentUpdated();
93 }, 93 },
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 290
291 dispose: function() 291 dispose: function()
292 { 292 {
293 this.element.remove(); 293 this.element.remove();
294 this._onResize(); 294 this._onResize();
295 delete this._uiSourceCodeFrame; 295 delete this._uiSourceCodeFrame;
296 if (this._onDispose) 296 if (this._onDispose)
297 this._onDispose(); 297 this._onDispose();
298 } 298 }
299 } 299 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/common/StaticContentProvider.js ('k') | Source/devtools/front_end/workspace/Workspace.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698