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

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: sequence and array support 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
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/dom/SomeDictionaryUser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..abc7a0481edfa0f0880444f90aa4a188af91685c
--- /dev/null
+++ b/Source/core/dom/SomeDictionary.idl
@@ -0,0 +1,13 @@
+// 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
+ boolean? nullableBooleanMember = null; // Exmaple of a nullable member
+ sequence<DOMString> stringSequenceMember; // Example of a sequence member
+ Element[] elementArrayMember; // Example of an array member
+};
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/dom/SomeDictionaryUser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698