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
3 // found in the LICENSE file.
5 enum InternalEnum
{ "foo", "bar", "baz" };
7 dictionary InternalDictionary
{
9 [Clamp
] long longMemberWithClamp
;
10 [EnforceRange
] long longMemberWithEnforceRange
;
11 // We don't want to add a UseCounter feature for testing, so using KeyboardEventKeyLocation.
12 [DeprecateAs
=KeyboardEventKeyLocation
, ImplementedAs
=longMember
] long deprecateLongMember
;
13 long longMemberWithDefault
= 42;
14 long? longOrNullMember
;
15 long? longOrNullMemberWithDefault
= null
;
16 boolean booleanMember
;
18 unrestricted
double unrestrictedDoubleMember
;
19 DOMString stringMember
;
20 DOMString stringMemberWithDefault
= "defaultStringValue";
21 ByteString byteStringMember
;
22 USVString usvStringMember
;
23 sequence
<DOMString
> stringSequenceMember
;
24 sequence
<DOMString
> stringSequenceMemberWithDefault
= [];
25 sequence
<DOMString
>? stringSequenceOrNullMember
;
26 InternalEnum enumMember
;
27 InternalEnum enumMemberWithDefault
= "foo";
28 InternalEnum? enumOrNullMember
;
29 InternalEnum
[] enumArrayMember
;
30 Element elementMember
;
31 Element? elementOrNullMember
;
33 object? objectOrNullMemberWithDefault
= null
;
34 (double or DOMString
) doubleOrStringMember
;
35 sequence
<(double or DOMString
)> doubleOrStringSequenceMember
;
36 EventTarget? eventTargetOrNullMember
= null
;
37 Dictionary dictionaryMember
;