Chromium Code Reviews| Index: Source/core/dom/SomeDictionaryUser.h |
| diff --git a/Source/core/dom/SomeDictionaryUser.h b/Source/core/dom/SomeDictionaryUser.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..49582e4cd17486c276fb16f3dad84d2aa5d3e6a7 |
| --- /dev/null |
| +++ b/Source/core/dom/SomeDictionaryUser.h |
| @@ -0,0 +1,38 @@ |
| +// NOT FOR LAND |
| +#ifndef SomeDictionaryUser_h |
| +#define SomeDictionaryUser_h |
| + |
| +#include "bindings/core/v8/ScriptWrappable.h" |
| +#include "core/dom/Element.h" |
| +#include "core/dom/SomeDictionary.h" |
| +#include "platform/heap/Handle.h" |
| +#include "wtf/text/WTFString.h" |
| + |
| +namespace WebCore { |
| + |
| +class SomeDictionaryUser : public RefCountedWillBeGarbageCollected<SomeDictionaryUser>, public ScriptWrappable { |
| +public: |
| + static PassRefPtrWillBeRawPtr<SomeDictionaryUser> create() |
| + { |
| + return adoptRefWillBeNoop(new SomeDictionaryUser()); |
| + } |
| + virtual ~SomeDictionaryUser(); |
| + |
| + void set(const SomeDictionary*); |
| + SomeDictionary* get(); |
| + |
| + // void trace(); |
| + |
| +private: |
| + SomeDictionaryUser(); |
| + |
| + unsigned m_a; |
| + bool m_hasA; |
|
haraken
2014/07/21 16:11:59
Can we use Nullable<unsigned> instead of having m_
bashi
2014/07/22 02:33:58
Yes, this class is just an example of an user of I
|
| + unsigned m_b; |
| + String m_stringMember; |
| + RefPtrWillBeMember<Element> m_element; |
| +}; |
| + |
| +} |
| + |
| +#endif // SomeDictionaryUser_h |