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

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

Issue 2709983004: WIP bindings: Add support for the record<K,V> WebIDL type. (Closed)
Patch Set: Rebased patch using NativeValueTraits for IDL types Created 3 years, 10 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: third_party/WebKit/Source/bindings/tests/results/core/TestDictionary.h
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/TestDictionary.h b/third_party/WebKit/Source/bindings/tests/results/core/TestDictionary.h
index 7b1800650fbcbb09f37df96390d7189664674fa8..c43886cd281e65bbd652258d7c19761eca743142 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/TestDictionary.h
+++ b/third_party/WebKit/Source/bindings/tests/results/core/TestDictionary.h
@@ -104,6 +104,10 @@ class CORE_EXPORT TestDictionary : public IDLDictionaryBase {
void setObjectOrNullMember(ScriptValue);
void setObjectOrNullMemberToNull();
+ bool hasOilpanRecordMember() const;
+ const HeapVector<std::pair<String, Member<TestObject>>>& oilpanRecordMember() const;
+ void setOilpanRecordMember(const HeapVector<std::pair<String, Member<TestObject>>>&);
+
bool hasOtherDoubleOrStringMember() const;
const DoubleOrString& otherDoubleOrStringMember() const;
void setOtherDoubleOrStringMember(const DoubleOrString&);
@@ -112,6 +116,10 @@ class CORE_EXPORT TestDictionary : public IDLDictionaryBase {
ScriptValue getPrefixGetMember() const;
void setPrefixGetMember(ScriptValue);
+ bool hasRecordMember() const;
+ const Vector<std::pair<String, int>>& recordMember() const;
+ void setRecordMember(const Vector<std::pair<String, int>>&);
+
bool hasRestrictedDoubleMember() const;
double restrictedDoubleMember() const;
void setRestrictedDoubleMember(double);
@@ -205,8 +213,12 @@ class CORE_EXPORT TestDictionary : public IDLDictionaryBase {
int m_longMember;
ScriptValue m_objectMember;
ScriptValue m_objectOrNullMember;
+ bool m_hasOilpanRecordMember = false;
+ HeapVector<std::pair<String, Member<TestObject>>> m_oilpanRecordMember;
DoubleOrString m_otherDoubleOrStringMember;
ScriptValue m_prefixGetMember;
+ bool m_hasRecordMember = false;
+ Vector<std::pair<String, int>> m_recordMember;
bool m_hasRestrictedDoubleMember = false;
double m_restrictedDoubleMember;
bool m_hasRuntimeMember = false;

Powered by Google App Engine
This is Rietveld 408576698