Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6004)

Unified Diff: bindings/tests/idls/TestTypedefs.idl

Issue 540533002: Roll IDL to Dartium37 (r181268) (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bindings/tests/idls/TestSpecialOperationsNotEnumerable.idl ('k') | core/README » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
-
« no previous file with comments | « bindings/tests/idls/TestSpecialOperationsNotEnumerable.idl ('k') | core/README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698