Home
last modified time | relevance | path

Searched refs:scriptState (Results 1 – 25 of 32) sorted by relevance

12

/external/chromium_org/third_party/WebKit/Source/bindings/v8/
DScriptObject.cpp43 ScriptObject::ScriptObject(ScriptState* scriptState, v8::Handle<v8::Object> v8Object) in ScriptObject() argument
44 : ScriptValue(v8Object, scriptState->isolate()) in ScriptObject()
45 , m_scriptState(scriptState) in ScriptObject()
49 ScriptObject::ScriptObject(ScriptState* scriptState, const ScriptValue& scriptValue) in ScriptObject() argument
51 , m_scriptState(scriptState) in ScriptObject()
61 bool ScriptGlobalObject::set(ScriptState* scriptState, const char* name, InspectorFrontendHost* val… in set() argument
63 ScriptScope scope(scriptState); in set()
64 …scope.global()->Set(v8AtomicString(scriptState->isolate(), name), toV8(value, v8::Handle<v8::Objec… in set()
68 bool ScriptGlobalObject::get(ScriptState* scriptState, const char* name, ScriptObject& value) in get() argument
70 ScriptScope scope(scriptState); in get()
[all …]
DScriptState.h109 ScriptStateProtectedPtr(ScriptState* scriptState) in ScriptStateProtectedPtr() argument
110 : m_scriptState(scriptState) in ScriptStateProtectedPtr()
112 v8::HandleScope handleScope(scriptState->isolate()); in ScriptStateProtectedPtr()
114 m_context.set(scriptState->isolate(), scriptState->context()); in ScriptStateProtectedPtr()
DScriptScope.cpp41 ScriptScope::ScriptScope(ScriptState* scriptState, bool reportExceptions) in ScriptScope() argument
42 : m_handleScope(scriptState->isolate()) in ScriptScope()
43 , m_context(scriptState->context()) in ScriptScope()
DScriptState.cpp75 …scriptStateWrapper = innerGlobal->GetHiddenValue(V8HiddenPropertyName::scriptState(context->GetIso… in forContext()
79 ScriptState* scriptState = new ScriptState(context); in forContext() local
80 …ddenValue(V8HiddenPropertyName::scriptState(context->GetIsolate()), v8::External::New(context->Get… in forContext()
81 return scriptState; in forContext()
DScriptValue.cpp121 PassRefPtr<JSONValue> ScriptValue::toJSONValue(ScriptState* scriptState) const in toJSONValue()
123 v8::HandleScope handleScope(scriptState->isolate()); in toJSONValue()
125 v8::Context::Scope contextScope(scriptState->context()); in toJSONValue()
126 return v8ToJSONValue(v8Value(), JSONValue::maxDepth, scriptState->isolate()); in toJSONValue()
DScriptFunctionCall.h45 ScriptCallArgumentHandler(ScriptState* scriptState) : m_scriptState(scriptState) { } in ScriptCallArgumentHandler() argument
DScriptScope.h41 ScriptScope(ScriptState* scriptState, bool reportExceptions = true);
DScriptObject.h51 ScriptState* scriptState() const { return m_scriptState; } in scriptState() function
DV8HiddenPropertyName.h58 V(scriptState) \
/external/chromium_org/third_party/WebKit/Source/core/inspector/
DInjectedScriptBase.cpp67 return m_inspectedStateAccessCheck(m_injectedScriptObject.scriptState()); in canAccessInspectedWindow()
77 ExecutionContext* executionContext = m_injectedScriptObject.scriptState()->executionContext(); in callFunctionWithEvalEnabled()
80 ScriptState* scriptState = m_injectedScriptObject.scriptState(); in callFunctionWithEvalEnabled() local
82 if (scriptState) { in callFunctionWithEvalEnabled()
83 evalIsDisabled = !scriptState->evalEnabled(); in callFunctionWithEvalEnabled()
86 scriptState->setEvalEnabled(true); in callFunctionWithEvalEnabled()
92 scriptState->setEvalEnabled(false); in callFunctionWithEvalEnabled()
110 *result = resultValue.toJSONValue(m_injectedScriptObject.scriptState()); in makeCall()
DPageRuntimeAgent.cpp123 ScriptState* scriptState = mainWorldScriptState(frame); in didClearWindowObjectInWorld() local
124 notifyContextCreated(frameId, scriptState, 0, true); in didClearWindowObjectInWorld()
127 void PageRuntimeAgent::didCreateIsolatedContext(Frame* frame, ScriptState* scriptState, SecurityOri… in didCreateIsolatedContext() argument
133 notifyContextCreated(frameId, scriptState, origin, false); in didCreateIsolatedContext()
139 ScriptState* scriptState = mainWorldScriptState(m_inspectedPage->mainFrame()); in injectedScriptForEval() local
140 InjectedScript result = injectedScriptManager()->injectedScriptFor(scriptState); in injectedScriptForEval()
169 ScriptState* scriptState = mainWorldScriptState(frame); in reportExecutionContextCreation() local
170 notifyContextCreated(frameId, scriptState, 0, true); in reportExecutionContextCreation()
180 void PageRuntimeAgent::notifyContextCreated(const String& frameId, ScriptState* scriptState, Securi… in notifyContextCreated() argument
183 int executionContextId = injectedScriptManager()->injectedScriptIdFor(scriptState); in notifyContextCreated()
DInjectedScriptManager.cpp88 int InjectedScriptManager::injectedScriptIdFor(ScriptState* scriptState) in injectedScriptIdFor() argument
90 ScriptStateToId::iterator it = m_scriptStateToId.find(scriptState); in injectedScriptIdFor()
94 m_scriptStateToId.set(scriptState, id); in injectedScriptIdFor()
124 ScriptState* scriptState = it->value.scriptState(); in discardInjectedScriptsFor() local
125 if (window != scriptState->domWindow()) in discardInjectedScriptsFor()
127 m_scriptStateToId.remove(scriptState); in discardInjectedScriptsFor()
137 ScriptState* scriptState = it->key; in discardInjectedScriptsFor() local
138 if (window == scriptState->domWindow()) in discardInjectedScriptsFor()
139 scriptStatesToRemove.append(scriptState); in discardInjectedScriptsFor()
DInjectedScriptModule.cpp47 …criptModule::ensureInjected(InjectedScriptManager* injectedScriptManager, ScriptState* scriptState) in ensureInjected() argument
49 InjectedScript injectedScript = injectedScriptManager->injectedScriptFor(scriptState); in ensureInjected()
60 ScriptScope scope(scriptState); in ensureInjected()
72 ScriptObject moduleObject(scriptState, resultValue); in ensureInjected()
DScriptArguments.cpp39 PassRefPtr<ScriptArguments> ScriptArguments::create(ScriptState* scriptState, Vector<ScriptValue>& … in create() argument
41 return adoptRef(new ScriptArguments(scriptState, arguments)); in create()
44 ScriptArguments::ScriptArguments(ScriptState* scriptState, Vector<ScriptValue>& arguments) in ScriptArguments() argument
45 : m_scriptState(scriptState) in ScriptArguments()
DInspectorCanvasAgent.cpp212 ScriptState* scriptState = wrappedContext.scriptState(); in notifyRenderingContextWasWrapped() local
214 if (scriptState) in notifyRenderingContextWasWrapped()
215 domWindow = scriptState->domWindow(); in notifyRenderingContextWasWrapped()
225 …nspectorCanvasAgent::injectedScriptCanvasModule(ErrorString* errorString, ScriptState* scriptState) in injectedScriptCanvasModule() argument
229 …asModule module = InjectedScriptCanvasModule::moduleForState(m_injectedScriptManager, scriptState); in injectedScriptCanvasModule()
246 return injectedScriptCanvasModule(errorString, scriptObject.scriptState()); in injectedScriptCanvasModule()
258 return injectedScriptCanvasModule(errorString, injectedScript.scriptState()); in injectedScriptCanvasModule()
DInjectedScriptBase.h52 ScriptState* scriptState() const { return m_injectedScriptObject.scriptState(); } in scriptState() function
DWorkerRuntimeAgent.cpp64 ScriptState* scriptState = scriptStateFromWorkerGlobalScope(m_workerGlobalScope); in injectedScriptForEval() local
65 return injectedScriptManager()->injectedScriptFor(scriptState); in injectedScriptForEval()
DWorkerDebuggerAgent.cpp131 ScriptState* scriptState = scriptStateFromWorkerGlobalScope(m_inspectedWorkerGlobalScope); in injectedScriptForEval() local
132 return injectedScriptManager()->injectedScriptFor(scriptState); in injectedScriptForEval()
DInjectedScriptCanvasModule.cpp52 …anvasModule::moduleForState(InjectedScriptManager* injectedScriptManager, ScriptState* scriptState) in moduleForState() argument
55 result.ensureInjected(injectedScriptManager, scriptState); in moduleForState()
84 return ScriptObject(context.scriptState(), resultValue); in callWrapContextFunction()
DPageDebuggerAgent.cpp117 ScriptState* scriptState = mainWorldScriptState(m_pageAgent->mainFrame()); in injectedScriptForEval() local
118 return injectedScriptManager()->injectedScriptFor(scriptState); in injectedScriptForEval()
DInjectedScript.cpp242 RefPtr<JSONValue> result = callFramesValue.toJSONValue(scriptState()); in wrapCallFrames()
260 RefPtr<JSONObject> rawResult = r.toJSONValue(scriptState())->asObject(); in wrapObject()
278 RefPtr<JSONObject> rawResult = r.toJSONValue(scriptState())->asObject(); in wrapTable()
335 return InjectedScriptHost::nodeAsScriptValue(scriptState(), node); in nodeAsScriptValue()
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/cm/
Dhtmlembedded.js14 return scriptingMode.token(stream, state.scriptState);
27 return scriptingMode.token(stream, state.scriptState);
38 scriptState : CodeMirror.startState(scriptingMode)
50 return scriptingMode.indent(state.scriptState, textAfter);
57 scriptState : CodeMirror.copyState(scriptingMode, state.scriptState)
64 if (state.token == scriptingDispatch) return {state: state.scriptState, mode: scriptingMode};
/external/chromium_org/third_party/WebKit/Source/bindings/v8/custom/
DV8HTMLCanvasElementCustom.cpp104 ScriptState* scriptState = ScriptState::forContext(isolate->GetCurrentContext()); in getContextMethodCustom() local
105 ScriptObject context(scriptState, v8::Handle<v8::Object>::Cast(v8Result)); in getContextMethodCustom()
118 ScriptState* scriptState = ScriptState::forContext(isolate->GetCurrentContext()); in getContextMethodCustom() local
119 ScriptObject glContext(scriptState, v8::Handle<v8::Object>::Cast(v8Result)); in getContextMethodCustom()
DV8InjectedScriptManager.cpp107 bool InjectedScriptManager::canAccessInspectedWindow(ScriptState* scriptState) in canAccessInspectedWindow() argument
109 v8::HandleScope handleScope(scriptState->isolate()); in canAccessInspectedWindow()
110 v8::Local<v8::Context> context = scriptState->context(); in canAccessInspectedWindow()
/external/chromium_org/third_party/WebKit/Source/core/css/
DMediaQueryMatcher.cpp143 ScriptState* scriptState = m_document->frame() ? mainWorldScriptState(m_document->frame()) : 0; in styleResolverChanged() local
144 if (!scriptState) in styleResolverChanged()
153 m_listeners[i]->evaluate(scriptState, evaluator.get()); in styleResolverChanged()

12