| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 this._blackboxInfobar.dispose(); | 141 this._blackboxInfobar.dispose(); |
| 142 | 142 |
| 143 var infobar = new WebInspector.UISourceCodeFrame.Infobar(WebInspector.UI
SourceCodeFrame.Infobar.Level.Warning, WebInspector.UIString("This script is bla
ckboxed in debugger")); | 143 var infobar = new WebInspector.UISourceCodeFrame.Infobar(WebInspector.UI
SourceCodeFrame.Infobar.Level.Warning, WebInspector.UIString("This script is bla
ckboxed in debugger")); |
| 144 this._blackboxInfobar = infobar; | 144 this._blackboxInfobar = infobar; |
| 145 | 145 |
| 146 infobar.createDetailsRowMessage(WebInspector.UIString("Debugger will ski
p stepping through this script, and will not stop on exceptions")); | 146 infobar.createDetailsRowMessage(WebInspector.UIString("Debugger will ski
p stepping through this script, and will not stop on exceptions")); |
| 147 infobar.createDetailsRowMessage(); | 147 infobar.createDetailsRowMessage(); |
| 148 infobar.createDetailsRowMessage(WebInspector.UIString("Possible ways to
cancel this behavior are:")); | 148 infobar.createDetailsRowMessage(WebInspector.UIString("Possible ways to
cancel this behavior are:")); |
| 149 | 149 |
| 150 infobar.createDetailsRowMessage(" - ").createTextChild(WebInspector.UISt
ring("Press \"%s\" button in settings", WebInspector.manageBlackboxingButtonLabe
l())); | 150 infobar.createDetailsRowMessage(" - ").createTextChild(WebInspector.UISt
ring("Press \"%s\" button in settings", WebInspector.manageBlackboxingButtonLabe
l())); |
| 151 var unblackboxLink = infobar.createDetailsRowMessage(" - ").createChild(
"span", "source-frame-infobar-link"); | 151 var unblackboxLink = infobar.createDetailsRowMessage(" - ").createChild(
"span", "link"); |
| 152 unblackboxLink.textContent = WebInspector.UIString("Unblackbox this scri
pt"); | 152 unblackboxLink.textContent = WebInspector.UIString("Unblackbox this scri
pt"); |
| 153 unblackboxLink.addEventListener("click", unblackbox, false); | 153 unblackboxLink.addEventListener("click", unblackbox, false); |
| 154 | 154 |
| 155 function unblackbox() | 155 function unblackbox() |
| 156 { | 156 { |
| 157 WebInspector.BlackboxSupport.unblackbox(url, isContentScript); | 157 WebInspector.BlackboxSupport.unblackbox(url, isContentScript); |
| 158 } | 158 } |
| 159 | 159 |
| 160 this._updateInfobars(); | 160 this._updateInfobars(); |
| 161 }, | 161 }, |
| (...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 922 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.
WorkingCopyChanged, this._workingCopyChanged, this); | 922 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.
WorkingCopyChanged, this._workingCopyChanged, this); |
| 923 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.
WorkingCopyCommitted, this._workingCopyCommitted, this); | 923 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.
WorkingCopyCommitted, this._workingCopyCommitted, this); |
| 924 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.
TitleChanged, this._showBlackboxInfobarIfNeeded, this); | 924 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.
TitleChanged, this._showBlackboxInfobarIfNeeded, this); |
| 925 WebInspector.settings.skipStackFramesPattern.removeChangeListener(this._
showBlackboxInfobarIfNeeded, this); | 925 WebInspector.settings.skipStackFramesPattern.removeChangeListener(this._
showBlackboxInfobarIfNeeded, this); |
| 926 WebInspector.settings.skipContentScripts.removeChangeListener(this._show
BlackboxInfobarIfNeeded, this); | 926 WebInspector.settings.skipContentScripts.removeChangeListener(this._show
BlackboxInfobarIfNeeded, this); |
| 927 WebInspector.UISourceCodeFrame.prototype.dispose.call(this); | 927 WebInspector.UISourceCodeFrame.prototype.dispose.call(this); |
| 928 }, | 928 }, |
| 929 | 929 |
| 930 __proto__: WebInspector.UISourceCodeFrame.prototype | 930 __proto__: WebInspector.UISourceCodeFrame.prototype |
| 931 } | 931 } |
| OLD | NEW |