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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 * @this {WebInspector.JavaScriptSourceFrame} | 122 * @this {WebInspector.JavaScriptSourceFrame} |
123 */ | 123 */ |
124 function toggleDetails() | 124 function toggleDetails() |
125 { | 125 { |
126 detailsToggleElement._toggled = !detailsToggleElement._toggled; | 126 detailsToggleElement._toggled = !detailsToggleElement._toggled; |
127 updateDetailsVisibility.call(this); | 127 updateDetailsVisibility.call(this); |
128 } | 128 } |
129 | 129 |
130 infobarMainRow.appendChild(document.createTextNode("\u00a0")); | 130 infobarMainRow.appendChild(document.createTextNode("\u00a0")); |
131 var detailsToggleElement = infobarMainRow.createChild("div", "java-scrip
t-source-frame-infobar-toggle"); | 131 var detailsToggleElement = infobarMainRow.createChild("div", "java-scrip
t-source-frame-infobar-toggle"); |
132 detailsToggleElement.addEventListener("click", toggleDetails.bind(this))
; | 132 detailsToggleElement.addEventListener("click", toggleDetails.bind(this),
false); |
133 updateDetailsVisibility.call(this); | 133 updateDetailsVisibility.call(this); |
134 | 134 |
135 function createDetailsRowMessage() | 135 function createDetailsRowMessage() |
136 { | 136 { |
137 var infobarDetailsRow = infobarDetailsContainer.createChild("div", "
java-script-source-frame-infobar-details-row"); | 137 var infobarDetailsRow = infobarDetailsContainer.createChild("div", "
java-script-source-frame-infobar-details-row"); |
138 return infobarDetailsRow.createChild("span", "java-script-source-fra
me-infobar-row-message"); | 138 return infobarDetailsRow.createChild("span", "java-script-source-fra
me-infobar-row-message"); |
139 } | 139 } |
140 | 140 |
141 var infobarDetailsRowMessage; | 141 var infobarDetailsRowMessage; |
142 | 142 |
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
836 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.
ConsoleMessageRemoved, this._consoleMessageRemoved, this); | 836 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.
ConsoleMessageRemoved, this._consoleMessageRemoved, this); |
837 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.
ConsoleMessagesCleared, this._consoleMessagesCleared, this); | 837 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.
ConsoleMessagesCleared, this._consoleMessagesCleared, this); |
838 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.
SourceMappingChanged, this._onSourceMappingChanged, this); | 838 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.
SourceMappingChanged, this._onSourceMappingChanged, this); |
839 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.
WorkingCopyChanged, this._workingCopyChanged, this); | 839 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.
WorkingCopyChanged, this._workingCopyChanged, this); |
840 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.
WorkingCopyCommitted, this._workingCopyCommitted, this); | 840 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.
WorkingCopyCommitted, this._workingCopyCommitted, this); |
841 WebInspector.UISourceCodeFrame.prototype.dispose.call(this); | 841 WebInspector.UISourceCodeFrame.prototype.dispose.call(this); |
842 }, | 842 }, |
843 | 843 |
844 __proto__: WebInspector.UISourceCodeFrame.prototype | 844 __proto__: WebInspector.UISourceCodeFrame.prototype |
845 } | 845 } |
OLD | NEW |