OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! | |
6 | |
7 #ifndef TestDictionary_h | |
8 #define TestDictionary_h | |
9 | |
10 #include "bindings/tests/idls/TestInterfaceImplementation.h" | |
11 #include "core/dom/Node.h" | |
12 #include "platform/heap/Handle.h" | |
13 #include "wtf/text/WTFString.h" | |
14 | |
15 namespace WebCore { | |
16 | |
17 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!
| |
18 public: | |
19 static TestDictionary* create() | |
20 { | |
21 return new TestDictionary; | |
22 } | |
23 TestDictionary(); | |
haraken
2014/07/21 16:11:59
This constructor should be in a private section.
bashi
2014/07/22 02:33:58
Done.
| |
24 | |
25 bool hasBooleanMember() const { return m_hasBooleanMember; } | |
26 bool booleanMember() const { return m_booleanMember; } | |
27 void setBooleanMember(bool); | |
28 bool hasLongMember() const { return m_hasLongMember; } | |
29 int longMember() const { return m_longMember; } | |
30 void setLongMember(int); | |
31 bool hasStringMember() const { return m_hasStringMember; } | |
32 String stringMember() const { return m_stringMember; } | |
33 void setStringMember(String); | |
34 bool hasNodeMember() const { return m_hasNodeMember; } | |
35 PassRefPtrWillBeRawPtr<Node> nodeMember() const { return m_nodeMember; } | |
36 void setNodeMember(PassRefPtrWillBeRawPtr<Node>); | |
37 bool hasTestInterfaceMember() const { return m_hasTestInterfaceMember; } | |
38 PassRefPtr<TestInterfaceImplementation> testInterfaceMember() const { return m_testInterfaceMember; } | |
39 void setTestInterfaceMember(PassRefPtr<TestInterfaceImplementation>); | |
40 | |
41 void trace(Visitor*); | |
42 | |
43 private: | |
44 bool m_booleanMember; | |
45 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
| |
46 int m_longMember; | |
47 bool m_hasLongMember; | |
48 String m_stringMember; | |
49 bool m_hasStringMember; | |
50 RefPtrWillBeMember<Node> m_nodeMember; | |
51 bool m_hasNodeMember; | |
52 RefPtr<TestInterfaceImplementation> m_testInterfaceMember; | |
53 bool m_hasTestInterfaceMember; | |
54 | |
55 friend class V8TestDictionary; | |
56 }; | |
57 | |
58 } // namespace WebCore | |
59 | |
60 #endif // TestDictionary_h | |
OLD | NEW |