OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2010 Google Inc. All rights reserved. | 3 * Copyright (C) 2010 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 int endLine() const { return m_endLine; } | 57 int endLine() const { return m_endLine; } |
58 int endColumn() const { return m_endColumn; } | 58 int endColumn() const { return m_endColumn; } |
59 int executionContextId() const { return m_executionContextId; } | 59 int executionContextId() const { return m_executionContextId; } |
60 const String16& executionContextAuxData() const { | 60 const String16& executionContextAuxData() const { |
61 return m_executionContextAuxData; | 61 return m_executionContextAuxData; |
62 } | 62 } |
63 bool isLiveEdit() const { return m_isLiveEdit; } | 63 bool isLiveEdit() const { return m_isLiveEdit; } |
64 | 64 |
65 void setSourceURL(const String16&); | 65 void setSourceURL(const String16&); |
66 void setSourceMappingURL(const String16&); | 66 void setSourceMappingURL(const String16&); |
67 void setSource(v8::Isolate*, v8::Local<v8::String>); | 67 void setSource(v8::Local<v8::String>); |
| 68 |
| 69 bool getPossibleBreakpoints(int startLine, int startColumn, int endLine, |
| 70 int endColumn, std::vector<int>& positions); |
68 | 71 |
69 private: | 72 private: |
70 String16 m_id; | 73 String16 m_id; |
71 String16 m_url; | 74 String16 m_url; |
72 String16 m_sourceURL; | 75 String16 m_sourceURL; |
73 String16 m_sourceMappingURL; | 76 String16 m_sourceMappingURL; |
74 v8::Global<v8::String> m_source; | 77 v8::Global<v8::String> m_source; |
75 String16 m_hash; | 78 String16 m_hash; |
76 int m_startLine; | 79 int m_startLine; |
77 int m_startColumn; | 80 int m_startColumn; |
78 int m_endLine; | 81 int m_endLine; |
79 int m_endColumn; | 82 int m_endColumn; |
80 int m_executionContextId; | 83 int m_executionContextId; |
81 String16 m_executionContextAuxData; | 84 String16 m_executionContextAuxData; |
82 bool m_isLiveEdit; | 85 bool m_isLiveEdit; |
83 | 86 |
| 87 v8::Isolate* m_isolate; |
| 88 v8::Global<v8::DebugInterface::Script> m_script; |
| 89 |
84 DISALLOW_COPY_AND_ASSIGN(V8DebuggerScript); | 90 DISALLOW_COPY_AND_ASSIGN(V8DebuggerScript); |
85 }; | 91 }; |
86 | 92 |
87 } // namespace v8_inspector | 93 } // namespace v8_inspector |
88 | 94 |
89 #endif // V8_INSPECTOR_V8DEBUGGERSCRIPT_H_ | 95 #endif // V8_INSPECTOR_V8DEBUGGERSCRIPT_H_ |
OLD | NEW |