Chromium Code Reviews| 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..28baefd206b0ed6410ea8cd042b9cf10b96032c8 |
| --- /dev/null |
| +++ b/Source/bindings/tests/results/TestDictionary.h |
| @@ -0,0 +1,60 @@ |
| +// 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/tests/idls/TestInterfaceImplementation.h" |
| +#include "core/dom/Node.h" |
| +#include "platform/heap/Handle.h" |
| +#include "wtf/text/WTFString.h" |
| + |
| +namespace WebCore { |
| + |
| +class TestDictionary : public GarbageCollectedFinalized<TestDictionary> { |
|
haraken
2014/07/21 16:11:59
It makes sense to enable oilpan by default for IDL
bashi
2014/07/22 02:33:58
:)
Should I remove Finalized suffix if I want to
haraken
2014/07/22 04:30:10
"Finalized" is not related to inheritance. "Finali
bashi
2014/07/22 05:57:35
I see. Thanks for the explanation!
|
| +public: |
| + static TestDictionary* create() |
| + { |
| + return new TestDictionary; |
| + } |
| + TestDictionary(); |
|
haraken
2014/07/21 16:11:59
This constructor should be in a private section.
bashi
2014/07/22 02:33:58
Done.
|
| + |
| + bool hasBooleanMember() const { return m_hasBooleanMember; } |
| + bool booleanMember() const { return m_booleanMember; } |
| + void setBooleanMember(bool); |
| + bool hasLongMember() const { return m_hasLongMember; } |
| + int longMember() const { return m_longMember; } |
| + void setLongMember(int); |
| + bool hasStringMember() const { return m_hasStringMember; } |
| + String stringMember() const { return m_stringMember; } |
| + void setStringMember(String); |
| + bool hasNodeMember() const { return m_hasNodeMember; } |
| + PassRefPtrWillBeRawPtr<Node> nodeMember() const { return m_nodeMember; } |
| + void setNodeMember(PassRefPtrWillBeRawPtr<Node>); |
| + bool hasTestInterfaceMember() const { return m_hasTestInterfaceMember; } |
| + PassRefPtr<TestInterfaceImplementation> testInterfaceMember() const { return m_testInterfaceMember; } |
| + void setTestInterfaceMember(PassRefPtr<TestInterfaceImplementation>); |
| + |
| + void trace(Visitor*); |
| + |
| +private: |
| + bool m_booleanMember; |
| + bool m_hasBooleanMember; |
|
haraken
2014/07/21 16:11:59
Can we use Nullable<T>?
bashi
2014/07/22 02:33:58
These members are not nullable (no ? suffix in IDL
haraken
2014/07/22 04:30:10
Nullable<T> is not a class just to represent IDL's
bashi
2014/07/22 05:57:35
This is exactly what I was going to implement. For
haraken
2014/07/22 07:23:18
I'm not fully understanding the spec, but if Nulla
|
| + int m_longMember; |
| + bool m_hasLongMember; |
| + String m_stringMember; |
| + bool m_hasStringMember; |
| + RefPtrWillBeMember<Node> m_nodeMember; |
| + bool m_hasNodeMember; |
| + RefPtr<TestInterfaceImplementation> m_testInterfaceMember; |
| + bool m_hasTestInterfaceMember; |
| + |
| + friend class V8TestDictionary; |
| +}; |
| + |
| +} // namespace WebCore |
| + |
| +#endif // TestDictionary_h |