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( |
| 70 const v8::DebugInterface::Location& start, |
| 71 const v8::DebugInterface::Location& end, |
| 72 std::vector<v8::DebugInterface::Location>* locations); |
68 | 73 |
69 private: | 74 private: |
70 String16 m_id; | 75 String16 m_id; |
71 String16 m_url; | 76 String16 m_url; |
72 String16 m_sourceURL; | 77 String16 m_sourceURL; |
73 String16 m_sourceMappingURL; | 78 String16 m_sourceMappingURL; |
74 v8::Global<v8::String> m_source; | 79 v8::Global<v8::String> m_source; |
75 String16 m_hash; | 80 String16 m_hash; |
76 int m_startLine; | 81 int m_startLine; |
77 int m_startColumn; | 82 int m_startColumn; |
78 int m_endLine; | 83 int m_endLine; |
79 int m_endColumn; | 84 int m_endColumn; |
80 int m_executionContextId; | 85 int m_executionContextId; |
81 String16 m_executionContextAuxData; | 86 String16 m_executionContextAuxData; |
82 bool m_isLiveEdit; | 87 bool m_isLiveEdit; |
83 | 88 |
| 89 v8::Isolate* m_isolate; |
| 90 v8::Global<v8::DebugInterface::Script> m_script; |
| 91 |
84 DISALLOW_COPY_AND_ASSIGN(V8DebuggerScript); | 92 DISALLOW_COPY_AND_ASSIGN(V8DebuggerScript); |
85 }; | 93 }; |
86 | 94 |
87 } // namespace v8_inspector | 95 } // namespace v8_inspector |
88 | 96 |
89 #endif // V8_INSPECTOR_V8DEBUGGERSCRIPT_H_ | 97 #endif // V8_INSPECTOR_V8DEBUGGERSCRIPT_H_ |
OLD | NEW |