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

Side by Side Diff: Source/core/testing/InternalDictionary.idl

Issue 724733002: Support for [Clamp] and [EnforceRange] to IDL dictionary. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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" }; 5 enum InternalEnum { "foo", "bar", "baz" };
6 6
7 dictionary InternalDictionary { 7 dictionary InternalDictionary {
8 long longMember; 8 long longMember;
9 [Clamp] long longMemberWithClamp;
10 [EnforceRange] long longMemberWithEnforceRange;
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;
18 InternalEnum enumMember; 20 InternalEnum enumMember;
19 InternalEnum enumMemberWithDefault = "foo"; 21 InternalEnum enumMemberWithDefault = "foo";
20 InternalEnum? enumOrNullMember; 22 InternalEnum? enumOrNullMember;
21 Element elementMember; 23 Element elementMember;
22 Element? elementOrNullMember; 24 Element? elementOrNullMember;
23 object objectMember; 25 object objectMember;
24 object? objectOrNullMemberWithDefault = null; 26 object? objectOrNullMemberWithDefault = null;
25 }; 27 };
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