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

Unified Diff: Source/core/dom/SomeDictionary.idl

Issue 386963003: [WIP][NotForLand] IDL dictionary support (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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: Source/core/dom/SomeDictionary.idl
diff --git a/Source/core/dom/SomeDictionary.idl b/Source/core/dom/SomeDictionary.idl
new file mode 100644
index 0000000000000000000000000000000000000000..49d7849b106c0c2b2b07d56032192830ceaf70ea
--- /dev/null
+++ b/Source/core/dom/SomeDictionary.idl
@@ -0,0 +1,10 @@
+// NOT FOR LAND -- this is an example of IDL dictionary.
+
+[
+ GarbageCollected
+] dictionary SomeDictionary {
+ long a; // Example of a primitive member
+ long b = 2; // Example of a primitive member with default value
+ DOMString stringMember = "doraemon"; // Example of a string member
+ Element element = null; // Example of an interface member
+};

Powered by Google App Engine
This is Rietveld 408576698