| 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 */ | 255 */ |
| 256 findBreakpoint(uiSourceCode, lineNumber, columnNumber) { | 256 findBreakpoint(uiSourceCode, lineNumber, columnNumber) { |
| 257 var breakpoints = this._breakpointsForUISourceCode.get(uiSourceCode); | 257 var breakpoints = this._breakpointsForUISourceCode.get(uiSourceCode); |
| 258 var lineBreakpoints = breakpoints ? breakpoints.get(lineNumber) : null; | 258 var lineBreakpoints = breakpoints ? breakpoints.get(lineNumber) : null; |
| 259 var columnBreakpoints = lineBreakpoints ? lineBreakpoints.get(columnNumber)
: null; | 259 var columnBreakpoints = lineBreakpoints ? lineBreakpoints.get(columnNumber)
: null; |
| 260 return columnBreakpoints ? columnBreakpoints[0] : null; | 260 return columnBreakpoints ? columnBreakpoints[0] : null; |
| 261 } | 261 } |
| 262 | 262 |
| 263 /** | 263 /** |
| 264 * @param {!Workspace.UISourceCode} uiSourceCode | 264 * @param {!Workspace.UISourceCode} uiSourceCode |
| 265 * @param {!Common.TextRange} textRange | 265 * @param {!TextUtils.TextRange} textRange |
| 266 * @return {!Promise<!Array<!Workspace.UILocation>>} | 266 * @return {!Promise<!Array<!Workspace.UILocation>>} |
| 267 */ | 267 */ |
| 268 possibleBreakpoints(uiSourceCode, textRange) { | 268 possibleBreakpoints(uiSourceCode, textRange) { |
| 269 var debuggerModels = this._targetManager.models(SDK.DebuggerModel); | 269 var debuggerModels = this._targetManager.models(SDK.DebuggerModel); |
| 270 if (!debuggerModels.length) | 270 if (!debuggerModels.length) |
| 271 return Promise.resolve([]); | 271 return Promise.resolve([]); |
| 272 for (var debuggerModel of debuggerModels) { | 272 for (var debuggerModel of debuggerModels) { |
| 273 var startLocation = this._debuggerWorkspaceBinding.uiLocationToRawLocation
( | 273 var startLocation = this._debuggerWorkspaceBinding.uiLocationToRawLocation
( |
| 274 debuggerModel, uiSourceCode, textRange.startLine, textRange.startColum
n); | 274 debuggerModel, uiSourceCode, textRange.startLine, textRange.startColum
n); |
| 275 if (!startLocation) | 275 if (!startLocation) |
| (...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1088 this.url = breakpoint._url; | 1088 this.url = breakpoint._url; |
| 1089 this.lineNumber = breakpoint.lineNumber(); | 1089 this.lineNumber = breakpoint.lineNumber(); |
| 1090 this.columnNumber = breakpoint.columnNumber(); | 1090 this.columnNumber = breakpoint.columnNumber(); |
| 1091 this.condition = breakpoint.condition(); | 1091 this.condition = breakpoint.condition(); |
| 1092 this.enabled = breakpoint.enabled(); | 1092 this.enabled = breakpoint.enabled(); |
| 1093 } | 1093 } |
| 1094 }; | 1094 }; |
| 1095 | 1095 |
| 1096 /** @type {!Bindings.BreakpointManager} */ | 1096 /** @type {!Bindings.BreakpointManager} */ |
| 1097 Bindings.breakpointManager; | 1097 Bindings.breakpointManager; |
| OLD | NEW |