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

Unified Diff: Source/bindings/tests/results/core/TestDictionary.h

Issue 1130763006: IDL: Add any support to IDL dictionary and use it in CustomEventInit (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: Source/bindings/tests/results/core/TestDictionary.h
diff --git a/Source/bindings/tests/results/core/TestDictionary.h b/Source/bindings/tests/results/core/TestDictionary.h
index 7a94bf3684d38de112582243ad15121b34f65bf4..738e386324a3b9e3a87d4092f8bf8078857be240 100644
--- a/Source/bindings/tests/results/core/TestDictionary.h
+++ b/Source/bindings/tests/results/core/TestDictionary.h
@@ -30,6 +30,10 @@ class CORE_EXPORT TestDictionary {
public:
TestDictionary();
+ bool hasAnyMember() const { return !(m_anyMember.isEmpty() || m_anyMember.isNull() || m_anyMember.isUndefined()); }
+ ScriptValue anyMember() const { return m_anyMember; }
+ void setAnyMember(ScriptValue value) { m_anyMember = value; }
+
bool hasBooleanMember() const { return !m_booleanMember.isNull(); }
bool booleanMember() const { return m_booleanMember.get(); }
void setBooleanMember(bool value) { m_booleanMember = value; }
@@ -148,6 +152,7 @@ public:
DECLARE_VIRTUAL_TRACE();
private:
+ ScriptValue m_anyMember;
Nullable<bool> m_booleanMember;
Nullable<bool> m_createMember;
Nullable<double> m_doubleOrNullMember;
« no previous file with comments | « Source/bindings/tests/idls/core/TestDictionary.idl ('k') | Source/bindings/tests/results/core/V8TestDictionary.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698