| 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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 } | 245 } |
| 246 | 246 |
| 247 /** | 247 /** |
| 248 * @param {!WebInspector.UISourceCode} uiSourceCode | 248 * @param {!WebInspector.UISourceCode} uiSourceCode |
| 249 * @param {number} lineNumber | 249 * @param {number} lineNumber |
| 250 * @return {!Array<!WebInspector.BreakpointManager.Breakpoint>} | 250 * @return {!Array<!WebInspector.BreakpointManager.Breakpoint>} |
| 251 */ | 251 */ |
| 252 findBreakpoints(uiSourceCode, lineNumber) { | 252 findBreakpoints(uiSourceCode, lineNumber) { |
| 253 var breakpoints = this._breakpointsForUISourceCode.get(uiSourceCode); | 253 var breakpoints = this._breakpointsForUISourceCode.get(uiSourceCode); |
| 254 var lineBreakpoints = breakpoints ? breakpoints.get(lineNumber) : null; | 254 var lineBreakpoints = breakpoints ? breakpoints.get(lineNumber) : null; |
| 255 return lineBreakpoints ? lineBreakpoints.valuesArray()[0] : []; | 255 return lineBreakpoints ? [].concat.apply([], lineBreakpoints.valuesArray())
: []; |
| 256 } | 256 } |
| 257 | 257 |
| 258 /** | 258 /** |
| 259 * @param {!WebInspector.UISourceCode} uiSourceCode | 259 * @param {!WebInspector.UISourceCode} uiSourceCode |
| 260 * @param {number} lineNumber | 260 * @param {number} lineNumber |
| 261 * @param {number} columnNumber | 261 * @param {number} columnNumber |
| 262 * @return {?WebInspector.BreakpointManager.Breakpoint} | 262 * @return {?WebInspector.BreakpointManager.Breakpoint} |
| 263 */ | 263 */ |
| 264 findBreakpoint(uiSourceCode, lineNumber, columnNumber) { | 264 findBreakpoint(uiSourceCode, lineNumber, columnNumber) { |
| 265 var breakpoints = this._breakpointsForUISourceCode.get(uiSourceCode); | 265 var breakpoints = this._breakpointsForUISourceCode.get(uiSourceCode); |
| (...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1091 this.sourceFileId = breakpoint._sourceFileId; | 1091 this.sourceFileId = breakpoint._sourceFileId; |
| 1092 this.lineNumber = breakpoint.lineNumber(); | 1092 this.lineNumber = breakpoint.lineNumber(); |
| 1093 this.columnNumber = breakpoint.columnNumber(); | 1093 this.columnNumber = breakpoint.columnNumber(); |
| 1094 this.condition = breakpoint.condition(); | 1094 this.condition = breakpoint.condition(); |
| 1095 this.enabled = breakpoint.enabled(); | 1095 this.enabled = breakpoint.enabled(); |
| 1096 } | 1096 } |
| 1097 }; | 1097 }; |
| 1098 | 1098 |
| 1099 /** @type {!WebInspector.BreakpointManager} */ | 1099 /** @type {!WebInspector.BreakpointManager} */ |
| 1100 WebInspector.breakpointManager; | 1100 WebInspector.breakpointManager; |
| OLD | NEW |