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

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

Issue 860353002: IDL: Add toRestricted{Float,Double}() helpers to V8Binding.h (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add FIXME comment Created 5 years, 11 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 5e7184d33d62a11e6261954de27799398ed7e268..6032baa905f89ef2decd141107c658dd776f1d09 100644
--- a/Source/bindings/tests/results/core/TestDictionary.h
+++ b/Source/bindings/tests/results/core/TestDictionary.h
@@ -76,6 +76,10 @@ public:
void setObjectOrNullMember(ScriptValue value) { m_objectOrNullMember = value; }
void setObjectOrNullMemberToNull() { m_objectOrNullMember = ScriptValue(); }
+ bool hasRestrictedDoubleMember() const { return !m_restrictedDoubleMember.isNull(); }
+ double restrictedDoubleMember() const { return m_restrictedDoubleMember.get(); }
+ void setRestrictedDoubleMember(double value) { m_restrictedDoubleMember = value; }
+
bool hasStringArrayMember() const { return !m_stringArrayMember.isNull(); }
const Vector<String>& stringArrayMember() const { return m_stringArrayMember.get(); }
void setStringArrayMember(const Vector<String>& value) { m_stringArrayMember = value; }
@@ -128,6 +132,10 @@ public:
PassRefPtr<DOMUint8Array> uint8ArrayMember() const { return m_uint8ArrayMember; }
void setUint8ArrayMember(PassRefPtr<DOMUint8Array> value) { m_uint8ArrayMember = value; }
+ bool hasUnrestrictedDoubleMember() const { return !m_unrestrictedDoubleMember.isNull(); }
+ double unrestrictedDoubleMember() const { return m_unrestrictedDoubleMember.get(); }
+ void setUnrestrictedDoubleMember(double value) { m_unrestrictedDoubleMember = value; }
+
virtual void trace(Visitor*);
private:
@@ -142,6 +150,7 @@ private:
Nullable<int> m_longMember;
ScriptValue m_objectMember;
ScriptValue m_objectOrNullMember;
+ Nullable<double> m_restrictedDoubleMember;
Nullable<Vector<String> > m_stringArrayMember;
String m_stringMember;
String m_stringOrNullMember;
@@ -154,6 +163,7 @@ private:
RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> m_testInterfaceWillBeGarbageCollectedMember;
RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> m_testInterfaceWillBeGarbageCollectedOrNullMember;
RefPtr<DOMUint8Array> m_uint8ArrayMember;
+ Nullable<double> m_unrestrictedDoubleMember;
friend class V8TestDictionary;
};

Powered by Google App Engine
This is Rietveld 408576698