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

Unified Diff: third_party/WebKit/Source/core/testing/RecordTest.idl

Issue 2732093003: bindings: Add support for the record<K,V> WebIDL type. (Closed)
Patch Set: s/isolate->GetCurrentContext()/context/ 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
« no previous file with comments | « third_party/WebKit/Source/core/testing/RecordTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..4d2b15391ff8a81b6524b2a2ec861caaceb19f07
--- /dev/null
+++ b/third_party/WebKit/Source/core/testing/RecordTest.idl
@@ -0,0 +1,29 @@
+// 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();
+
+ record<DOMString, sequence<ByteString>> returnStringByteStringSequenceRecord();
+
+ boolean unionReceivedARecord((boolean or record<ByteString, ByteString>) arg);
+
+ // Test the bindings generator code: unions and dictionaries must trace a
+ // record when it's represented as a HeapVector.
+ void setFloatOrStringElementRecord((float or record<DOMString, Element>) arg);
+};
« no previous file with comments | « third_party/WebKit/Source/core/testing/RecordTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698