| Index: bindings/tests/idls/TestTypedefs.idl
|
| diff --git a/modules/mediasource/SourceBuffer.idl b/bindings/tests/idls/TestTypedefs.idl
|
| similarity index 52%
|
| copy from modules/mediasource/SourceBuffer.idl
|
| copy to bindings/tests/idls/TestTypedefs.idl
|
| index 1272771cac3f980fe823627b57048461783bc8d8..373a875dc13e37a71de36e7dfff556d6e2beb143 100644
|
| --- a/modules/mediasource/SourceBuffer.idl
|
| +++ b/bindings/tests/idls/TestTypedefs.idl
|
| @@ -28,43 +28,34 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -enum AppendMode {
|
| - "segments",
|
| - "sequence"
|
| -};
|
| +// This IDL file is for testing the front end, not code generator,
|
| +// as typedefs are resolved during IR construction (after parsing,
|
| +// before code generation), and thus the code generator never sees them.
|
| +
|
| +typedef float Float;
|
| +typedef unsigned long long ULongLong;
|
| +typedef TestInterfaceEmpty TestInterfaceEmptyType;
|
| +typedef long[] ArrayOfLongs;
|
| +typedef DOMString String;
|
| +typedef DOMString[] ArrayOfStrings;
|
| +typedef TestCallbackInterface TestCallbackInterfaceType;
|
| +typedef TestInterfaceConstructor T;
|
| +typedef (TestInterface or TestInterfaceEmpty) TestInterfaceOrTestInterfaceEmpty;
|
|
|
| [
|
| - NoInterfaceObject,
|
| - ActiveDOMObject,
|
| - RuntimeEnabled=MediaSource
|
| -] interface SourceBuffer : EventTarget {
|
| -
|
| - // Gets or sets the AppendMode.
|
| - // FIXME: Remove MediaSourceExperimental once mode attribute is implemented and stabilized. See http://crbug.com/249422.
|
| - [RaisesException=Setter, RuntimeEnabled=MediaSourceExperimental] attribute AppendMode mode;
|
| -
|
| - readonly attribute boolean updating;
|
| -
|
| - // Returns the time ranges buffered.
|
| - [RaisesException=Getter] readonly attribute TimeRanges buffered;
|
| + Constructor(String stringArg),
|
| +] interface TestTypedefs {
|
| + attribute ULongLong uLongLongAttribute;
|
| + attribute T tAttribute;
|
|
|
| - // Applies an offset to media segment timestamps.
|
| - [RaisesException=Setter] attribute double timestampOffset;
|
| + void voidMethodArrayOfLongsArg(optional ArrayOfLongs arrayOfLongsArg);
|
|
|
| - // Presentation timestamp for the start of append window.
|
| - [RaisesException=Setter] attribute double appendWindowStart;
|
| + void voidMethodFloatArgStringArg(Float floatArg, String stringArg);
|
| + void voidMethodTestCallbackInterfaceTypeArg(TestCallbackInterfaceType testCallbackInterfaceTypeArg);
|
|
|
| - // Presentation timestamp for the end of append window.
|
| - [RaisesException=Setter] attribute double appendWindowEnd;
|
| + ULongLong uLongLongMethodTestInterfaceEmptyTypeSequenceArg(sequence<TestInterfaceEmptyType> testInterfaceEmptyTypeSequenceArg);
|
| + TestInterfaceOrTestInterfaceEmpty testInterfaceOrTestInterfaceEmptyMethod();
|
|
|
| - // Append segment data.
|
| - [RaisesException] void appendBuffer(ArrayBuffer data);
|
| - [RaisesException] void appendBuffer(ArrayBufferView data);
|
| -
|
| - [RaisesException, RuntimeEnabled=Stream] void appendStream(Stream stream, optional unsigned long long maxSize);
|
| -
|
| - // Abort the current segment append sequence.
|
| - [RaisesException] void abort();
|
| - [RaisesException] void remove(double start, double end);
|
| + ArrayOfStrings arrayOfStringsMethodArrayOfStringsArg(ArrayOfStrings arrayOfStringsArg);
|
| + String[] stringArrayMethodStringArrayArg(String[] stringArrayArg);
|
| };
|
| -
|
|
|