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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/bindings/BreakpointManager.js

Issue 2500493003: [DevTools] make breakpoints better (Closed)
Patch Set: Created 4 years, 1 month 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
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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698