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

Side by Side 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: Remove parens 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 unified diff | Download patch
« no previous file with comments | « Source/core/testing/DictionaryTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 enum InternalEnum { "foo", "bar", "baz" };
6
5 [ 7 [
6 GarbageCollected 8 GarbageCollected
7 ] dictionary InternalDictionary { 9 ] dictionary InternalDictionary {
8 long longMember; 10 long longMember;
9 long longMemberWithDefault = 42; 11 long longMemberWithDefault = 42;
10 long? longOrNullMember; 12 long? longOrNullMember;
11 long? longOrNullMemberWithDefault = null; 13 long? longOrNullMemberWithDefault = null;
12 boolean booleanMember; 14 boolean booleanMember;
13 double doubleMember; 15 double doubleMember;
14 DOMString stringMember; 16 DOMString stringMember;
15 DOMString stringMemberWithDefault = "defaultStringValue"; 17 DOMString stringMemberWithDefault = "defaultStringValue";
16 sequence<DOMString> stringSequenceMember; 18 sequence<DOMString> stringSequenceMember;
17 sequence<DOMString>? stringSequenceOrNullMember; 19 sequence<DOMString>? stringSequenceOrNullMember;
20 InternalEnum enumMember;
21 InternalEnum enumMemberWithDefault = "foo";
22 InternalEnum? enumOrNullMember;
18 Element elementMember; 23 Element elementMember;
19 Element? elementOrNullMember; 24 Element? elementOrNullMember;
20 }; 25 };
OLDNEW
« no previous file with comments | « Source/core/testing/DictionaryTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698