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

1 2 3 4 5 6

  /external/chromium_org/third_party/WebKit/Source/core/imagebitmap/
WindowImageBitmapFactories.idl 36 [CallWith=ScriptState, RaisesException] Promise createImageBitmap(HTMLImageElement image);
37 [CallWith=ScriptState, RaisesException] Promise createImageBitmap(HTMLImageElement image, long sx, long sy, long sw, long sh);
38 [CallWith=ScriptState, RaisesException] Promise createImageBitmap(HTMLVideoElement video);
39 [CallWith=ScriptState, RaisesException] Promise createImageBitmap(HTMLVideoElement video, long sx, long sy, long sw, long sh);
40 [CallWith=ScriptState, RaisesException] Promise createImageBitmap(CanvasRenderingContext2D context);
41 [CallWith=ScriptState, RaisesException] Promise createImageBitmap(CanvasRenderingContext2D context, long sx, long sy, long sw, long sh);
42 [CallWith=ScriptState, RaisesException] Promise createImageBitmap(HTMLCanvasElement canvas);
43 [CallWith=ScriptState, RaisesException] Promise createImageBitmap(HTMLCanvasElement canvas, long sx, long sy, long sw, long sh);
ImageBitmapFactories.idl 51 [CallWith=ScriptState, RaisesException] Promise createImageBitmap(Blob blob);
52 [CallWith=ScriptState, RaisesException] Promise createImageBitmap(Blob blob, long sx, long sy, long sw, long sh);
53 [CallWith=ScriptState, RaisesException] Promise createImageBitmap(ImageData data);
54 [CallWith=ScriptState, RaisesException] Promise createImageBitmap(ImageData data, long sx, long sy, long sw, long sh);
55 [CallWith=ScriptState, RaisesException] Promise createImageBitmap(ImageBitmap bitmap);
56 [CallWith=ScriptState, RaisesException] Promise createImageBitmap(ImageBitmap bitmap, long sx, long sy, long sw, long sh);
  /external/chromium_org/third_party/WebKit/Source/modules/encryptedmedia/
MediaKeySession.idl 38 [CallWith=ScriptState] readonly attribute Promise closed;
41 [CallWith=ScriptState] Promise generateRequest(DOMString initDataType, ArrayBuffer initData);
42 [CallWith=ScriptState] Promise generateRequest(DOMString initDataType, ArrayBufferView initData);
45 [CallWith=ScriptState] Promise update(ArrayBuffer response);
46 [CallWith=ScriptState] Promise update(ArrayBufferView response);
47 [CallWith=ScriptState] Promise release();
MediaKeys.idl 40 [CallWith=ScriptState] static Promise create(DOMString keySystem);
  /external/chromium_org/third_party/WebKit/Source/modules/serviceworkers/
ServiceWorkerContainer.idl 37 [CallWith=ScriptState] readonly attribute Promise ready;
39 [CallWith=ScriptState, ImplementedAs=registerServiceWorker] Promise register(ScalarValueString url, optional RegistrationOptionList options);
40 [CallWith=ScriptState] Promise getRegistration(optional ScalarValueString documentURL = "");
InstallEvent.idl 37 [CallWith=ScriptState] Promise reloadAll();
  /external/chromium_org/third_party/WebKit/Source/modules/quota/
StorageQuota.idl 42 [CallWith=ScriptState] Promise queryInfo(StorageType type);
43 [CallWith=ScriptState] Promise requestPersistentQuota([Clamp] unsigned long long newQuota);
  /external/chromium_org/third_party/WebKit/Source/modules/crypto/
SubtleCrypto.idl 43 [CallWith=ScriptState] Promise encrypt(Dictionary algorithm, CryptoKey key, ArrayBuffer data);
44 [CallWith=ScriptState] Promise encrypt(Dictionary algorithm, CryptoKey key, ArrayBufferView data);
46 [CallWith=ScriptState] Promise decrypt(Dictionary algorithm, CryptoKey key, ArrayBuffer data);
47 [CallWith=ScriptState] Promise decrypt(Dictionary algorithm, CryptoKey key, ArrayBufferView data);
49 [CallWith=ScriptState] Promise sign(Dictionary algorithm, CryptoKey key, ArrayBuffer data);
50 [CallWith=ScriptState] Promise sign(Dictionary algorithm, CryptoKey key, ArrayBufferView data);
52 // FIXME: should be: Promise verify(Dictionary algorithm, CryptoKey key, CryptoOperationData signature, CryptoOperationData data);
53 [CallWith=ScriptState, Custom, ImplementedAs=verifySignature] Promise verify(Dictionary algorithm, CryptoKey key, object signature, object data);
55 [CallWith=ScriptState] Promise digest(Dictionary algorithm, ArrayBuffer data);
56 [CallWith=ScriptState] Promise digest(Dictionary algorithm, ArrayBufferView data)
    [all...]
  /external/chromium_org/v8/test/mjsunit/es6/
promises.js 56 var whitelist = {Promise: true, TypeError: true}
97 assertThrows(function() { Promise(function() {}) }, TypeError)
101 assertTrue(new Promise(function() {}) instanceof Promise)
105 assertThrows(function() { new Promise(5) }, TypeError)
109 assertDoesNotThrow(function() { new Promise(function() { throw 5 }) })
113 (new Promise(function() { throw 5 })).chain(
121 Promise.accept(5);
122 Promise.accept(5).chain(undefined, assertUnreachable).chain(
130 Promise.reject(5).chain(assertUnreachable, undefined).chain
    [all...]
mirror-promises.js 20 function testPromiseMirror(promise, status, value) {
22 var mirror = debug.MakeMirror(promise);
37 assertEquals('promise', mirror.type());
40 assertEquals("#<Promise>", mirror.toText());
41 assertSame(promise, mirror.value());
47 assertEquals('promise', fromJSON.type);
50 assertEquals('Promise', refs.lookup(fromJSON.constructorFunction.ref).name);
56 var resolved = new Promise(function(resolve, reject) { resolve() });
57 var rejected = new Promise(function(resolve, reject) { reject() });
58 var pending = new Promise(function(resolve, reject) {})
    [all...]
  /external/chromium_org/third_party/WebKit/Source/modules/webmidi/
NavigatorWebMIDI.idl 34 [CallWith=ScriptState] Promise requestMIDIAccess(optional MIDIOptions options);
  /external/chromium_org/v8/test/webkit/fast/js/
Promise-static-all.js 26 description('Test Promise.all');
30 var p1 = new Promise(function(resolve) { resolve('p1'); });
31 var p2 = new Promise(function(resolve) { resolve('p2'); });
32 var p3 = new Promise(function(resolve) { resolve('p3'); });
33 var p4 = new Promise(function() {});
34 var p5 = new Promise(function() {});
35 var p6 = new Promise(function(_, reject) { reject('p6'); });
36 var p7 = new Promise(function(_, reject) { reject('p7'); });
37 var p8 = new Promise(function(_, reject) { reject('p8'); });
38 var p9 = new Promise(function(resolve) { resolve(p2); })
    [all...]
Promise-static-race.js 26 description('Test Promise.race');
30 var p1 = new Promise(function(resolve) { resolve('p1'); });
31 var p2 = new Promise(function(resolve) { resolve('p2'); });
32 var p3 = new Promise(function(resolve) { resolve('p3'); });
33 var p4 = new Promise(function() {});
34 var p5 = new Promise(function() {});
35 var p6 = new Promise(function(_, reject) { reject('p6'); });
36 var p7 = new Promise(function(_, reject) { reject('p7'); });
37 var p8 = new Promise(function(_, reject) { reject('p8'); });
38 var p9 = new Promise(function(resolve) { resolve(p2); })
    [all...]
Promise-init.js 26 description('Test Promise construction.');
31 var promise = new Promise(function(newResolve, newReject) {
37 shouldBeTrue('promise instanceof Promise');
38 shouldBe('promise.constructor', 'Promise');
43 shouldThrow('new Promise()', '"TypeError: Promise resolver undefined is not a function"');
44 shouldThrow('new Promise(37)', '"TypeError: Promise resolver 37 is not a function"')
    [all...]
  /external/chromium_org/third_party/WebKit/Source/bindings/core/v8/
ScriptPromise.cpp 57 : m_resolver(scriptState, v8::Promise::Resolver::New(scriptState->isolate())) { }
59 v8::Local<v8::Promise> ScriptPromise::InternalResolver::v8Promise() const
62 return v8::Local<v8::Promise>();
63 return m_resolver.v8Value().As<v8::Promise::Resolver>()->GetPromise();
66 ScriptPromise ScriptPromise::InternalResolver::promise() const function in class:blink::ScriptPromise::InternalResolver
77 m_resolver.v8Value().As<v8::Promise::Resolver>()->Resolve(value);
85 m_resolver.v8Value().As<v8::Promise::Resolver>()->Reject(value);
97 V8ThrowException::throwTypeError("the given value is not a Promise", scriptState->isolate());
108 v8::Local<v8::Object> promise = m_promise.v8Value().As<v8::Object>();
110 ASSERT(promise->IsPromise())
142 ScriptPromise promise = resolver.promise(); local
157 ScriptPromise promise = resolver.promise(); local
173 v8::Local<v8::Promise> promise = resolver->GetPromise(); local
    [all...]
  /external/chromium_org/ui/file_manager/gallery/js/
background.js 29 * @return {Promise} Promise fulfilled with BackgroundComponents.
32 var stringDataPromise = new Promise(function(fulfill) {
41 return new Promise(function(fulfill) {
46 return Promise.all([stringDataPromise, volumeManagerPromise]).then(
53 * Promise to be fulfilled with singleton instance of background components.
54 * @type {Promise}
61 * @return {Promise} Promise to be fulfilled with an entry array.
64 return new Promise(function(fulfill, reject)
    [all...]
  /external/chromium_org/ui/file_manager/video_player/js/cast/
media_manager.js 28 * @return {Promise} Promise which is resolved with boolean. If true, the file
44 * @return {Promise} Promise which is resolved with the token. Reject if failed.
48 return Promise.resolve(this.cachedToken_);
50 return new Promise(function(fulfill, reject) {
55 return Promise.reject(
59 return Promise.reject('Token fetch failed.');
65 return Promise.reject('Token fetch failed.');
73 * @return {Promise} Promise which is resolved with the url. Reject if failed
    [all...]
  /external/chromium_org/v8/test/mjsunit/es6/debug-promises/
reject-caught-late.js 7 // Test debug events when we only listen to uncaught exceptions, the Promise
13 var p = new Promise(function(resolve, reject) {
22 return Promise.reject(Error("caught"));
reject-caught-uncaught.js 8 // there is a catch handler for the to-be-rejected Promise.
13 var p = new Promise(function(resolve, reject) {
19 return Promise.reject(Error("caught reject"));
reject-in-constructor.js 8 // the Promise is rejected in the Promise constructor.
9 // We expect an Exception debug event with a promise to be triggered.
21 assertTrue(event_data.promise() instanceof Promise);
34 var p = new Promise(function(resolve, reject) {
try-reject-in-constructor.js 8 // the Promise is rejected within a try-catch in the Promise constructor.
9 // We expect an Exception debug event with a promise to be triggered.
21 assertTrue(event_data.promise() instanceof Promise);
35 var p = new Promise(function(resolve, reject) {
  /external/chromium_org/remoting/webapp/js_proto/
dom_proto.js 192 var Promise = function (init) {};
195 * @param {function(?=) : (Promise|void)} onFulfill
196 * @param {function(?=) : (Promise|void)=} onReject
197 * @return {Promise}
199 Promise.prototype.then = function (onFulfill, onReject) {};
203 * @return {Promise}
205 Promise.prototype['catch'] = function (onReject) {};
208 * @param {Array.<Promise>} promises
209 * @return {Promise}
211 Promise.prototype.race = function (promises) {
    [all...]
  /external/chromium_org/content/test/data/service_worker/
worker_activate_rejected.js 6 event.waitUntil(new Promise(function(resolve, reject) {
worker_install_fulfilled.js 6 event.waitUntil(new Promise(function(r) { setTimeout(r, 5); }));
worker_install_rejected.js 6 event.waitUntil(new Promise(function(resolve, reject) {

Completed in 422 milliseconds

1 2 3 4 5 6