/external/chromium/chrome/browser/resources/shared/js/cr/ |
promise.js | 6 * @fileoverview This implementes a future promise class. 17 * Creates a future promise. 18 * @param {*=} opt_value The value to set the promise to. If set completes 19 * the promise immediately. 22 function Promise(opt_value) { 34 Promise.prototype = { 43 * The value of the future promise. Accessing this before the promise has 62 * Whether the future promise has been fulfilled. 70 * Adds a listener to the future promise. The function will be called whe [all...] |
promise_test.html | 8 <script src="promise.js"></script> 30 const Promise = cr.Promise; 44 var p = new Promise; 64 var p = new Promise; 85 var p = new Promise; 109 var p = new Promise(V); 124 var p = new Promise; 131 var p = new Promise; 137 var p = new Promise; [all...] |
/external/chromium_org/ui/webui/resources/js/cr/ |
promise.js | 6 * @fileoverview This implementes a future promise class. 18 * Creates a future promise. 19 * @param {*=} opt_value The value to set the promise to. If set completes 20 * the promise immediately. 23 function Promise(opt_value) { 35 Promise.prototype = { 44 * The value of the future promise. Accessing this before the promise has 63 * Whether the future promise has been fulfilled. 71 * Adds a listener to the future promise. The function will be called whe [all...] |
/external/chromium_org/v8/test/mjsunit/harmony/ |
promises.js | 61 assertThrows(function() { new Promise(5) }, TypeError) 65 assertThrows(function() { new Promise(function() { throw 5 }) }, 5) 69 Promise.resolved(5); 70 Promise.resolved(5).chain(undefined, assertUnreachable).chain( 78 Promise.rejected(5).chain(assertUnreachable, undefined).chain( 86 Promise.resolved(5).then(undefined, assertUnreachable).chain( 94 Promise.rejected(5).then(assertUnreachable, undefined).chain( 102 var p1 = Promise.resolved(5) 103 var p2 = Promise.resolved(p1) 104 var p3 = Promise.resolved(p2 [all...] |
/external/chromium_org/third_party/WebKit/Source/bindings/v8/custom/ |
V8PromiseCustom.h | 67 // |promise| must be a Promise instance. 68 static v8::Local<v8::Object> getInternal(v8::Handle<v8::Object> promise); 70 // |internal| must be a Promise internal object. 73 // |internal| must be a Promise internal object. 74 // Set a |promise|'s state and result that correspond to the state. 77 // Return true if |maybePromise| is a Promise instance. 80 // Coerces |maybePromise| to a Promise instance. 83 // |promise| must be a Promise instance [all...] |
V8PromiseCustom.cpp | 98 v8::Local<v8::Object> promise = info.Data().As<v8::Object>(); local 103 V8PromiseCustom::resolve(promise, result, info.GetIsolate()); 109 v8::Local<v8::Object> promise = info.Data().As<v8::Object>(); local 114 V8PromiseCustom::reject(promise, result, info.GetIsolate()); 126 v8::Local<v8::Object> promise = environment->GetInternalField(V8PromiseCustom::PromiseAllEnvironmentPromiseIndex).As<v8::Object>(); local 136 V8PromiseCustom::resolve(promise, results, isolate); 142 v8::Local<v8::Object> promiseAllEnvironment(v8::Handle<v8::Object> promise, v8::Handle<v8::Object> countdownWrapper, int index, v8::Handle<v8::Array> results, v8::Isolate* isolate) 147 environment->SetInternalField(V8PromiseCustom::PromiseAllEnvironmentPromiseIndex, promise); 164 // |internal| must be a Promise internal object. 165 // |derivedPromise| must be a Promise instance 342 v8::Local<v8::Object> promise(v8::Isolate* isolate) const { return m_promise.newLocal(isolate); } function in class:WebCore::__anon10602::PromisePropagator::Derived 472 v8::Local<v8::Object> promise = V8PromiseCustom::createPromise(info.Holder(), isolate); local 529 v8::Local<v8::Object> promise = V8PromiseCustom::createPromise(info.Holder(), isolate); local 541 v8::Local<v8::Object> promise = V8PromiseCustom::createPromise(info.Holder(), isolate); local 549 v8::Local<v8::Object> promise = V8PromiseCustom::createPromise(info.Holder(), isolate); local 573 v8::Local<v8::Object> promise = V8PromiseCustom::createPromise(info.Holder(), isolate); local 613 v8::Local<v8::Object> promise = V8DOMWrapper::createWrapper(creationContext, &V8Promise::wrapperTypeInfo, 0, isolate); local 682 addToDerived(getInternal(valuePromiseFollowing), promise, v8::Handle<v8::Function>(), v8::Handle<v8::Function>(), isolate); local 774 v8::Local<v8::Object> promise = createPromise(v8::Handle<v8::Object>(), isolate); local 783 thenable->SetHiddenValue(V8HiddenPropertyName::thenableHiddenPromise(isolate), promise); local [all...] |
/external/chromium/chrome/browser/resources/bookmark_manager/js/ |
bmm.js | 6 const Promise = cr.Promise; 35 * Loads a subtree of the bookmark tree and returns a {@code cr.Promise} that 38 * @return {!cr.Promise} The future promise for the load. 41 var p = new Promise; 43 loadingPromises[id] = new Promise; 57 * Loads the entire bookmark tree and returns a {@code cr.Promise} that will 60 * @return {!cr.Promise} The future promise for the load [all...] |
/external/chromium_org/v8/src/ |
promise.js | 37 var $Promise = Promise; 53 var promiseStatus = NEW_PRIVATE("Promise#status"); 54 var promiseValue = NEW_PRIVATE("Promise#value"); 55 var promiseOnResolve = NEW_PRIVATE("Promise#onResolve"); 56 var promiseOnReject = NEW_PRIVATE("Promise#onReject"); 57 var promiseRaw = NEW_PRIVATE("Promise#raw"); 63 function Promise(resolver) { 65 var promise = PromiseInit(this); 66 resolver(function(x) { PromiseResolve(promise, x) } [all...] |
/external/chromium_org/third_party/WebKit/Source/core/dom/ |
Promise.idl | 36 ] interface Promise { 37 [Custom] Promise then(optional AnyCallback fulfillCallback, optional AnyCallback rejectCallback); 38 [Custom] Promise catch(optional AnyCallback rejectCallback); 40 [Custom] static Promise resolve(any value); 41 [Custom] static Promise reject(any value); 43 [Custom] static Promise cast(any value); 44 [Custom] static Promise race(any iterable); 45 [Custom] static Promise all(any iterable);
|
/external/chromium_org/third_party/WebKit/Source/modules/imagebitmap/ |
WindowImageBitmapFactories.idl | 35 [RaisesException] Promise createImageBitmap(HTMLImageElement image); 36 [RaisesException] Promise createImageBitmap(HTMLImageElement image, long sx, long sy, long sw, long sh); 37 [RaisesException] Promise createImageBitmap(HTMLVideoElement video); 38 [RaisesException] Promise createImageBitmap(HTMLVideoElement video, long sx, long sy, long sw, long sh); 39 [RaisesException] Promise createImageBitmap(CanvasRenderingContext2D context); 40 [RaisesException] Promise createImageBitmap(CanvasRenderingContext2D context, long sx, long sy, long sw, long sh); 41 [RaisesException] Promise createImageBitmap(HTMLCanvasElement canvas); 42 [RaisesException] Promise createImageBitmap(HTMLCanvasElement canvas, long sx, long sy, long sw, long sh);
|
ImageBitmapFactories.idl | 35 [RaisesException] Promise createImageBitmap(Blob blob); 36 [RaisesException] Promise createImageBitmap(Blob blob, long sx, long sy, long sw, long sh); 37 [RaisesException] Promise createImageBitmap(ImageData data); 38 [RaisesException] Promise createImageBitmap(ImageData data, long sx, long sy, long sw, long sh); 39 [RaisesException] Promise createImageBitmap(ImageBitmap bitmap); 40 [RaisesException] Promise createImageBitmap(ImageBitmap bitmap, long sx, long sy, long sw, long sh);
|
/external/chromium_org/third_party/WebKit/Source/modules/crypto/ |
SubtleCrypto.idl | 34 [RaisesException] Promise encrypt(Dictionary algorithm, Key key, ArrayBufferView data); 35 [RaisesException] Promise decrypt(Dictionary algorithm, Key key, ArrayBufferView data); 36 [RaisesException] Promise sign(Dictionary algorithm, Key key, ArrayBufferView data); 37 [RaisesException, ImplementedAs=verifySignature] Promise verify(Dictionary algorithm, Key key, ArrayBufferView signature, ArrayBufferView data); 38 [RaisesException] Promise digest(Dictionary algorithm, ArrayBufferView data); 40 [RaisesException] Promise generateKey(Dictionary algorithm, boolean extractable, DOMString[] keyUsages); 41 [RaisesException] Promise importKey(DOMString format, ArrayBufferView keyData, Dictionary? algorithm, boolean extractable, DOMString[] keyUsages); 42 [RaisesException] Promise exportKey(DOMString format, Key key); 44 [RaisesException] Promise wrapKey(DOMString format, Key key, Key wrappingKey, Dictionary wrapAlgorithm); 45 [RaisesException] Promise unwrapKey(DOMString format, ArrayBufferView wrappedKey, Key unwrappingKey, Dictionary unwrapAlgori (…) [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/futures/futures.promise/ |
default.pass.cpp | 12 // class promise<R> 14 // promise(); 22 std::promise<int> p; 27 std::promise<int&> p; 32 std::promise<void> p;
|
uses_allocator.pass.cpp | 12 // class promise<R> 15 // struct uses_allocator<promise<R>, Alloc> 23 static_assert((std::uses_allocator<std::promise<int>, test_allocator<int> >::value), ""); 24 static_assert((std::uses_allocator<std::promise<int&>, test_allocator<int> >::value), ""); 25 static_assert((std::uses_allocator<std::promise<void>, test_allocator<void> >::value), "");
|
swap.pass.cpp | 12 // class promise<R> 14 // void swap(promise& other); 16 // template <class R> void swap(promise<R>& x, promise<R>& y); 27 std::promise<int> p0(std::allocator_arg, test_allocator<int>()); 28 std::promise<int> p(std::allocator_arg, test_allocator<int>()); 41 std::promise<int> p0(std::allocator_arg, test_allocator<int>()); 42 std::promise<int> p(std::allocator_arg, test_allocator<int>()); 55 std::promise<int> p0(std::allocator_arg, test_allocator<int>()); 56 std::promise<int> p [all...] |
dtor.pass.cpp | 12 // class promise<R> 14 // ~promise(); 25 std::promise<T> p; 35 std::promise<T> p; 54 std::promise<T> p; 64 std::promise<T> p; 82 std::promise<T> p; 93 std::promise<T> p;
|
set_value_at_thread_exit_const.pass.cpp | 12 // class promise<R> 14 // void promise::set_value_at_thread_exit(const R& r); 19 void func(std::promise<int> p) 28 std::promise<int> p;
|
set_value_at_thread_exit_void.pass.cpp | 12 // class promise<R> 14 // void promise<void>::set_value_at_thread_exit(); 22 void func(std::promise<void> p) 31 std::promise<void> p;
|
get_future.pass.cpp | 12 // class promise<R> 22 std::promise<double> p; 28 std::promise<double> p; 41 std::promise<double> p; 42 std::promise<double> p0 = std::move(p);
|
/external/chromium_org/third_party/WebKit/Source/bindings/v8/ |
ScriptPromiseResolver.cpp | 44 ScriptPromiseResolver::ScriptPromiseResolver(ScriptPromise promise) 45 : m_isolate(promise.isolate()) 46 , m_promise(promise) 58 PassRefPtr<ScriptPromiseResolver> ScriptPromiseResolver::create(ScriptPromise promise, ExecutionContext* context) 60 ASSERT(promise.isolate()->InContext()); 62 return adoptRef(new ScriptPromiseResolver(promise)); 65 PassRefPtr<ScriptPromiseResolver> ScriptPromiseResolver::create(ScriptPromise promise) 67 ASSERT(promise.isolate()->InContext()); 68 return adoptRef(new ScriptPromiseResolver(promise)); 76 v8::Local<v8::Object> promise = m_promise.v8Value().As<v8::Object>() [all...] |
ScriptPromise.h | 43 // ScriptPromise is the class for representing Promise values in C++ world. 44 // ScriptPromise holds a Promise. 50 // Constructs an empty promise. 56 explicit ScriptPromise(const ScriptValue& promise) 57 : m_promise(promise) 62 ScriptPromise(v8::Handle<v8::Value> promise, v8::Isolate* isolate) 63 : m_promise(promise, isolate)
|
/external/chromium_org/content/test/data/session_history/ |
fragment.html | 10 <a name="c">Last one, I promise.</a>
|
/prebuilts/ndk/8/sources/cxx-stl/gnu-libstdc++/4.7/include/ |
future | 123 class promise; 308 /// Base class for state between a promise and one or more 397 // check this is only used by promise<R>::set_value(const R&) 398 // or promise<R>::set_value(R&) 399 static_assert(is_same<_Res, _Arg&>::value // promise<R&> 400 || is_same<const _Res, _Arg>::value, // promise<R> 403 typename promise<_Res>::_Ptr_type operator()() 409 promise<_Res>* _M_promise; 417 typename promise<_Res>::_Ptr_type operator()() 423 promise<_Res>* _M_promise [all...] |
/prebuilts/ndk/9/sources/cxx-stl/gnu-libstdc++/4.7/include/ |
future | 123 class promise; 308 /// Base class for state between a promise and one or more 397 // check this is only used by promise<R>::set_value(const R&) 398 // or promise<R>::set_value(R&) 399 static_assert(is_same<_Res, _Arg&>::value // promise<R&> 400 || is_same<const _Res, _Arg>::value, // promise<R> 403 typename promise<_Res>::_Ptr_type operator()() 409 promise<_Res>* _M_promise; 417 typename promise<_Res>::_Ptr_type operator()() 423 promise<_Res>* _M_promise [all...] |
/prebuilts/ndk/9/sources/cxx-stl/gnu-libstdc++/4.8/include/ |
future | 122 class promise; 304 /// Base class for state between a promise and one or more 393 // check this is only used by promise<R>::set_value(const R&) 394 // or promise<R>::set_value(R&) 395 static_assert(is_same<_Res, _Arg&>::value // promise<R&> 396 || is_same<const _Res, _Arg>::value, // promise<R> 399 typename promise<_Res>::_Ptr_type operator()() 405 promise<_Res>* _M_promise; 413 typename promise<_Res>::_Ptr_type operator()() 419 promise<_Res>* _M_promise [all...] |