HomeSort by relevance Sort by last modified time
    Searched refs:scriptState (Results 1 - 25 of 135) sorted by null

1 2 3 4 5 6

  /external/chromium_org/third_party/WebKit/Source/bindings/v8/
V8EventListenerList.cpp 40 PassRefPtr<EventListener> V8EventListenerList::getEventListener(ScriptState* scriptState, v8::Local<v8::Value> value, bool isAttribute, ListenerLookupType lookup)
42 ASSERT(!scriptState->contextIsEmpty());
47 return V8EventListenerList::findWrapper(value, scriptState);
49 if (toDOMWindow(scriptState->context()))
50 return V8EventListenerList::findOrCreateWrapper<V8EventListener>(value, isAttribute, scriptState);
51 return V8EventListenerList::findOrCreateWrapper<V8WorkerGlobalScopeEventListener>(value, isAttribute, scriptState);
ScriptPromise.cpp 45 // Used by ToV8Value<WithScriptState, ScriptState*>.
46 static v8::Handle<v8::Object> getCreationContext(ScriptState* scriptState)
48 return scriptState->context()->Global();
54 ScriptPromise::ScriptPromise(ScriptState* scriptState, v8::Handle<v8::Value> value)
55 : m_scriptState(scriptState)
61 m_promise = ScriptValue(scriptState, v8::Handle<v8::Value>());
62 V8ThrowException::throwTypeError("the given value is not a Promise", scriptState->isolate());
65 m_promise = ScriptValue(scriptState, value)
    [all...]
V8Callback.cpp 39 bool invokeCallback(ScriptState* scriptState, v8::Local<v8::Function> callback, int argc, v8::Handle<v8::Value> argv[])
41 return invokeCallback(scriptState, callback, scriptState->context()->Global(), argc, argv);
44 bool invokeCallback(ScriptState* scriptState, v8::Local<v8::Function> callback, v8::Handle<v8::Value> thisValue, int argc, v8::Handle<v8::Value> argv[])
48 ScriptController::callFunction(scriptState->executionContext(), callback, thisValue, argc, argv, scriptState->isolate());
V8WorkerGlobalScopeEventListener.cpp 48 V8WorkerGlobalScopeEventListener::V8WorkerGlobalScopeEventListener(v8::Local<v8::Object> listener, bool isInline, ScriptState* scriptState)
49 : V8EventListener(listener, isInline, scriptState)
59 WorkerScriptController* script = toWorkerGlobalScope(scriptState()->executionContext())->script();
63 if (scriptState()->contextIsEmpty())
65 ScriptState::Scope scope(scriptState());
68 v8::Handle<v8::Value> jsEvent = toV8(event, scriptState()->context()->Global(), isolate());
75 v8::Local<v8::Function> handlerFunction = getListenerFunction(scriptState()->executionContext());
80 TRACE_EVENT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "FunctionCall", "data", devToolsTraceEventData(scriptState()->executionContext(), handlerFunction, isolate()))
    [all...]
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...]
ScriptValue.cpp 34 #include "bindings/v8/ScriptState.h"
66 ScriptState::Scope scope(m_scriptState.get());
74 PassRefPtr<JSONValue> ScriptValue::toJSONValue(ScriptState* scriptState) const
76 ASSERT(!scriptState->contextIsEmpty());
77 ScriptState::Scope scope(scriptState);
78 return v8ToJSONValue(scriptState->isolate(), v8Value(), JSONValue::maxDepth);
V8EventListenerList.h 50 static PassRefPtr<V8EventListener> findWrapper(v8::Local<v8::Value> value, ScriptState* scriptState)
52 ASSERT(scriptState->isolate()->InContext());
56 v8::Handle<v8::String> wrapperProperty = getHiddenProperty(false, scriptState->isolate());
57 return doFindWrapper(v8::Local<v8::Object>::Cast(value), wrapperProperty, scriptState);
61 static PassRefPtr<V8EventListener> findOrCreateWrapper(v8::Local<v8::Value>, bool isAttribute, ScriptState*);
69 static PassRefPtr<EventListener> getEventListener(ScriptState*, v8::Local<v8::Value>, bool isAttribute, ListenerLookupType);
72 static V8EventListener* doFindWrapper(v8::Local<v8::Object> object, v8::Handle<v8::String> wrapperProperty, ScriptState* scriptState)
74 v8::HandleScope scope(scriptState->isolate())
    [all...]
ScriptPromiseResolver.cpp 42 ScriptPromiseResolver::ScriptPromiseResolver(ScriptState* scriptState)
43 : m_scriptState(scriptState)
48 m_resolver = ScriptValue(scriptState, v8::Promise::Resolver::New(isolate));
70 PassRefPtr<ScriptPromiseResolver> ScriptPromiseResolver::create(ScriptState* scriptState)
72 ASSERT(scriptState->isolate()->InContext());
73 return adoptRef(new ScriptPromiseResolver(scriptState));
V8MutationCallback.cpp 39 V8MutationCallback::V8MutationCallback(v8::Handle<v8::Function> callback, v8::Handle<v8::Object> owner, ScriptState* scriptState)
40 : ActiveDOMCallback(scriptState->executionContext())
41 , m_callback(scriptState->isolate(), callback)
42 , m_scriptState(scriptState)
44 V8HiddenValue::setHiddenValue(scriptState->isolate(), owner, V8HiddenValue::callback(scriptState->isolate()), callback);
57 ScriptState::Scope scope(m_scriptState.get());
V8AbstractEventListener.cpp 46 V8AbstractEventListener::V8AbstractEventListener(bool isAttribute, ScriptState* scriptState)
49 , m_scriptState(scriptState)
50 , m_isolate(scriptState->isolate())
79 if (scriptState()->executionContext()->isJSExecutionForbidden())
88 if (scriptState()->contextIsEmpty())
90 ScriptState::Scope scope(scriptState());
93 v8::Handle<v8::Value> jsEvent = toV8(event, scriptState()->context()->Global(), isolate());
111 ASSERT(!scriptState()->contextIsEmpty())
    [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...]
  /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/frame/
ConsoleBase.cpp 46 void ConsoleBase::debug(ScriptState* scriptState, PassRefPtrWillBeRawPtr<ScriptArguments> arguments)
48 internalAddMessage(LogMessageType, DebugMessageLevel, scriptState, arguments);
51 void ConsoleBase::error(ScriptState* scriptState, PassRefPtrWillBeRawPtr<ScriptArguments> arguments)
53 internalAddMessage(LogMessageType, ErrorMessageLevel, scriptState, arguments);
56 void ConsoleBase::info(ScriptState* scriptState, PassRefPtrWillBeRawPtr<ScriptArguments> arguments)
58 internalAddMessage(LogMessageType, InfoMessageLevel, scriptState, arguments);
61 void ConsoleBase::log(ScriptState* scriptState, PassRefPtrWillBeRawPtr<ScriptArguments> arguments
    [all...]
  /external/chromium_org/third_party/WebKit/Source/modules/indexeddb/
IDBFactory.cpp 78 IDBRequest* IDBFactory::getDatabaseNames(ScriptState* scriptState, ExceptionState& exceptionState)
81 if (!isContextValid(scriptState->executionContext()))
83 if (!scriptState->executionContext()->securityOrigin()->canAccessDatabase()) {
88 IDBRequest* request = IDBRequest::create(scriptState, IDBAny::createNull(), 0);
90 if (!m_permissionClient->allowIndexedDB(scriptState->executionContext(), "Database Listing")) {
95 blink::Platform::current()->idbFactory()->getDatabaseNames(WebIDBCallbacksImpl::create(request).leakPtr(), createDatabaseIdentifierFromSecurityOrigin(scriptState->executionContext()->securityOrigin()));
99 IDBOpenDBRequest* IDBFactory::open(ScriptState* scriptState, const String& name, unsigned long long version, ExceptionState& exceptionState)
106 return openInternal(scriptState, name, version, exceptionState)
    [all...]
IDBIndex.cpp 69 ScriptValue IDBIndex::keyPath(ScriptState* scriptState) const
71 return idbAnyToScriptValue(scriptState, IDBAny::create(m_metadata.keyPath));
74 IDBRequest* IDBIndex::openCursor(ScriptState* scriptState, const ScriptValue& range, const String& directionString, ExceptionState& exceptionState)
93 IDBKeyRange* keyRange = IDBKeyRange::fromScriptValue(scriptState->executionContext(), range, exceptionState);
102 return openCursor(scriptState, keyRange, direction);
105 IDBRequest* IDBIndex::openCursor(ScriptState* scriptState, IDBKeyRange* keyRange, blink::WebIDBCursorDirection direction)
107 IDBRequest* request = IDBRequest::create(scriptState, IDBAny::create(this), m_transaction.get())
    [all...]
  /external/chromium_org/third_party/WebKit/Source/modules/push_messaging/
PushManager.cpp 11 #include "bindings/v8/ScriptState.h"
31 ScriptPromise PushManager::registerPushMessaging(ScriptState* scriptState, const String& senderId)
33 ASSERT(scriptState->executionContext()->isDocument());
34 RefPtr<ScriptPromiseResolverWithContext> resolver = ScriptPromiseResolverWithContext::create(scriptState);
36 blink::WebPushClient* client = PushController::clientFrom(toDocument(scriptState->executionContext())->page());
  /external/chromium_org/third_party/WebKit/Source/modules/crypto/
CryptoResultImpl.cpp 35 #include "bindings/v8/ScriptState.h"
51 static WeakPtr<ScriptPromiseResolverWithContext> create(ScriptState* scriptState, CryptoResultImpl* result)
53 RefPtr<WeakResolver> p = adoptRef(new WeakResolver(scriptState, result));
65 WeakResolver(ScriptState* scriptState, CryptoResultImpl* result)
66 : ScriptPromiseResolverWithContext(scriptState)
105 PassRefPtr<CryptoResultImpl> CryptoResultImpl::create(ScriptState* scriptState)
107 return adoptRef(new CryptoResultImpl(scriptState));
    [all...]
  /external/chromium_org/third_party/WebKit/Source/modules/battery/
NavigatorBattery.cpp 21 ScriptPromise NavigatorBattery::getBattery(ScriptState* scriptState, Navigator& navigator)
23 return NavigatorBattery::from(navigator).getBattery(scriptState);
26 ScriptPromise NavigatorBattery::getBattery(ScriptState* scriptState)
29 m_batteryManager = BatteryManager::create(scriptState->executionContext());
31 return m_batteryManager->startRequest(scriptState);
  /external/chromium_org/third_party/WebKit/Source/web/tests/
CustomEventTest.cpp 67 ScriptState::Scope scope(scriptState());
68 v8::Handle<v8::Value> jsEvent = toV8(event, scriptState()->context()->Global(), isolate());
70 EXPECT_EQ(jsEvent->ToObject()->Get(v8::String::NewFromUtf8(scriptState()->isolate(), "detail")), v8::Boolean::New(scriptState()->isolate(), true));
73 static PassRefPtr<TestListener> create(ScriptState* scriptState)
75 return adoptRef(new TestListener(scriptState));
79 TestListener(ScriptState* scriptState)
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/inspector/
ScriptArguments.cpp 42 PassRefPtrWillBeRawPtr<ScriptArguments> ScriptArguments::create(ScriptState* scriptState, Vector<ScriptValue>& arguments)
44 return adoptRefWillBeNoop(new ScriptArguments(scriptState, arguments));
47 ScriptArguments::ScriptArguments(ScriptState* scriptState, Vector<ScriptValue>& arguments)
48 : m_scriptState(scriptState)
65 ScriptState::Scope scope(m_scriptState.get());
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...]
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...]
  /external/chromium_org/third_party/WebKit/Source/core/css/
MediaQueryListListener.h 23 #include "bindings/v8/ScriptState.h"
36 static PassRefPtrWillBeRawPtr<MediaQueryListListener> create(ScriptState* scriptState, const ScriptValue& value)
40 return adoptRefWillBeNoop(new MediaQueryListListener(scriptState, value));
49 MediaQueryListListener(ScriptState*, const ScriptValue&);
51 RefPtr<ScriptState> m_scriptState;
  /external/chromium_org/third_party/WebKit/Source/modules/quota/
StorageQuota.cpp 87 ScriptPromise StorageQuota::queryInfo(ScriptState* scriptState, String type)
89 RefPtr<ScriptPromiseResolverWithContext> resolver = ScriptPromiseResolverWithContext::create(scriptState);
92 SecurityOrigin* securityOrigin = scriptState->executionContext()->securityOrigin();
104 ScriptPromise StorageQuota::requestPersistentQuota(ScriptState* scriptState, unsigned long long newQuota)
106 StorageQuotaClient* client = StorageQuotaClient::from(scriptState->executionContext());
108 RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scriptState);
114 return client->requestPersistentQuota(scriptState, newQuota);
  /external/chromium_org/third_party/WebKit/Source/modules/imagebitmap/
ImageBitmapFactories.cpp 69 static ScriptPromise fulfillImageBitmap(ScriptState* scriptState, PassRefPtrWillBeRawPtr<ImageBitmap> imageBitmap)
71 RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scriptState);
76 resolver->reject(ScriptValue(scriptState, v8::Null(scriptState->isolate())));
81 ScriptPromise ImageBitmapFactories::createImageBitmap(ScriptState* scriptState, EventTarget& eventTarget, HTMLImageElement* image, ExceptionState& exceptionState)
84 return createImageBitmap(scriptState, eventTarget, image, 0, 0, s.width(), s.height(), exceptionState);
87 ScriptPromise ImageBitmapFactories::createImageBitmap(ScriptState* scriptState, EventTarget& eventTarget, HTMLImageElement* image, int sx, int sy, int sw, int sh, ExceptionState (…)
    [all...]

Completed in 515 milliseconds

1 2 3 4 5 6