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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js

Issue 2546473005: [DevTools] Remove unnecessary checks for project types. (Closed)
Patch Set: fixed comment 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) 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 } 111 }
112 112
113 return result; 113 return result;
114 } 114 }
115 115
116 _showBlackboxInfobarIfNeeded() { 116 _showBlackboxInfobarIfNeeded() {
117 var uiSourceCode = this.uiSourceCode(); 117 var uiSourceCode = this.uiSourceCode();
118 if (!uiSourceCode.contentType().hasScripts()) 118 if (!uiSourceCode.contentType().hasScripts())
119 return; 119 return;
120 var projectType = uiSourceCode.project().type(); 120 var projectType = uiSourceCode.project().type();
121 if (projectType === Workspace.projectTypes.Snippets)
122 return;
123 if (!Bindings.blackboxManager.isBlackboxedUISourceCode(uiSourceCode)) { 121 if (!Bindings.blackboxManager.isBlackboxedUISourceCode(uiSourceCode)) {
124 this._hideBlackboxInfobar(); 122 this._hideBlackboxInfobar();
125 return; 123 return;
126 } 124 }
127 125
128 if (this._blackboxInfobar) 126 if (this._blackboxInfobar)
129 this._blackboxInfobar.dispose(); 127 this._blackboxInfobar.dispose();
130 128
131 var infobar = new UI.Infobar(UI.Infobar.Type.Warning, Common.UIString('This script is blackboxed in debugger')); 129 var infobar = new UI.Infobar(UI.Infobar.Type.Warning, Common.UIString('This script is blackboxed in debugger'));
132 this._blackboxInfobar = infobar; 130 this._blackboxInfobar = infobar;
(...skipping 1189 matching lines...) Expand 10 before | Expand all | Expand 10 after
1322 if (!this.bookmark) 1320 if (!this.bookmark)
1323 return; 1321 return;
1324 this.bookmark.clear(); 1322 this.bookmark.clear();
1325 this.bookmark = null; 1323 this.bookmark = null;
1326 } 1324 }
1327 }; 1325 };
1328 1326
1329 Sources.JavaScriptSourceFrame.BreakpointDecoration._decorationSymbol = Symbol('d ecoration'); 1327 Sources.JavaScriptSourceFrame.BreakpointDecoration._decorationSymbol = Symbol('d ecoration');
1330 Sources.JavaScriptSourceFrame.BreakpointDecoration.bookmarkSymbol = Symbol('book mark'); 1328 Sources.JavaScriptSourceFrame.BreakpointDecoration.bookmarkSymbol = Symbol('book mark');
1331 Sources.JavaScriptSourceFrame.BreakpointDecoration._elementSymbolForTest = Symbo l('element'); 1329 Sources.JavaScriptSourceFrame.BreakpointDecoration._elementSymbolForTest = Symbo l('element');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698