Home | History | Annotate | Download | only in v8

Lines Matching defs:scriptState

6 #include "bindings/v8/ScriptState.h"
14 PassRefPtr<ScriptState> ScriptState::create(v8::Handle<v8::Context> context, PassRefPtr<DOMWrapperWorld> world)
16 RefPtr<ScriptState> scriptState = adoptRef(new ScriptState(context, world));
17 // This ref() is for keeping this ScriptState alive as long as the v8::Context is alive.
19 scriptState->ref();
20 return scriptState;
23 static void weakCallback(const v8::WeakCallbackData<v8::Context, ScriptState>& data)
30 ScriptState::ScriptState(v8::Handle<v8::Context> context, PassRefPtr<DOMWrapperWorld> world)
41 ScriptState::~ScriptState()
47 bool ScriptState::evalEnabled() const
53 void ScriptState::setEvalEnabled(bool enabled)
59 ScriptValue ScriptState::getFromGlobalObject(const char* name)
66 ExecutionContext* ScriptState::executionContext() const
72 void ScriptState::setExecutionContext(ExecutionContext*)
77 LocalDOMWindow* ScriptState::domWindow() const
83 ScriptState* ScriptState::forMainWorld(LocalFrame* frame)
87 return ScriptState::from(toV8Context(frame, DOMWrapperWorld::mainWorld()));
92 RefPtr<ScriptStateForTesting> scriptState = adoptRef(new ScriptStateForTesting(context, world));
93 // This ref() is for keeping this ScriptState alive as long as the v8::Context is alive.
95 scriptState->ref();
96 return scriptState;
100 : ScriptState(context, world)