| OLD | NEW |
| 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 Loading... |
| 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 982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1115 static mostSpecificFirst(decoration1, decoration2) { | 1113 static mostSpecificFirst(decoration1, decoration2) { |
| 1116 if (!!decoration1.condition !== !!decoration2.condition) | 1114 if (!!decoration1.condition !== !!decoration2.condition) |
| 1117 return !!decoration1.condition ? -1 : 1; | 1115 return !!decoration1.condition ? -1 : 1; |
| 1118 if (decoration1.enabled !== decoration2.enabled) | 1116 if (decoration1.enabled !== decoration2.enabled) |
| 1119 return decoration1.enabled ? -1 : 1; | 1117 return decoration1.enabled ? -1 : 1; |
| 1120 return 0; | 1118 return 0; |
| 1121 } | 1119 } |
| 1122 }; | 1120 }; |
| 1123 | 1121 |
| 1124 Sources.JavaScriptSourceFrame.BreakpointDecoration._decorationSymbol = Symbol('d
ecoration'); | 1122 Sources.JavaScriptSourceFrame.BreakpointDecoration._decorationSymbol = Symbol('d
ecoration'); |
| OLD | NEW |