/external/chromium_org/third_party/WebKit/Source/core/testing/v8/ |
WebCoreTestSupport.cpp | 42 ScriptState* scriptState = ScriptState::from(context); 43 ScriptState::Scope scope(scriptState); 44 v8::Handle<v8::Object> global = scriptState->context()->Global(); 45 ExecutionContext* executionContext = scriptState->executionContext(); 47 global->Set(v8::String::NewFromUtf8(scriptState->isolate(), Internals::internalsId), toV8(Internals::create(toDocument(executionContext)), global, scriptState->isolate())); 56 ScriptState* scriptState = ScriptState::from(context) [all...] |
/external/chromium_org/third_party/WebKit/Source/core/inspector/ |
ScriptArguments.h | 34 #include "bindings/v8/ScriptState.h" 47 static PassRefPtrWillBeRawPtr<ScriptArguments> create(ScriptState*, Vector<ScriptValue>& arguments); 52 ScriptState* scriptState() const { return m_scriptState.get(); } 59 ScriptArguments(ScriptState*, Vector<ScriptValue>& arguments);
|
InjectedScriptBase.h | 34 #include "bindings/v8/ScriptState.h" 53 ScriptState* scriptState() const 56 return m_injectedScriptObject.scriptState(); 60 typedef bool (*InspectedStateAccessCheck)(ScriptState*);
|
ConsoleMessage.cpp | 64 ConsoleMessage::ConsoleMessage(bool canGenerateCallStack, MessageSource source, MessageType type, MessageLevel level, const String& message, const String& url, unsigned line, unsigned column, ScriptState* scriptState, unsigned long requestIdentifier) 69 , m_scriptState(scriptState) 76 autogenerateMetadata(canGenerateCallStack, scriptState); 100 ConsoleMessage::ConsoleMessage(bool canGenerateCallStack, MessageSource source, MessageType type, MessageLevel level, const String& message, PassRefPtrWillBeRawPtr<ScriptArguments> arguments, ScriptState* scriptState, unsigned long requestIdentifier) 105 , m_scriptState(scriptState) 113 autogenerateMetadata(canGenerateCallStack, scriptState); 120 void ConsoleMessage::autogenerateMetadata(bool canGenerateCallStack, ScriptState* scriptState) [all...] |
InjectedScriptBase.cpp | 68 return m_inspectedStateAccessCheck(m_injectedScriptObject.scriptState()); 79 ExecutionContext* executionContext = m_injectedScriptObject.scriptState()->executionContext(); 85 ScriptState* scriptState = m_injectedScriptObject.scriptState(); 87 if (scriptState) { 88 evalIsDisabled = !scriptState->evalEnabled(); 91 scriptState->setEvalEnabled(true); 97 scriptState->setEvalEnabled(false); 116 *result = resultValue.toJSONValue(m_injectedScriptObject.scriptState()); [all...] |
PageDebuggerAgent.cpp | 117 ScriptState* scriptState = ScriptState::forMainWorld(m_pageAgent->mainFrame()); 118 return injectedScriptManager()->injectedScriptFor(scriptState);
|
PageRuntimeAgent.cpp | 36 #include "bindings/v8/ScriptState.h" 93 addExecutionContextToFrontend(ScriptState::forMainWorld(frame), true, "", frameId); 96 void PageRuntimeAgent::didCreateIsolatedContext(LocalFrame* frame, ScriptState* scriptState, SecurityOrigin* origin) 102 addExecutionContextToFrontend(scriptState, false, origin->toRawString(), frameId); 108 ScriptState* scriptState = ScriptState::forMainWorld(m_inspectedPage->deprecatedLocalMainFrame()); 109 InjectedScript result = injectedScriptManager()->injectedScriptFor(scriptState); 132 Vector<std::pair<ScriptState*, SecurityOrigin*> > isolatedContexts [all...] |
InjectedScriptManager.cpp | 88 int InjectedScriptManager::injectedScriptIdFor(ScriptState* scriptState) 90 ScriptStateToId::iterator it = m_scriptStateToId.find(scriptState); 94 m_scriptStateToId.set(scriptState, id); 124 ScriptState* scriptState = it->value.scriptState(); 125 if (window != scriptState->domWindow()) 127 m_scriptStateToId.remove(scriptState); 133 Vector<ScriptState*> scriptStatesToRemove [all...] |
InspectorCanvasAgent.cpp | 140 InjectedScriptCanvasModule module = injectedScriptCanvasModule(errorString, ScriptState::forMainWorld(frame)); 150 InjectedScriptCanvasModule module = injectedScriptCanvasModule(errorString, ScriptState::forMainWorld(frame)); 211 ScriptState* scriptState = wrappedContext.scriptState(); 213 if (scriptState) 214 domWindow = scriptState->domWindow(); 224 InjectedScriptCanvasModule InspectorCanvasAgent::injectedScriptCanvasModule(ErrorString* errorString, ScriptState* scriptState) 228 InjectedScriptCanvasModule module = InjectedScriptCanvasModule::moduleForState(m_injectedScriptManager, scriptState); [all...] |
/external/chromium_org/third_party/WebKit/Source/web/ |
InspectorFrontendClientImpl.cpp | 66 ScriptState* scriptState = ScriptState::forMainWorld(m_frontendPage->deprecatedLocalMainFrame()); 67 ScriptState::Scope scope(scriptState); 72 v8::Handle<v8::Object> global = scriptState->context()->Global(); 73 v8::Handle<v8::Value> frontendHostObj = toV8(m_frontendHost.get(), global, scriptState->isolate());
|
WebDevToolsFrontendImpl.cpp | 140 ScriptState* scriptState = ScriptState::forMainWorld(frame->frame()); 141 ScriptState::Scope scope(scriptState); 142 v8::Handle<v8::Value> inspectorFrontendApiValue = scriptState->context()->Global()->Get(v8::String::NewFromUtf8(isolate, "InspectorFrontendAPI")); 151 v8::Handle<v8::Value> inspectorBackendApiValue = scriptState->context()->Global()->Get(v8::String::NewFromUtf8(isolate, "InspectorBackend"));
|
/external/chromium_org/third_party/WebKit/Source/bindings/templates/ |
attributes.cpp | 48 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); 168 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentContext()); 169 V8PerContextData* contextData = scriptState->perContextData(); 171 if (scriptState->world().isIsolatedWorld() && contextData && contextData->activityLogger()) 321 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentContext()) [all...] |
/external/chromium_org/third_party/WebKit/Source/bindings/v8/ |
IDBBindingUtilitiesTest.cpp | 52 bool injectKey(ScriptState* scriptState, IDBKey* key, ScriptValue& value, const String& keyPath) 56 ScriptValue keyValue = idbKeyToScriptValue(scriptState, key); 57 return injectV8KeyIntoV8Value(scriptState->isolate(), keyValue.v8Value(), value.v8Value(), idbKeyPath); 60 void checkInjection(ScriptState* scriptState, IDBKey* key, ScriptValue& value, const String& keyPath) 62 bool result = injectKey(scriptState, key, value, keyPath); 64 IDBKey* extractedKey = checkKeyFromValueAndKeyPathInternal(scriptState->isolate(), value, keyPath); 68 void checkInjectionFails(ScriptState* scriptState, IDBKey* key, ScriptValue& value, const String& keyPath [all...] |
ScriptState.cpp | 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 [all...] |
ScriptValue.h | 34 #include "bindings/v8/ScriptState.h" 55 ScriptValue(ScriptState* scriptState, v8::Handle<v8::Value> value) 56 : m_isolate(scriptState->isolate()) 57 , m_scriptState(scriptState) 58 , m_value(value.IsEmpty() ? nullptr : SharedPersistent<v8::Value>::create(value, scriptState->isolate())) 71 ScriptState* scriptState() const 152 PassRefPtr<JSONValue> toJSONValue(ScriptState*) const; 156 mutable RefPtr<ScriptState> m_scriptState [all...] |
V8WindowShell.h | 36 #include "bindings/v8/ScriptState.h" 61 ScriptState* scriptState() const { return m_scriptState.get(); } 113 RefPtr<ScriptState> m_scriptState;
|
ScriptPromiseTest.cpp | 86 ScriptState* scriptState() const { return m_scope.scriptState(); } 96 ScriptPromise promise(scriptState(), v8::Undefined(isolate())); 103 RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scriptState()); 126 RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scriptState()); 144 RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scriptState()); 167 RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scriptState()); 185 ScriptPromise promise = ScriptPromiseResolver::create(scriptState())->promise(); 186 ScriptPromise newPromise = ScriptPromise::cast(scriptState(), promise.v8Value()) [all...] |
V8AbstractEventListener.h | 113 virtual DOMWrapperWorld& world() const { return scriptState()->world(); } 114 ScriptState* scriptState() const 119 void setScriptState(ScriptState* scriptState) { m_scriptState = scriptState; } 122 V8AbstractEventListener(bool isAttribute, ScriptState*); 152 RefPtr<ScriptState> m_scriptState;
|
WorkerScriptController.h | 97 ScriptState* scriptState() { return m_scriptState.get(); } 110 RefPtr<ScriptState> m_scriptState;
|
ScriptPromiseResolverWithContext.h | 11 #include "bindings/v8/ScriptState.h" 24 // - A ScriptPromiseResolverWithContext retains a ScriptState. A caller 34 static PassRefPtr<ScriptPromiseResolverWithContext> create(ScriptState* scriptState) 36 RefPtr<ScriptPromiseResolverWithContext> resolver = adoptRef(new ScriptPromiseResolverWithContext(scriptState)); 64 ScriptState* scriptState() { return m_scriptState.get(); } 76 ScriptState* scriptState() const { return m_scriptState.get(); } 90 explicit ScriptPromiseResolverWithContext(ScriptState*); [all...] |
ScriptState.h | 21 // ScriptState is created when v8::Context is created. 22 // ScriptState is destroyed when v8::Context is garbage-collected and 23 // all V8 proxy objects that have references to the ScriptState are destructed. 24 class ScriptState : public RefCounted<ScriptState> { 25 WTF_MAKE_NONCOPYABLE(ScriptState); 29 // You need to make sure that scriptState->context() is not empty before creating a Scope. 30 explicit Scope(ScriptState* scriptState) 31 : m_handleScope(scriptState->isolate() [all...] |
V8Initializer.cpp | 114 ScriptState* scriptState = ScriptState::current(isolate); 115 RefPtrWillBeRawPtr<ErrorEvent> event = ErrorEvent::create(errorMessage, resource, message->GetLineNumber(), message->GetStartColumn() + 1, &scriptState->world()); 130 if (frame && frame->script().existingWindowShell(scriptState->world())) { 131 V8ErrorHandler::storeExceptionOnErrorEventWrapper(event.get(), data, scriptState->context()->Global(), isolate); 154 return policy->allowEval(ScriptState::from(context)); 220 ScriptState* scriptState = ScriptState::current(isolate) [all...] |
/external/chromium_org/third_party/WebKit/Source/modules/indexeddb/ |
IDBTransactionTest.cpp | 56 m_scope.scriptState()->setExecutionContext(m_executionContext.get()); 61 m_scope.scriptState()->setExecutionContext(0); 65 ScriptState* scriptState() const { return m_scope.scriptState(); } 66 ExecutionContext* executionContext() { return m_scope.scriptState()->executionContext(); } 110 Persistent<IDBRequest> request = IDBRequest::create(scriptState(), IDBAny::createUndefined(), transaction.get());
|
IDBRequestTest.cpp | 29 #include "bindings/v8/ScriptState.h" 60 m_scope.scriptState()->setExecutionContext(m_executionContext.get()); 65 m_scope.scriptState()->setExecutionContext(0); 69 ScriptState* scriptState() const { return m_scope.scriptState(); } 70 ExecutionContext* executionContext() const { return m_scope.scriptState()->executionContext(); } 80 IDBRequest* request = IDBRequest::create(scriptState(), IDBAny::createUndefined(), transaction); 99 IDBRequest* request = IDBRequest::create(scriptState(), IDBAny::createUndefined(), transaction); 146 IDBOpenDBRequest* request = IDBOpenDBRequest::create(scriptState(), callbacks, transactionId, version) [all...] |
/external/chromium_org/third_party/WebKit/Source/bindings/v8/custom/ |
V8HTMLCanvasElementCustom.cpp | 103 ScriptState* scriptState = ScriptState::current(isolate); 104 ScriptValue context(scriptState, v8Result); 117 ScriptState* scriptState = ScriptState::current(isolate); 118 ScriptValue glContext(scriptState, v8Result);
|