| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010, Google Inc. All rights reserved. | 2 * Copyright (c) 2010, Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef V8DebuggerImpl_h | 31 #ifndef V8DebuggerImpl_h |
| 32 #define V8DebuggerImpl_h | 32 #define V8DebuggerImpl_h |
| 33 | 33 |
| 34 #include "platform/inspector_protocol/TypeBuilder.h" | 34 #include "platform/inspector_protocol/TypeBuilder.h" |
| 35 #include "platform/v8_inspector/JavaScriptCallFrame.h" |
| 35 #include "platform/v8_inspector/V8DebuggerScript.h" | 36 #include "platform/v8_inspector/V8DebuggerScript.h" |
| 36 #include "platform/v8_inspector/public/V8Debugger.h" | 37 #include "platform/v8_inspector/public/V8Debugger.h" |
| 37 #include "wtf/PassOwnPtr.h" | 38 #include "wtf/PassOwnPtr.h" |
| 38 | 39 |
| 39 #include <v8-debug.h> | 40 #include <v8-debug.h> |
| 40 #include <v8.h> | 41 #include <v8.h> |
| 41 | 42 |
| 42 namespace blink { | 43 namespace blink { |
| 43 | 44 |
| 44 using protocol::Maybe; | 45 using protocol::Maybe; |
| 45 | 46 |
| 46 class JavaScriptCallFrame; | |
| 47 struct ScriptBreakpoint; | 47 struct ScriptBreakpoint; |
| 48 class V8DebuggerAgentImpl; | 48 class V8DebuggerAgentImpl; |
| 49 class V8RuntimeAgentImpl; | 49 class V8RuntimeAgentImpl; |
| 50 | 50 |
| 51 class V8DebuggerImpl : public V8Debugger { | 51 class V8DebuggerImpl : public V8Debugger { |
| 52 PROTOCOL_DISALLOW_COPY(V8DebuggerImpl); | 52 PROTOCOL_DISALLOW_COPY(V8DebuggerImpl); |
| 53 public: | 53 public: |
| 54 V8DebuggerImpl(v8::Isolate*, V8DebuggerClient*); | 54 V8DebuggerImpl(v8::Isolate*, V8DebuggerClient*); |
| 55 ~V8DebuggerImpl() override; | 55 ~V8DebuggerImpl() override; |
| 56 | 56 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 76 void setPauseOnNextStatement(bool); | 76 void setPauseOnNextStatement(bool); |
| 77 bool pausingOnNextStatement(); | 77 bool pausingOnNextStatement(); |
| 78 bool canBreakProgram(); | 78 bool canBreakProgram(); |
| 79 void breakProgram(); | 79 void breakProgram(); |
| 80 void continueProgram(); | 80 void continueProgram(); |
| 81 void stepIntoStatement(); | 81 void stepIntoStatement(); |
| 82 void stepOverStatement(); | 82 void stepOverStatement(); |
| 83 void stepOutOfFunction(); | 83 void stepOutOfFunction(); |
| 84 void clearStepping(); | 84 void clearStepping(); |
| 85 | 85 |
| 86 bool setScriptSource(const String16& sourceID, const String16& newContent, b
ool preview, ErrorString*, Maybe<protocol::Debugger::SetScriptSourceError>*, Own
Ptr<JavaScriptCallFrame>* newCallFrames, Maybe<bool>* stackChanged); | 86 bool setScriptSource(const String16& sourceID, const String16& newContent, b
ool preview, ErrorString*, Maybe<protocol::Debugger::SetScriptSourceError>*, Jav
aScriptCallFrames* newCallFrames, Maybe<bool>* stackChanged); |
| 87 PassOwnPtr<JavaScriptCallFrame> currentCallFrames(); | 87 JavaScriptCallFrames currentCallFrames(int limit = 0); |
| 88 PassOwnPtr<JavaScriptCallFrame> callFrame(int index); | |
| 89 int frameCount(); | |
| 90 | 88 |
| 91 bool isPaused(); | 89 bool isPaused(); |
| 92 v8::Local<v8::Context> pausedContext() { return m_pausedContext; } | 90 v8::Local<v8::Context> pausedContext() { return m_pausedContext; } |
| 93 | 91 |
| 94 v8::MaybeLocal<v8::Value> functionScopes(v8::Local<v8::Function>); | 92 v8::MaybeLocal<v8::Value> functionScopes(v8::Local<v8::Function>); |
| 95 v8::Local<v8::Value> generatorObjectDetails(v8::Local<v8::Object>&); | 93 v8::Local<v8::Value> generatorObjectDetails(v8::Local<v8::Object>&); |
| 96 v8::Local<v8::Value> collectionEntries(v8::Local<v8::Object>&); | 94 v8::Local<v8::Value> collectionEntries(v8::Local<v8::Object>&); |
| 97 | 95 |
| 98 v8::Isolate* isolate() const { return m_isolate; } | 96 v8::Isolate* isolate() const { return m_isolate; } |
| 99 V8DebuggerClient* client() { return m_client; } | 97 V8DebuggerClient* client() { return m_client; } |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 v8::Local<v8::Object> m_executionState; | 149 v8::Local<v8::Object> m_executionState; |
| 152 v8::Local<v8::Context> m_pausedContext; | 150 v8::Local<v8::Context> m_pausedContext; |
| 153 bool m_runningNestedMessageLoop; | 151 bool m_runningNestedMessageLoop; |
| 154 v8::Global<v8::Context> m_regexContext; | 152 v8::Global<v8::Context> m_regexContext; |
| 155 }; | 153 }; |
| 156 | 154 |
| 157 } // namespace blink | 155 } // namespace blink |
| 158 | 156 |
| 159 | 157 |
| 160 #endif // V8DebuggerImpl_h | 158 #endif // V8DebuggerImpl_h |
| OLD | NEW |