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

Unified Diff: Source/bindings/core/v8/ScriptDebugServer.cpp

Issue 1128273005: Devtools: Move runMessageLoopOnPause and other methods on ScriptDebugServer::Client (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove empty line Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: Source/bindings/core/v8/ScriptDebugServer.cpp
diff --git a/Source/bindings/core/v8/ScriptDebugServer.cpp b/Source/bindings/core/v8/ScriptDebugServer.cpp
index f980d7e79b6195f05ea13b9fb964c041d78bf537..d13194f60d5fb16dfffb2b3dd38395614fdb0d82 100644
--- a/Source/bindings/core/v8/ScriptDebugServer.cpp
+++ b/Source/bindings/core/v8/ScriptDebugServer.cpp
@@ -273,7 +273,7 @@ void ScriptDebugServer::breakProgram()
void ScriptDebugServer::continueProgram()
{
if (isPaused())
- quitMessageLoopOnPause();
+ m_client->quitMessageLoopOnPause();
m_pausedScriptState.clear();
m_executionState.Clear();
}
@@ -523,7 +523,7 @@ void ScriptDebugServer::handleProgramBreak(ScriptState* pausedScriptState, v8::L
if (m_runningNestedMessageLoop)
return;
- ScriptDebugListener* listener = getDebugListenerForContext(pausedScriptState->context());
+ ScriptDebugListener* listener = m_client->getDebugListenerForContext(pausedScriptState->context());
if (!listener)
return;
@@ -542,7 +542,7 @@ void ScriptDebugServer::handleProgramBreak(ScriptState* pausedScriptState, v8::L
ScriptDebugListener::SkipPauseRequest result = listener->didPause(pausedScriptState, currentCallFrames(), ScriptValue(pausedScriptState, exception), breakpointIds, isPromiseRejection);
if (result == ScriptDebugListener::NoSkip) {
m_runningNestedMessageLoop = true;
- runMessageLoopOnPause(pausedScriptState->context());
+ m_client->runMessageLoopOnPause(pausedScriptState->context());
m_runningNestedMessageLoop = false;
}
m_pausedScriptState.clear();
@@ -590,7 +590,7 @@ void ScriptDebugServer::handleV8DebugEvent(const v8::Debug::EventDetails& eventD
v8::Local<v8::Context> eventContext = eventDetails.GetEventContext();
ASSERT(!eventContext.IsEmpty());
- ScriptDebugListener* listener = getDebugListenerForContext(eventContext);
+ ScriptDebugListener* listener = m_client->getDebugListenerForContext(eventContext);
if (listener) {
v8::HandleScope scope(m_isolate);
if (event == v8::AfterCompile || event == v8::CompileError) {

Powered by Google App Engine
This is Rietveld 408576698