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

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

Issue 2709983004: WIP bindings: Add support for the record<K,V> WebIDL type. (Closed)
Patch Set: Rebased patch using NativeValueTraits for IDL types Created 3 years, 10 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 9f3006e0d36538522e1d99fafb464f70d2d2655c..aa57e1b4f9734f13acecb1c6a3f78ecb0b9ba5eb 100644
--- a/third_party/WebKit/Source/bindings/tests/idls/core/TestTypedefs.idl
+++ b/third_party/WebKit/Source/bindings/tests/idls/core/TestTypedefs.idl
@@ -42,6 +42,9 @@ typedef TestCallbackInterface TestCallbackInterfaceType;
typedef TestInterfaceConstructor T;
typedef (TestInterface or TestInterfaceEmpty) TestInterfaceOrTestInterfaceEmpty;
typedef (DOMString or double) DOMStringOrDouble;
+typedef record<ByteString, long> SomeRecordType;
+typedef record<USVString, TestObject> RecordWithOilpanValueType;
+typedef (sequence<sequence<ByteString>> or record<ByteString, ByteString>) UnionWithRecord;
[
Constructor(String stringArg),
@@ -61,4 +64,9 @@ typedef (DOMString or double) DOMStringOrDouble;
ArrayOfStrings arrayOfStringsMethodArrayOfStringsArg(ArrayOfStrings arrayOfStringsArg);
String[] stringArrayMethodStringArrayArg(String[] stringArrayArg);
+
+ void methodTakingRecord(SomeRecordType arg);
+ void methodTakingOilpanValueRecord(RecordWithOilpanValueType arg);
+ double unionWithRecordMethod(UnionWithRecord arg);
+ record<DOMString, boolean> methodThatReturnsRecord();
};

Powered by Google App Engine
This is Rietveld 408576698