| 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 24 matching lines...) Expand all Loading... |
| 35 #include "platform/v8_inspector/V8DebuggerScript.h" | 35 #include "platform/v8_inspector/V8DebuggerScript.h" |
| 36 #include "platform/v8_inspector/public/V8Debugger.h" | 36 #include "platform/v8_inspector/public/V8Debugger.h" |
| 37 #include "wtf/Forward.h" | 37 #include "wtf/Forward.h" |
| 38 #include "wtf/PassOwnPtr.h" | 38 #include "wtf/PassOwnPtr.h" |
| 39 | 39 |
| 40 #include <v8-debug.h> | 40 #include <v8-debug.h> |
| 41 #include <v8.h> | 41 #include <v8.h> |
| 42 | 42 |
| 43 namespace blink { | 43 namespace blink { |
| 44 | 44 |
| 45 using protocol::OptionalValue; |
| 46 |
| 45 class JavaScriptCallFrame; | 47 class JavaScriptCallFrame; |
| 46 struct ScriptBreakpoint; | 48 struct ScriptBreakpoint; |
| 47 class V8DebuggerAgentImpl; | 49 class V8DebuggerAgentImpl; |
| 48 | 50 |
| 49 class V8DebuggerImpl : public V8Debugger { | 51 class V8DebuggerImpl : public V8Debugger { |
| 50 WTF_MAKE_NONCOPYABLE(V8DebuggerImpl); | 52 WTF_MAKE_NONCOPYABLE(V8DebuggerImpl); |
| 51 public: | 53 public: |
| 52 V8DebuggerImpl(v8::Isolate*, V8DebuggerClient*); | 54 V8DebuggerImpl(v8::Isolate*, V8DebuggerClient*); |
| 53 ~V8DebuggerImpl() override; | 55 ~V8DebuggerImpl() override; |
| 54 | 56 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 71 void setPauseOnNextStatement(bool); | 73 void setPauseOnNextStatement(bool); |
| 72 bool pausingOnNextStatement(); | 74 bool pausingOnNextStatement(); |
| 73 bool canBreakProgram(); | 75 bool canBreakProgram(); |
| 74 void breakProgram(); | 76 void breakProgram(); |
| 75 void continueProgram(); | 77 void continueProgram(); |
| 76 void stepIntoStatement(); | 78 void stepIntoStatement(); |
| 77 void stepOverStatement(); | 79 void stepOverStatement(); |
| 78 void stepOutOfFunction(); | 80 void stepOutOfFunction(); |
| 79 void clearStepping(); | 81 void clearStepping(); |
| 80 | 82 |
| 81 bool setScriptSource(const String& sourceID, const String& newContent, bool
preview, String* error, RefPtr<protocol::TypeBuilder::Debugger::SetScriptSourceE
rror>&, v8::Global<v8::Object>* newCallFrames, protocol::TypeBuilder::OptOutput<
bool>* stackChanged); | 83 bool setScriptSource(const String& sourceID, const String& newContent, bool
preview, String* error, OwnPtr<protocol::Debugger::SetScriptSourceError>*, v8::G
lobal<v8::Object>* newCallFrames, OptionalValue<bool>* stackChanged); |
| 82 v8::Local<v8::Object> currentCallFrames(); | 84 v8::Local<v8::Object> currentCallFrames(); |
| 83 v8::Local<v8::Object> currentCallFramesForAsyncStack(); | 85 v8::Local<v8::Object> currentCallFramesForAsyncStack(); |
| 84 PassRefPtr<JavaScriptCallFrame> callFrameNoScopes(int index); | 86 PassRefPtr<JavaScriptCallFrame> callFrameNoScopes(int index); |
| 85 int frameCount(); | 87 int frameCount(); |
| 86 | 88 |
| 87 bool isPaused(); | 89 bool isPaused(); |
| 88 v8::Local<v8::Context> pausedContext() { return m_pausedContext; } | 90 v8::Local<v8::Context> pausedContext() { return m_pausedContext; } |
| 89 | 91 |
| 90 v8::MaybeLocal<v8::Value> functionScopes(v8::Local<v8::Function>); | 92 v8::MaybeLocal<v8::Value> functionScopes(v8::Local<v8::Function>); |
| 91 v8::Local<v8::Value> generatorObjectDetails(v8::Local<v8::Object>&); | 93 v8::Local<v8::Value> generatorObjectDetails(v8::Local<v8::Object>&); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 v8::Local<v8::Object> m_executionState; | 150 v8::Local<v8::Object> m_executionState; |
| 149 v8::Local<v8::Context> m_pausedContext; | 151 v8::Local<v8::Context> m_pausedContext; |
| 150 bool m_runningNestedMessageLoop; | 152 bool m_runningNestedMessageLoop; |
| 151 v8::Global<v8::Context> m_regexContext; | 153 v8::Global<v8::Context> m_regexContext; |
| 152 }; | 154 }; |
| 153 | 155 |
| 154 } // namespace blink | 156 } // namespace blink |
| 155 | 157 |
| 156 | 158 |
| 157 #endif // V8DebuggerImpl_h | 159 #endif // V8DebuggerImpl_h |
| OLD | NEW |