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

Unified Diff: Source/bindings/v8/ScriptState.cpp

Issue 15764004: DevTools: show extension name in console context switcher (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: removing v8 api from agent code Created 7 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/v8/ScriptState.cpp
diff --git a/Source/bindings/v8/ScriptState.cpp b/Source/bindings/v8/ScriptState.cpp
index 77226e307e12046d10798fc43c79af3bf07d5ba9..16a147e096c1d7460743b5e8bd872208b2a49d99 100644
--- a/Source/bindings/v8/ScriptState.cpp
+++ b/Source/bindings/v8/ScriptState.cpp
@@ -62,6 +62,12 @@ DOMWindow* ScriptState::domWindow() const
return toDOMWindow(m_context.get());
}
+DOMWrapperWorld* ScriptState::domWrapperWorld() const
+{
+ v8::HandleScope handleScope;
+ return DOMWrapperWorld::isolatedWorld(m_context.get());
+}
+
ScriptExecutionContext* ScriptState::scriptExecutionContext() const
{
v8::HandleScope handleScope;

Powered by Google App Engine
This is Rietveld 408576698