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

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

Issue 2769843003: DevTools: split text_utils out of common module (Closed)
Patch Set: rebaseline Created 3 years, 9 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 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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;
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/BUILD.gn ('k') | third_party/WebKit/Source/devtools/front_end/common/ContentProvider.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698