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

Unified Diff: sky/engine/core/inspector/ScriptCallStack.cpp

Issue 727593004: Wire up the Inspector V8 Debugger (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Actually works Created 6 years, 1 month 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: sky/engine/core/inspector/ScriptCallStack.cpp
diff --git a/sky/engine/core/inspector/ScriptCallStack.cpp b/sky/engine/core/inspector/ScriptCallStack.cpp
index 68835d5123e4430665ab4be5377117958c08a07b..def2ce6c44e28e9c3b470c91ebc5f16b34a110c2 100644
--- a/sky/engine/core/inspector/ScriptCallStack.cpp
+++ b/sky/engine/core/inspector/ScriptCallStack.cpp
@@ -68,4 +68,12 @@ void ScriptCallStack::setAsyncCallStack(PassRefPtr<ScriptAsyncCallStack> asyncCa
m_asyncCallStack = asyncCallStack;
}
+PassRefPtr<TypeBuilder::Array<TypeBuilder::Console::CallFrame> > ScriptCallStack::buildInspectorArray() const
+{
+ RefPtr<TypeBuilder::Array<TypeBuilder::Console::CallFrame> > frames = TypeBuilder::Array<TypeBuilder::Console::CallFrame>::create();
+ for (size_t i = 0; i < m_frames.size(); i++)
+ frames->addItem(m_frames.at(i).buildInspectorObject());
+ return frames;
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698