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

Unified Diff: src/debug/debug-interface.h

Issue 2465553003: [inspector] added Debugger.getPossibleBreakpoints method (Closed)
Patch Set: it works 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 side-by-side diff with in-line comments
Download patch
Index: src/debug/debug-interface.h
diff --git a/src/debug/debug-interface.h b/src/debug/debug-interface.h
index 77bab3a50c6336a780394fd068c9febfcad6af83..baf240010a6da68257a855d2a3387af020e19d9c 100644
--- a/src/debug/debug-interface.h
+++ b/src/debug/debug-interface.h
@@ -158,6 +158,12 @@ class DebugInterface {
MaybeLocal<String> SourceMappingURL() const;
MaybeLocal<String> ContextData() const;
MaybeLocal<String> Source() const;
+ /**
+ * lines and columns are 0-based.
+ */
+ bool GetPossibleBreakpoints(int start_line, int start_column, int end_line,
+ int end_column,
+ std::vector<int>& positions) const;
/**
* script parameter is a wrapper v8::internal::JSObject for
@@ -169,6 +175,9 @@ class DebugInterface {
*/
static MaybeLocal<Script> Wrap(Isolate* isolate,
v8::Local<v8::Object> script);
+
+ private:
+ int Offset(int line, int column) const;
Yang 2016/11/02 13:51:15 Can we have a nicer name? GetSourcePosition maybe?
kozy 2016/11/03 01:15:02 Done.
};
/**
« src/debug/debug.cc ('K') | « src/debug/debug.cc ('k') | src/inspector/js_protocol.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698