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

Unified Diff: third_party/WebKit/Source/bindings/tests/idls/core/TestTypedefs.idl

Issue 2749253002: bindings: Expand typedefs before generating union files. (Closed)
Patch Set: Created 3 years, 9 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
Index: third_party/WebKit/Source/bindings/tests/idls/core/TestTypedefs.idl
diff --git a/third_party/WebKit/Source/bindings/tests/idls/core/TestTypedefs.idl b/third_party/WebKit/Source/bindings/tests/idls/core/TestTypedefs.idl
index 3eca6f314acc096e63c9d95c2429f2b108165ff5..f82283f66c11a71bbd8dc7b495cc0e810c345a38 100644
--- a/third_party/WebKit/Source/bindings/tests/idls/core/TestTypedefs.idl
+++ b/third_party/WebKit/Source/bindings/tests/idls/core/TestTypedefs.idl
@@ -32,6 +32,7 @@
// as typedefs are resolved during IR construction (after parsing,
// before code generation), and thus the code generator never sees them.
+typedef boolean BooleanType;
typedef float Float;
typedef unsigned long long ULongLong;
typedef TestInterfaceEmpty TestInterfaceEmptyType;
@@ -46,6 +47,7 @@ typedef record<ByteString, long> SomeRecordType;
typedef record<USVString, TestObject> RecordWithOilpanValueType;
typedef (sequence<sequence<ByteString>> or record<ByteString, ByteString>) UnionWithRecord;
typedef (Node or (sequence<long> or Event) or (XMLHttpRequest or DOMString)? or record<DOMString, (ByteString or NodeList)>) NestedUnionType;
+typedef (ULongLong or (BooleanType or TestCallbackInterfaceType)) UnionWithTypedef;
[
Constructor(String stringArg),
@@ -72,4 +74,6 @@ typedef (Node or (sequence<long> or Event) or (XMLHttpRequest or DOMString)? or
record<DOMString, boolean> methodThatReturnsRecord();
void voidMethodNestedUnionType(NestedUnionType arg);
+
+ void voidMethodUnionWithTypedef(UnionWithTypedef arg);
};

Powered by Google App Engine
This is Rietveld 408576698