| Index: modules/webmidi/MIDIAccessPromise.idl
|
| diff --git a/core/css/CSSFontFaceLoadEvent.idl b/modules/webmidi/MIDIAccessPromise.idl
|
| similarity index 83%
|
| copy from core/css/CSSFontFaceLoadEvent.idl
|
| copy to modules/webmidi/MIDIAccessPromise.idl
|
| index d89e765c792e259ee15e6dae180a844fe81bf16a..2a4b37a819584bfcb7b6264659dd21adb3afb19e 100644
|
| --- a/core/css/CSSFontFaceLoadEvent.idl
|
| +++ b/modules/webmidi/MIDIAccessPromise.idl
|
| @@ -28,11 +28,12 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| +// FIXME: Once Promise is implemented, remove this interface and use it.
|
| +// See also, http://crbug.com/243345
|
| [
|
| NoInterfaceObject,
|
| - EnabledAtRuntime=fontLoadEvents,
|
| - ConstructorTemplate=Event
|
| -] interface CSSFontFaceLoadEvent : Event {
|
| - [InitializedByEventConstructor] readonly attribute CSSFontFaceRule fontface;
|
| - [InitializedByEventConstructor] readonly attribute DOMError error;
|
| + ActiveDOMObject
|
| +] interface MIDIAccessPromise {
|
| + // Supports only then() method tentatively. But it never returns Promise.
|
| + void then(MIDISuccessCallback successCallback, MIDIErrorCallback errorCallback);
|
| };
|
|
|