| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 void setSourceURL(const String16&); | 72 void setSourceURL(const String16&); |
| 73 virtual void setSourceMappingURL(const String16&) = 0; | 73 virtual void setSourceMappingURL(const String16&) = 0; |
| 74 void setSource(const String16& source) { | 74 void setSource(const String16& source) { |
| 75 m_source = source; | 75 m_source = source; |
| 76 m_hash = String16(); | 76 m_hash = String16(); |
| 77 } | 77 } |
| 78 | 78 |
| 79 virtual bool getPossibleBreakpoints( | 79 virtual bool getPossibleBreakpoints( |
| 80 const v8::debug::Location& start, const v8::debug::Location& end, | 80 const v8::debug::Location& start, const v8::debug::Location& end, |
| 81 bool ignoreNestedFunctions, | 81 bool ignoreNestedFunctions, |
| 82 std::vector<v8::debug::Location>* locations) = 0; | 82 std::vector<v8::debug::BreakLocation>* locations) = 0; |
| 83 virtual void resetBlackboxedStateCache() = 0; | 83 virtual void resetBlackboxedStateCache() = 0; |
| 84 | 84 |
| 85 static const int kNoOffset = -1; | 85 static const int kNoOffset = -1; |
| 86 virtual int offset(int lineNumber, int columnNumber) const = 0; | 86 virtual int offset(int lineNumber, int columnNumber) const = 0; |
| 87 virtual v8::debug::Location location(int offset) const = 0; | 87 virtual v8::debug::Location location(int offset) const = 0; |
| 88 | 88 |
| 89 protected: | 89 protected: |
| 90 V8DebuggerScript(v8::Isolate*, String16 id, String16 url); | 90 V8DebuggerScript(v8::Isolate*, String16 id, String16 url); |
| 91 | 91 |
| 92 String16 m_id; | 92 String16 m_id; |
| 93 String16 m_url; | 93 String16 m_url; |
| 94 String16 m_sourceURL; | 94 String16 m_sourceURL; |
| 95 String16 m_source; | 95 String16 m_source; |
| 96 mutable String16 m_hash; | 96 mutable String16 m_hash; |
| 97 int m_startLine = 0; | 97 int m_startLine = 0; |
| 98 int m_startColumn = 0; | 98 int m_startColumn = 0; |
| 99 int m_endLine = 0; | 99 int m_endLine = 0; |
| 100 int m_endColumn = 0; | 100 int m_endColumn = 0; |
| 101 int m_executionContextId = 0; | 101 int m_executionContextId = 0; |
| 102 | 102 |
| 103 v8::Isolate* m_isolate; | 103 v8::Isolate* m_isolate; |
| 104 | 104 |
| 105 private: | 105 private: |
| 106 DISALLOW_COPY_AND_ASSIGN(V8DebuggerScript); | 106 DISALLOW_COPY_AND_ASSIGN(V8DebuggerScript); |
| 107 }; | 107 }; |
| 108 | 108 |
| 109 } // namespace v8_inspector | 109 } // namespace v8_inspector |
| 110 | 110 |
| 111 #endif // V8_INSPECTOR_V8DEBUGGERSCRIPT_H_ | 111 #endif // V8_INSPECTOR_V8DEBUGGERSCRIPT_H_ |
| OLD | NEW |