| 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 * @implements {UI.ContextFlavorListener} | 5 * @implements {UI.ContextFlavorListener} |
| 6 * @unrestricted | 6 * @unrestricted |
| 7 */ | 7 */ |
| 8 Sources.JavaScriptBreakpointsSidebarPane = class extends UI.ThrottledWidget { | 8 Sources.JavaScriptBreakpointsSidebarPane = class extends UI.ThrottledWidget { |
| 9 constructor() { | 9 constructor() { |
| 10 super(true); | 10 super(true); |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 contextMenu.appendItem( | 197 contextMenu.appendItem( |
| 198 enableTitle, this._breakpointManager.toggleAllBreakpoints.bind(this._b
reakpointManager, true)); | 198 enableTitle, this._breakpointManager.toggleAllBreakpoints.bind(this._b
reakpointManager, true)); |
| 199 } | 199 } |
| 200 if (breakpoints.some(breakpoint => breakpoint.enabled())) { | 200 if (breakpoints.some(breakpoint => breakpoint.enabled())) { |
| 201 var disableTitle = Common.UIString('Disable all breakpoints'); | 201 var disableTitle = Common.UIString('Disable all breakpoints'); |
| 202 contextMenu.appendItem( | 202 contextMenu.appendItem( |
| 203 disableTitle, this._breakpointManager.toggleAllBreakpoints.bind(this._
breakpointManager, false)); | 203 disableTitle, this._breakpointManager.toggleAllBreakpoints.bind(this._
breakpointManager, false)); |
| 204 } | 204 } |
| 205 var removeAllTitle = Common.UIString('Remove all breakpoints'); | 205 var removeAllTitle = Common.UIString('Remove all breakpoints'); |
| 206 contextMenu.appendItem(removeAllTitle, this._breakpointManager.removeAllBrea
kpoints.bind(this._breakpointManager)); | 206 contextMenu.appendItem(removeAllTitle, this._breakpointManager.removeAllBrea
kpoints.bind(this._breakpointManager)); |
| 207 var removeOtherTitle = Common.UIString('Remove other breakpoints'); |
| 208 contextMenu.appendItem( |
| 209 removeOtherTitle, |
| 210 this._breakpointManager.removeOtherBreakpoints.bind(this._breakpointMana
ger, new Set(breakpoints))); |
| 207 contextMenu.show(); | 211 contextMenu.show(); |
| 208 } | 212 } |
| 209 | 213 |
| 210 /** | 214 /** |
| 211 * @override | 215 * @override |
| 212 * @param {?Object} object | 216 * @param {?Object} object |
| 213 */ | 217 */ |
| 214 flavorChanged(object) { | 218 flavorChanged(object) { |
| 215 this.update(); | 219 this.update(); |
| 216 } | 220 } |
| 217 | 221 |
| 218 _didUpdateForTest() { | 222 _didUpdateForTest() { |
| 219 } | 223 } |
| 220 }; | 224 }; |
| 221 | 225 |
| 222 Sources.JavaScriptBreakpointsSidebarPane._locationSymbol = Symbol('location'); | 226 Sources.JavaScriptBreakpointsSidebarPane._locationSymbol = Symbol('location'); |
| 223 Sources.JavaScriptBreakpointsSidebarPane._checkboxLabelSymbol = Symbol('checkbox
-label'); | 227 Sources.JavaScriptBreakpointsSidebarPane._checkboxLabelSymbol = Symbol('checkbox
-label'); |
| 224 Sources.JavaScriptBreakpointsSidebarPane._snippetElementSymbol = Symbol('snippet
-element'); | 228 Sources.JavaScriptBreakpointsSidebarPane._snippetElementSymbol = Symbol('snippet
-element'); |
| OLD | NEW |