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

Unified Diff: third_party/WebKit/Source/core/testing/RecordTest.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/core/testing/RecordTest.idl
diff --git a/third_party/WebKit/Source/core/testing/RecordTest.idl b/third_party/WebKit/Source/core/testing/RecordTest.idl
new file mode 100644
index 0000000000000000000000000000000000000000..5d4534d262d9a6aed2a36508f86f40e162356c29
--- /dev/null
+++ b/third_party/WebKit/Source/core/testing/RecordTest.idl
@@ -0,0 +1,26 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+typedef record<DOMString, long> RecordTypedef;
+
+interface RecordTest {
+ void setStringLongRecord(RecordTypedef arg);
+ RecordTypedef getStringLongRecord();
+
+ void setNullableStringLongRecord(RecordTypedef? arg);
+ RecordTypedef? getNullableStringLongRecord();
+
+ void setByteStringByteStringRecord(record<ByteString, ByteString> arg);
+
+ void setStringElementRecord(record<DOMString, Element> arg);
+ record<DOMString, Element> getStringElementRecord();
+
+ void setUSVStringUSVStringBooleanRecordRecord(record<USVString, record<USVString, boolean>> arg);
+ record<USVString, record<USVString, boolean>> getUSVStringUSVStringBooleanRecordRecord();
+
+ boolean unionReceivedARecord((boolean or record<ByteString, ByteString>) arg);
+
+ void setFloatOrStringBooleanRecord((float or record<DOMString, boolean>) arg);
+ void setFloatOrStringElementRecord((float or record<DOMString, Element>) arg);
+};

Powered by Google App Engine
This is Rietveld 408576698