| 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 23 matching lines...) Expand all Loading... |
| 34 #include "src/inspector/String16.h" | 34 #include "src/inspector/String16.h" |
| 35 | 35 |
| 36 #include "include/v8.h" | 36 #include "include/v8.h" |
| 37 | 37 |
| 38 namespace v8_inspector { | 38 namespace v8_inspector { |
| 39 | 39 |
| 40 class V8DebuggerScript { | 40 class V8DebuggerScript { |
| 41 V8_INSPECTOR_DISALLOW_COPY(V8DebuggerScript); | 41 V8_INSPECTOR_DISALLOW_COPY(V8DebuggerScript); |
| 42 | 42 |
| 43 public: | 43 public: |
| 44 V8DebuggerScript(v8::Isolate*, v8::Local<v8::Object>, bool isLiveEdit); | 44 V8DebuggerScript(v8::Local<v8::Context>, v8::Local<v8::Object>, |
| 45 bool isLiveEdit); |
| 45 ~V8DebuggerScript(); | 46 ~V8DebuggerScript(); |
| 46 | 47 |
| 47 const String16& scriptId() const { return m_id; } | 48 const String16& scriptId() const { return m_id; } |
| 48 const String16& url() const { return m_url; } | 49 const String16& url() const { return m_url; } |
| 49 bool hasSourceURL() const { return !m_sourceURL.isEmpty(); } | 50 bool hasSourceURL() const { return !m_sourceURL.isEmpty(); } |
| 50 const String16& sourceURL() const; | 51 const String16& sourceURL() const; |
| 51 const String16& sourceMappingURL() const { return m_sourceMappingURL; } | 52 const String16& sourceMappingURL() const { return m_sourceMappingURL; } |
| 52 v8::Local<v8::String> source(v8::Isolate*) const; | 53 v8::Local<v8::String> source(v8::Isolate*) const; |
| 53 const String16& hash() const { return m_hash; } | 54 const String16& hash() const { return m_hash; } |
| 54 int startLine() const { return m_startLine; } | 55 int startLine() const { return m_startLine; } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 77 int m_endLine; | 78 int m_endLine; |
| 78 int m_endColumn; | 79 int m_endColumn; |
| 79 int m_executionContextId; | 80 int m_executionContextId; |
| 80 String16 m_executionContextAuxData; | 81 String16 m_executionContextAuxData; |
| 81 bool m_isLiveEdit; | 82 bool m_isLiveEdit; |
| 82 }; | 83 }; |
| 83 | 84 |
| 84 } // namespace v8_inspector | 85 } // namespace v8_inspector |
| 85 | 86 |
| 86 #endif // V8_INSPECTOR_V8DEBUGGERSCRIPT_H_ | 87 #endif // V8_INSPECTOR_V8DEBUGGERSCRIPT_H_ |
| OLD | NEW |