OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2010, Google Inc. All rights reserved. | 2 * Copyright (C) 2010, Google Inc. All rights reserved. |
3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 12 matching lines...) Expand all Loading... | |
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH | 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH |
24 * DAMAGE. | 24 * DAMAGE. |
25 */ | 25 */ |
26 | 26 |
27 // See https://webaudio.github.io/web-audio-api/#AudioContext | 27 // See https://webaudio.github.io/web-audio-api/#AudioContext |
28 [ | 28 [ |
29 ActiveScriptWrappable, | 29 ActiveScriptWrappable, |
30 Constructor, | 30 Constructor, |
31 ConstructorCallWith=Document, | 31 ConstructorCallWith=Document, |
32 DependentLifetime, | 32 DependentLifetime, |
33 NoInterfaceObject, | 33 NoInterfaceObject, |
foolip
2016/12/13 20:44:48
Also remove NoInterfaceObject
| |
34 RaisesException=Constructor, | 34 RaisesException=Constructor, |
35 Measure | |
35 ] interface AudioContext : BaseAudioContext { | 36 ] interface AudioContext : BaseAudioContext { |
36 [MeasureAs=AudioContextSuspend, CallWith=ScriptState, ImplementedAs=suspendC ontext] Promise<void> suspend(); | 37 [MeasureAs=AudioContextSuspend, CallWith=ScriptState, ImplementedAs=suspendC ontext] Promise<void> suspend(); |
37 [MeasureAs=AudioContextClose, CallWith=ScriptState, ImplementedAs=closeConte xt] Promise<void> close(); | 38 [MeasureAs=AudioContextClose, CallWith=ScriptState, ImplementedAs=closeConte xt] Promise<void> close(); |
38 | 39 |
39 // Sources | 40 // Sources |
40 // TODO(rtoy): The following methods should be here instead of in BaseAudioC ontext: | 41 // TODO(rtoy): The following methods should be here instead of in BaseAudioC ontext: |
41 // | 42 // |
42 // createMediaElementSource(HTMLMediaElement mediaElement) | 43 // createMediaElementSource(HTMLMediaElement mediaElement) |
43 // createMediaStreamSource(MediaStream mediaStream) | 44 // createMediaStreamSource(MediaStream mediaStream) |
44 // createMediaStreamDestination() | 45 // createMediaStreamDestination() |
45 }; | 46 }; |
OLD | NEW |