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

Unified Diff: Source/core/testing/InternalDictionary.idl

Issue 561633003: IDL: Enumerations support in dictionaries (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase & style Created 6 years, 3 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/testing/InternalDictionary.idl
diff --git a/Source/core/testing/InternalDictionary.idl b/Source/core/testing/InternalDictionary.idl
index 672afe4b87b145c1c056c57d3bde2c7322ec2cbe..f7feaf34f9bac9b41be6928d6b4a74cbaf48baef 100644
--- a/Source/core/testing/InternalDictionary.idl
+++ b/Source/core/testing/InternalDictionary.idl
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+enum InternalEnum { "foo", "bar", "baz" };
+
[
GarbageCollected
] dictionary InternalDictionary {
@@ -15,6 +17,9 @@
DOMString stringMemberWithDefault = "defaultStringValue";
sequence<DOMString> stringSequenceMember;
sequence<DOMString>? stringSequenceOrNullMember;
+ InternalEnum enumMember;
+ InternalEnum enumMemberWithDefault = "foo";
+ InternalEnum? enumOrNullMember;
Element elementMember;
Element? elementOrNullMember;
};
« Source/bindings/scripts/v8_dictionary.py ('K') | « Source/core/testing/DictionaryTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698