| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @constructor | 6 * @constructor |
| 7 * @extends {WebInspector.SidebarPane} | 7 * @extends {WebInspector.SidebarPane} |
| 8 * @param {!WebInspector.BreakpointManager} breakpointManager | 8 * @param {!WebInspector.BreakpointManager} breakpointManager |
| 9 * @param {function(!WebInspector.UISourceCode, number=, number=, boolean=)} sho
wSourceLineDelegate | 9 * @param {function(!WebInspector.UISourceCode, number=, number=, boolean=)} sho
wSourceLineDelegate |
| 10 */ | 10 */ |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 }, | 153 }, |
| 154 | 154 |
| 155 /** | 155 /** |
| 156 * @param {!WebInspector.BreakpointManager.Breakpoint} breakpoint | 156 * @param {!WebInspector.BreakpointManager.Breakpoint} breakpoint |
| 157 * @param {!Event} event | 157 * @param {!Event} event |
| 158 */ | 158 */ |
| 159 _breakpointCheckboxClicked: function(breakpoint, event) | 159 _breakpointCheckboxClicked: function(breakpoint, event) |
| 160 { | 160 { |
| 161 // Breakpoint element has it's own click handler. | 161 // Breakpoint element has it's own click handler. |
| 162 event.consume(); | 162 event.consume(); |
| 163 breakpoint.setEnabled(event.target.checked); | 163 breakpoint.setEnabled(event.target.checkboxElement.checked); |
| 164 }, | 164 }, |
| 165 | 165 |
| 166 /** | 166 /** |
| 167 * @param {!WebInspector.BreakpointManager.Breakpoint} breakpoint | 167 * @param {!WebInspector.BreakpointManager.Breakpoint} breakpoint |
| 168 * @param {!Event} event | 168 * @param {!Event} event |
| 169 */ | 169 */ |
| 170 _breakpointContextMenu: function(breakpoint, event) | 170 _breakpointContextMenu: function(breakpoint, event) |
| 171 { | 171 { |
| 172 var breakpoints = this._items.valuesArray(); | 172 var breakpoints = this._items.valuesArray(); |
| 173 var contextMenu = new WebInspector.ContextMenu(event); | 173 var contextMenu = new WebInspector.ContextMenu(event); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 this.listElement.removeChildren(); | 242 this.listElement.removeChildren(); |
| 243 if (this.listElement.parentElement) { | 243 if (this.listElement.parentElement) { |
| 244 this.element.removeChild(this.listElement); | 244 this.element.removeChild(this.listElement); |
| 245 this.element.appendChild(this.emptyElement); | 245 this.element.appendChild(this.emptyElement); |
| 246 } | 246 } |
| 247 this._items.clear(); | 247 this._items.clear(); |
| 248 }, | 248 }, |
| 249 | 249 |
| 250 __proto__: WebInspector.SidebarPane.prototype | 250 __proto__: WebInspector.SidebarPane.prototype |
| 251 } | 251 } |
| OLD | NEW |