Searched defs:promise (Results 1 - 25 of 57) sorted by relevance

123

/external/chromium_org/v8/test/webkit/fast/js/
H A DPromise-static-cast.js33 var promise = Promise.resolve(value); variable
36 shouldBe('promise', 'value');
38 promise.then(function(res) {
H A DPromise-static-resolve.js31 var promise = Promise.resolve(new Promise(function (r) { resolve = r;} )); variable
33 promise.then(function(localResult) {
/external/chromium_org/third_party/WebKit/Source/modules/push_messaging/
H A DPushManager.cpp47 ScriptPromise promise = resolver->promise(); local
49 return promise;
/external/chromium_org/extensions/renderer/resources/
H A Dutils.js138 * Wrap an asynchronous API call to a function |func| in a promise. The
139 * remaining arguments will be passed to |func|. Returns a promise that will be
142 * promise will be resolved with an array containing those results.
145 * promise(chrome.storage.get, 'a').then(function(result) {
151 function promise(func) { function
174 exports.promise = promise;
/external/chromium_org/third_party/WebKit/Source/modules/serviceworkers/
H A DServiceWorkerClients.cpp57 ScriptPromise promise = resolver->promise(); local
62 return promise;
66 return promise;
/external/chromium_org/third_party/WebKit/Source/modules/webmidi/
H A DNavigatorWebMIDI.cpp82 ScriptPromise promise = resolver->promise(); local
85 return promise;
H A DMIDIAccessInitializer.cpp40 ScriptPromise promise = this->promise(); local
45 return promise;
55 return promise;
/external/clang/test/PCH/
H A Dcxx-friends.h12 template<typename> class promise { class in namespace:PR12585
/external/libcxx/src/
H A Dfuture.cpp44 return string("The associated promise has been destructed prior "
48 "the promise or packaged_task.");
50 return string("The state of the promise has already been set.");
216 promise<void>::promise() function in class:promise
221 promise<void>::~promise()
234 promise<void>::get_future()
244 promise<void>::set_value()
254 promise<voi
[all...]
/external/chromium_org/third_party/WebKit/Source/core/imagebitmap/
H A DImageBitmapFactories.h92 ScriptPromise promise() { return m_resolver->promise(); } function in class:blink::FINAL::FINAL
/external/chromium_org/third_party/WebKit/Source/modules/encryptedmedia/
H A DSimpleContentDecryptionModuleResult.cpp70 ScriptPromise SimpleContentDecryptionModuleResult::promise() function in class:blink::SimpleContentDecryptionModuleResult
72 return m_resolver->promise();
/external/chromium_org/third_party/WebKit/Source/modules/geofencing/
H A DGeofencing.cpp60 ScriptPromise promise = resolver->promise(); local
63 return promise;
73 ScriptPromise promise = resolver->promise(); local
76 return promise;
86 ScriptPromise promise = resolver->promise(); local
89 return promise;
/external/chromium_org/third_party/WebKit/Source/modules/quota/
H A DStorageQuota.cpp88 ScriptPromise promise = resolver->promise(); local
93 return promise;
99 return promise;
107 ScriptPromise promise = resolver->promise(); local
109 return promise;
/external/chromium_org/third_party/WebKit/Source/web/
H A DStorageQuotaClientImpl.cpp80 ScriptPromise promise = resolver->promise(); local
92 return promise;
/external/chromium_org/third_party/WebKit/Source/bindings/core/v8/
H A DExceptionState.cpp48 ScriptPromise promise = ScriptPromise::reject(scriptState, m_exception.newLocal(scriptState->isolate())); local
50 return promise;
H A DScriptPromise.cpp66 ScriptPromise ScriptPromise::InternalResolver::promise() const function in class:blink::ScriptPromise::InternalResolver
108 v8::Local<v8::Object> promise = m_promise.v8Value().As<v8::Object>();
110 ASSERT(promise->IsPromise());
114 v8::Local<v8::Promise> resultPromise = promise.As<v8::Promise>();
142 ScriptPromise promise = resolver.promise(); local
144 return promise;
157 ScriptPromise promise = resolver.promise(); local
159 return promise;
173 v8::Local<v8::Promise> promise = resolver->GetPromise(); local
[all...]
H A DScriptPromisePropertyBase.cpp34 ScriptPromise ScriptPromisePropertyBase::promise(DOMWrapperWorld& world) function in class:blink::ScriptPromisePropertyBase
55 v8::Handle<v8::Promise> promise = resolver->GetPromise(); local
56 V8HiddenValue::setHiddenValue(m_isolate, wrapper, promiseName(), promise);
69 return ScriptPromise(scriptState, promise);
H A DScriptPromiseResolverTest.cpp84 ScriptPromise promise; local
88 promise = resolver->promise();
92 ASSERT_FALSE(promise.isEmpty());
95 promise.then(Function::createFunction(scriptState(), &onFulfilled), Function::createFunction(scriptState(), &onRejected));
110 EXPECT_TRUE(resolver->promise().isEmpty());
132 ScriptPromise promise; local
136 promise = resolver->promise();
140 ASSERT_FALSE(promise
180 ScriptPromise promise; local
273 ScriptPromise promise; local
297 ScriptPromise promise; local
[all...]
H A DScriptPromiseTest.cpp101 ScriptPromise promise(scriptState(), v8::Undefined(isolate()));
103 ASSERT_TRUE(promise.isEmpty());
109 ScriptPromise promise = resolver.promise(); local
111 promise.then(Function::createFunction(scriptState(), &onFulfilled), Function::createFunction(scriptState(), &onRejected));
113 ASSERT_FALSE(promise.isEmpty());
132 ScriptPromise promise = resolver.promise(); local
135 promise.then(Function::createFunction(scriptState(), &onFulfilled), Function::createFunction(scriptState(), &onRejected));
137 ASSERT_FALSE(promise
150 ScriptPromise promise = resolver.promise(); local
173 ScriptPromise promise = resolver.promise(); local
190 ScriptPromise promise = Resolver(scriptState()).promise(); local
232 ScriptPromise promise = ScriptPromise::reject(scriptState(), ScriptValue(value)); local
250 ScriptPromise promise = ScriptPromise::rejectWithDOMException(scriptState(), DOMException::create(SyntaxError, "some syntax error")); local
[all...]
H A DScriptPromiseResolver.h42 // - promise() is called at least once and
69 ScriptPromise promise() function in class:blink::ScriptPromiseResolver
74 return m_resolver.promise();
85 // promise is pending and the associated ExecutionContext isn't stopped.
140 // True if promise() is called.
/external/chromium_org/third_party/WebKit/Source/modules/battery/
H A DBatteryManager.cpp39 return m_resolver->promise();
42 ScriptPromise promise = m_resolver->promise(); local
45 // FIXME: Consider returning the same promise in this case. See crbug.com/385025.
53 return promise;
/external/chromium_org/third_party/WebKit/Source/modules/credentialmanager/
H A DCredentialsContainer.cpp116 ScriptPromise promise = resolver->promise(); local
118 return promise;
122 return promise;
128 ScriptPromise promise = resolver->promise(); local
130 return promise;
133 return promise;
139 ScriptPromise promise = resolver->promise(); local
150 ScriptPromise promise = resolver->promise(); local
[all...]
/external/chromium_org/third_party/WebKit/Source/core/streams/
H A DReadableStream.cpp123 return m_wait->promise(scriptState->world());
130 ScriptPromise promise = resolver->promise(); local
132 return promise;
153 return m_closed->promise(scriptState->world());
/external/chromium_org/third_party/WebKit/Source/modules/crypto/
H A DCryptoResultImpl.cpp191 ScriptPromise CryptoResultImpl::promise() function in class:blink::CryptoResultImpl
193 return m_resolver ? m_resolver->promise() : ScriptPromise();
/external/chromium_org/third_party/WebKit/Source/modules/screen_orientation/
H A DScreenOrientation.cpp150 ScriptPromise promise = resolver->promise(); local
157 return promise;
163 return promise;
167 return promise;

Completed in 2585 milliseconds

123