diff options
Diffstat (limited to 'components/script/dom/webidls')
-rw-r--r-- | components/script/dom/webidls/Promise.webidl | 11 | ||||
-rw-r--r-- | components/script/dom/webidls/TestBinding.webidl | 5 |
2 files changed, 16 insertions, 0 deletions
diff --git a/components/script/dom/webidls/Promise.webidl b/components/script/dom/webidls/Promise.webidl new file mode 100644 index 00000000000..d437d244d58 --- /dev/null +++ b/components/script/dom/webidls/Promise.webidl @@ -0,0 +1,11 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +// This interface is entirely internal to Servo, and should not be accessible to +// web pages. + +[NoInterfaceObject] +// Need to escape "Promise" so it's treated as an identifier. +interface _Promise { +}; diff --git a/components/script/dom/webidls/TestBinding.webidl b/components/script/dom/webidls/TestBinding.webidl index e35b914d08e..dc58b9b0645 100644 --- a/components/script/dom/webidls/TestBinding.webidl +++ b/components/script/dom/webidls/TestBinding.webidl @@ -508,6 +508,11 @@ interface TestBinding { [Func="TestBinding::condition_satisfied"] const unsigned short funcControlledConstEnabled = 0; + Promise<DOMString> returnPromise(); + readonly attribute Promise<boolean> promiseAttribute; + void acceptPromise(Promise<DOMString> string); + void acceptNullablePromise(Promise<DOMString>? string); + void panic(); }; |