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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/bindings/BreakpointManager.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 | « no previous file | third_party/WebKit/Source/devtools/front_end/sources/JavaScriptBreakpointsSidebarPane.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 for (var i = 0; i < breakpoints.length; ++i) 376 for (var i = 0; i < breakpoints.length; ++i)
377 breakpoints[i].setEnabled(toggleState); 377 breakpoints[i].setEnabled(toggleState);
378 } 378 }
379 379
380 removeAllBreakpoints() { 380 removeAllBreakpoints() {
381 var breakpoints = this._allBreakpoints(); 381 var breakpoints = this._allBreakpoints();
382 for (var i = 0; i < breakpoints.length; ++i) 382 for (var i = 0; i < breakpoints.length; ++i)
383 breakpoints[i].remove(); 383 breakpoints[i].remove();
384 } 384 }
385 385
386 /**
387 * @param {!Set.<!Bindings.BreakpointManager.Breakpoint>} selectedBreakpoints
388 */
389 removeOtherBreakpoints(selectedBreakpoints) {
390 var allBreakpoints = this._allBreakpoints();
391 allBreakpoints.forEach(breakpoint => {
392 if (!selectedBreakpoints.has(breakpoint))
393 breakpoint.remove();
394 });
395 }
396
386 _projectRemoved(event) { 397 _projectRemoved(event) {
387 var project = /** @type {!Workspace.Project} */ (event.data); 398 var project = /** @type {!Workspace.Project} */ (event.data);
388 var uiSourceCodes = project.uiSourceCodes(); 399 var uiSourceCodes = project.uiSourceCodes();
389 for (var i = 0; i < uiSourceCodes.length; ++i) 400 for (var i = 0; i < uiSourceCodes.length; ++i)
390 this._removeUISourceCode(uiSourceCodes[i]); 401 this._removeUISourceCode(uiSourceCodes[i]);
391 } 402 }
392 403
393 /** 404 /**
394 * @param {!Bindings.BreakpointManager.Breakpoint} breakpoint 405 * @param {!Bindings.BreakpointManager.Breakpoint} breakpoint
395 * @param {boolean} removeFromStorage 406 * @param {boolean} removeFromStorage
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
1076 this.url = breakpoint._url; 1087 this.url = breakpoint._url;
1077 this.lineNumber = breakpoint.lineNumber(); 1088 this.lineNumber = breakpoint.lineNumber();
1078 this.columnNumber = breakpoint.columnNumber(); 1089 this.columnNumber = breakpoint.columnNumber();
1079 this.condition = breakpoint.condition(); 1090 this.condition = breakpoint.condition();
1080 this.enabled = breakpoint.enabled(); 1091 this.enabled = breakpoint.enabled();
1081 } 1092 }
1082 }; 1093 };
1083 1094
1084 /** @type {!Bindings.BreakpointManager} */ 1095 /** @type {!Bindings.BreakpointManager} */
1085 Bindings.breakpointManager; 1096 Bindings.breakpointManager;
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/sources/JavaScriptBreakpointsSidebarPane.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698