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

Side by Side Diff: Source/bindings/tests/idls/core/TestDictionary.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
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
5 enum TestEnum { "foo", "bar", "baz" };
6
4 [ 7 [
5 GarbageCollected, 8 GarbageCollected,
6 ] dictionary TestDictionary { 9 ] dictionary TestDictionary {
7 boolean booleanMember; 10 boolean booleanMember;
8 long longMember = 1; 11 long longMember = 1;
9 DOMString stringMember; 12 DOMString stringMember;
10 TestInterface testInterfaceMember; 13 TestInterface testInterfaceMember;
11 double? doubleOrNullMember = null; 14 double? doubleOrNullMember = null;
12 DOMString? stringOrNullMember = "default string value"; 15 DOMString? stringOrNullMember = "default string value";
13 TestInterface? testInterfaceOrNullMember; 16 TestInterface? testInterfaceOrNullMember;
14 TestInterfaceGarbageCollected testInterfaceGarbageCollectedMember; 17 TestInterfaceGarbageCollected testInterfaceGarbageCollectedMember;
15 TestInterfaceGarbageCollected? testInterfaceGarbageCollectedOrNullMember; 18 TestInterfaceGarbageCollected? testInterfaceGarbageCollectedOrNullMember;
16 TestInterfaceWillBeGarbageCollected testInterfaceWillBeGarbageCollectedMembe r; 19 TestInterfaceWillBeGarbageCollected testInterfaceWillBeGarbageCollectedMembe r;
17 TestInterfaceWillBeGarbageCollected? testInterfaceWillBeGarbageCollectedOrNu llMember; 20 TestInterfaceWillBeGarbageCollected? testInterfaceWillBeGarbageCollectedOrNu llMember;
18 DOMString[] stringArrayMember; 21 DOMString[] stringArrayMember;
19 sequence<DOMString> stringSequenceMember; 22 sequence<DOMString> stringSequenceMember;
23 TestEnum enumMember = "foo";
20 }; 24 };
OLDNEW
« no previous file with comments | « Source/bindings/templates/dictionary_v8.cpp ('k') | Source/bindings/tests/results/core/TestDictionary.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698