Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/JavaScriptBreakpointsSidebarPane.js

Issue 2672483002: [DevTools] Remove other breakpoints (Closed)
Patch Set: After review Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/bindings/BreakpointManager.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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');
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/bindings/BreakpointManager.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698