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

Side by Side Diff: Source/core/testing/DictionaryTest.h

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
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 #ifndef DictionaryTest_h 5 #ifndef DictionaryTest_h
6 #define DictionaryTest_h 6 #define DictionaryTest_h
7 7
8 #include "bindings/core/v8/Nullable.h" 8 #include "bindings/core/v8/Nullable.h"
9 #include "bindings/core/v8/ScriptValue.h" 9 #include "bindings/core/v8/ScriptValue.h"
10 #include "bindings/core/v8/ScriptWrappable.h" 10 #include "bindings/core/v8/ScriptWrappable.h"
(...skipping 29 matching lines...) Expand all
40 DictionaryTest(); 40 DictionaryTest();
41 41
42 void reset(); 42 void reset();
43 43
44 // The reason to use Nullable<T> is convenience; we use Nullable<T> here to 44 // The reason to use Nullable<T> is convenience; we use Nullable<T> here to
45 // record whether the member field is set or not. Some members are not 45 // record whether the member field is set or not. Some members are not
46 // wrapped with Nullable because: 46 // wrapped with Nullable because:
47 // - |longMemberWithDefault| has a non-null default value 47 // - |longMemberWithDefault| has a non-null default value
48 // - String and PtrTypes can express whether they are null 48 // - String and PtrTypes can express whether they are null
49 Nullable<int> m_longMember; 49 Nullable<int> m_longMember;
50 Nullable<int> m_longMemberWithClamp;
51 Nullable<int> m_longMemberWithEnforceRange;
50 int m_longMemberWithDefault; 52 int m_longMemberWithDefault;
51 Nullable<int> m_longOrNullMember; 53 Nullable<int> m_longOrNullMember;
52 Nullable<int> m_longOrNullMemberWithDefault; 54 Nullable<int> m_longOrNullMemberWithDefault;
53 Nullable<bool> m_booleanMember; 55 Nullable<bool> m_booleanMember;
54 Nullable<double> m_doubleMember; 56 Nullable<double> m_doubleMember;
55 String m_stringMember; 57 String m_stringMember;
56 String m_stringMemberWithDefault; 58 String m_stringMemberWithDefault;
57 Nullable<Vector<String> > m_stringSequenceMember; 59 Nullable<Vector<String> > m_stringSequenceMember;
58 Nullable<Vector<String> > m_stringSequenceOrNullMember; 60 Nullable<Vector<String> > m_stringSequenceOrNullMember;
59 String m_enumMember; 61 String m_enumMember;
60 String m_enumMemberWithDefault; 62 String m_enumMemberWithDefault;
61 String m_enumOrNullMember; 63 String m_enumOrNullMember;
62 RefPtrWillBeMember<Element> m_elementMember; 64 RefPtrWillBeMember<Element> m_elementMember;
63 RefPtrWillBeMember<Element> m_elementOrNullMember; 65 RefPtrWillBeMember<Element> m_elementOrNullMember;
64 ScriptValue m_objectMember; 66 ScriptValue m_objectMember;
65 ScriptValue m_objectOrNullMemberWithDefault; 67 ScriptValue m_objectOrNullMemberWithDefault;
66 String m_derivedStringMember; 68 String m_derivedStringMember;
67 String m_derivedStringMemberWithDefault; 69 String m_derivedStringMemberWithDefault;
68 }; 70 };
69 71
70 } // namespace blink 72 } // namespace blink
71 73
72 #endif // DictionaryTest_h 74 #endif // DictionaryTest_h
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8TestDictionaryDerived.cpp ('k') | Source/core/testing/DictionaryTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698