Chromium Code Reviews| 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.
|
| }; |
| /** |