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

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

Issue 386963003: [WIP][NotForLand] IDL dictionary support (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: sequence and array support Created 6 years, 5 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
« no previous file with comments | « Source/bindings/tests/idls/TestObject.idl ('k') | Source/bindings/tests/results/TestDictionary.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/tests/results/TestDictionary.h
diff --git a/Source/bindings/tests/results/TestDictionary.h b/Source/bindings/tests/results/TestDictionary.h
new file mode 100644
index 0000000000000000000000000000000000000000..6406fd53c35fe2ebbd86d8db59cb07ba3c9fc823
--- /dev/null
+++ b/Source/bindings/tests/results/TestDictionary.h
@@ -0,0 +1,82 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
+
+#ifndef TestDictionary_h
+#define TestDictionary_h
+
+#include "bindings/core/v8/Nullable.h"
+#include "bindings/tests/idls/TestInterfaceImplementation.h"
+#include "core/dom/Node.h"
+#include "platform/heap/Handle.h"
+#include "wtf/Vector.h"
+#include "wtf/text/WTFString.h"
+
+namespace blink {
+
+class TestDictionary : public GarbageCollectedFinalized<TestDictionary> {
+public:
+ static TestDictionary* create()
+ {
+ return new TestDictionary;
+ }
+
+ bool hasBooleanMember() const { return !m_booleanMember.isNull(); }
+ bool booleanMember() const { return m_booleanMember.get(); }
+ void setBooleanMember(bool);
+ bool hasLongMember() const { return !m_longMember.isNull(); }
+ int longMember() const { return m_longMember.get(); }
+ void setLongMember(int);
+ bool hasStringMember() const { return !m_stringMember.isNull(); }
+ const String& stringMember() const { return m_stringMember; }
+ void setStringMember(String);
+ bool hasNodeMember() const { return m_nodeMember; }
+ PassRefPtrWillBeRawPtr<Node> nodeMember() const { return m_nodeMember; }
+ void setNodeMember(PassRefPtrWillBeRawPtr<Node>);
+ bool hasTestInterfaceMember() const { return m_testInterfaceMember; }
+ PassRefPtr<TestInterfaceImplementation> testInterfaceMember() const { return m_testInterfaceMember; }
+ void setTestInterfaceMember(PassRefPtr<TestInterfaceImplementation>);
+ bool hasBooleanOrNullMember() const { return !m_booleanOrNullMember.isNull(); }
+ bool booleanOrNullMember() const { return m_booleanOrNullMember.get(); }
+ void setBooleanOrNullMember(bool);
+ bool hasTestInterfaceOrNullMember() const { return m_testInterfaceOrNullMember; }
+ PassRefPtr<TestInterfaceImplementation> testInterfaceOrNullMember() const { return m_testInterfaceOrNullMember; }
+ void setTestInterfaceOrNullMember(PassRefPtr<TestInterfaceImplementation>);
+ bool hasStringOrNullMember() const { return !m_stringOrNullMember.isNull(); }
+ const String& stringOrNullMember() const { return m_stringOrNullMember; }
+ void setStringOrNullMember(String);
+ bool hasFloatSequenceMember() const { return !m_floatSequenceMember.isEmpty(); }
+ const Vector<float>& floatSequenceMember() const { return m_floatSequenceMember; }
+ void setFloatSequenceMember(const Vector<float>&);
+ bool hasTestInterfaceSequenceSequenceMember() const { return !m_testInterfaceSequenceSequenceMember.isEmpty(); }
+ const Vector<RefPtr<TestInterfaceImplementation> >& testInterfaceSequenceSequenceMember() const { return m_testInterfaceSequenceSequenceMember; }
+ void setTestInterfaceSequenceSequenceMember(const Vector<RefPtr<TestInterfaceImplementation> >&);
+ bool hasNodeArrayMember() const { return !m_nodeArrayMember.isEmpty(); }
+ const WillBeHeapVector<RefPtrWillBeMember<Node> >& nodeArrayMember() const { return m_nodeArrayMember; }
+ void setNodeArrayMember(const WillBeHeapVector<RefPtrWillBeMember<Node> >&);
+
+ void trace(Visitor*);
+
+private:
+ TestDictionary();
+
+ Nullable<bool> m_booleanMember;
+ Nullable<int> m_longMember;
+ String m_stringMember;
+ RefPtrWillBeMember<Node> m_nodeMember;
+ RefPtr<TestInterfaceImplementation> m_testInterfaceMember;
+ Nullable<bool> m_booleanOrNullMember;
+ RefPtr<TestInterfaceImplementation> m_testInterfaceOrNullMember;
+ String m_stringOrNullMember;
+ Vector<float> m_floatSequenceMember;
+ Vector<RefPtr<TestInterfaceImplementation> > m_testInterfaceSequenceSequenceMember;
+ WillBeHeapVector<RefPtrWillBeMember<Node> > m_nodeArrayMember;
+
+ friend class V8TestDictionary;
+};
+
+} // namespace blink
+
+#endif // TestDictionary_h
« no previous file with comments | « Source/bindings/tests/idls/TestObject.idl ('k') | Source/bindings/tests/results/TestDictionary.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698