Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.h

Issue 1826623002: [DevTools] Move wrapCallFrames from InjectedScriptSource.js to native (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-no-scopes
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
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>*, v8: :Global<v8::Object>* newCallFrames, Maybe<bool>* stackChanged); 86 bool setScriptSource(const String16& sourceID, const String16& newContent, b ool preview, ErrorString*, Maybe<protocol::Debugger::SetScriptSourceError>*, Own Ptr<JavaScriptCallFrame>* newCallFrames, Maybe<bool>* stackChanged);
87 v8::Local<v8::Object> currentCallFrames(); 87 PassOwnPtr<JavaScriptCallFrame> currentCallFrames();
88 PassOwnPtr<JavaScriptCallFrame> callFrame(int index); 88 PassOwnPtr<JavaScriptCallFrame> callFrame(int index);
89 int frameCount(); 89 int frameCount();
90 90
91 bool isPaused(); 91 bool isPaused();
92 v8::Local<v8::Context> pausedContext() { return m_pausedContext; } 92 v8::Local<v8::Context> pausedContext() { return m_pausedContext; }
93 93
94 v8::MaybeLocal<v8::Value> functionScopes(v8::Local<v8::Function>); 94 v8::MaybeLocal<v8::Value> functionScopes(v8::Local<v8::Function>);
95 v8::Local<v8::Value> generatorObjectDetails(v8::Local<v8::Object>&); 95 v8::Local<v8::Value> generatorObjectDetails(v8::Local<v8::Object>&);
96 v8::Local<v8::Value> collectionEntries(v8::Local<v8::Object>&); 96 v8::Local<v8::Value> collectionEntries(v8::Local<v8::Object>&);
97 v8::MaybeLocal<v8::Value> setFunctionVariableValue(v8::Local<v8::Value> func tionValue, int scopeNumber, const String16& variableName, v8::Local<v8::Value> n ewValue); 97 v8::MaybeLocal<v8::Value> setFunctionVariableValue(v8::Local<v8::Value> func tionValue, int scopeNumber, const String16& variableName, v8::Local<v8::Value> n ewValue);
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 v8::Isolate* m_isolate; 144 v8::Isolate* m_isolate;
145 V8DebuggerClient* m_client; 145 V8DebuggerClient* m_client;
146 using DebuggerAgentsMap = protocol::HashMap<int, V8DebuggerAgentImpl*>; 146 using DebuggerAgentsMap = protocol::HashMap<int, V8DebuggerAgentImpl*>;
147 DebuggerAgentsMap m_debuggerAgentsMap; 147 DebuggerAgentsMap m_debuggerAgentsMap;
148 using RuntimeAgentsMap = protocol::HashMap<int, V8RuntimeAgentImpl*>; 148 using RuntimeAgentsMap = protocol::HashMap<int, V8RuntimeAgentImpl*>;
149 RuntimeAgentsMap m_runtimeAgentsMap; 149 RuntimeAgentsMap m_runtimeAgentsMap;
150 bool m_breakpointsActivated; 150 bool m_breakpointsActivated;
151 v8::Global<v8::FunctionTemplate> m_breakProgramCallbackTemplate; 151 v8::Global<v8::FunctionTemplate> m_breakProgramCallbackTemplate;
152 v8::Global<v8::Object> m_debuggerScript; 152 v8::Global<v8::Object> m_debuggerScript;
153 v8::Global<v8::Context> m_debuggerContext; 153 v8::Global<v8::Context> m_debuggerContext;
154 v8::Global<v8::FunctionTemplate> m_callFrameWrapperTemplate;
155 v8::Local<v8::Object> m_executionState; 154 v8::Local<v8::Object> m_executionState;
156 v8::Local<v8::Context> m_pausedContext; 155 v8::Local<v8::Context> m_pausedContext;
157 bool m_runningNestedMessageLoop; 156 bool m_runningNestedMessageLoop;
158 v8::Global<v8::Context> m_regexContext; 157 v8::Global<v8::Context> m_regexContext;
159 }; 158 };
160 159
161 } // namespace blink 160 } // namespace blink
162 161
163 162
164 #endif // V8DebuggerImpl_h 163 #endif // V8DebuggerImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698