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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js

Issue 2710203003: [DevTools] show inlined shortcuts for go to location (Closed)
Patch Set: addressed comments Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js
index 33c71ee2fea48e94689d56cf39acf098bc7f5774..fe5f1c5a5a98a7ffa41025ff674e4b88069110bf 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js
@@ -269,13 +269,15 @@ SDK.DebuggerModel = class extends SDK.SDKModel {
/**
* @param {!SDK.DebuggerModel.Location} startLocation
* @param {!SDK.DebuggerModel.Location} endLocation
+ * @param {boolean} restrictToFunction
* @return {!Promise<!Array<!SDK.DebuggerModel.Location>>}
*/
- getPossibleBreakpoints(startLocation, endLocation) {
+ getPossibleBreakpoints(startLocation, endLocation, restrictToFunction) {
var fulfill;
var promise = new Promise(resolve => fulfill = resolve);
this._agent.invoke_getPossibleBreakpoints(
- {start: startLocation.payload(), end: endLocation.payload()}, checkErrorAndReturn.bind(this));
+ {start: startLocation.payload(), end: endLocation.payload(), restrictToFunction: restrictToFunction},
+ checkErrorAndReturn.bind(this));
return promise;
/**

Powered by Google App Engine
This is Rietveld 408576698