| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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; |
| OLD | NEW |