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

Unified 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, 11 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/bindings/BreakpointManager.js
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/BreakpointManager.js b/third_party/WebKit/Source/devtools/front_end/bindings/BreakpointManager.js
index c220b650ee95511355d04bdeee21acd406683413..34f65e47650d24fc1f9561cc21614b9d4c0861d6 100644
--- a/third_party/WebKit/Source/devtools/front_end/bindings/BreakpointManager.js
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/BreakpointManager.js
@@ -383,6 +383,17 @@ Bindings.BreakpointManager = class extends Common.Object {
breakpoints[i].remove();
}
+ /**
+ * @param {!Set.<!Bindings.BreakpointManager.Breakpoint>} selectedBreakpoints
+ */
+ removeOtherBreakpoints(selectedBreakpoints) {
+ var allBreakpoints = this._allBreakpoints();
+ allBreakpoints.forEach(breakpoint => {
+ if (!selectedBreakpoints.has(breakpoint))
+ breakpoint.remove();
+ });
+ }
+
_projectRemoved(event) {
var project = /** @type {!Workspace.Project} */ (event.data);
var uiSourceCodes = project.uiSourceCodes();
« 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