Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // NOT FOR LAND | |
| 2 #ifndef SomeDictionaryUser_h | |
| 3 #define SomeDictionaryUser_h | |
| 4 | |
| 5 #include "bindings/core/v8/ScriptWrappable.h" | |
| 6 #include "core/dom/Element.h" | |
| 7 #include "core/dom/SomeDictionary.h" | |
| 8 #include "platform/heap/Handle.h" | |
| 9 #include "wtf/text/WTFString.h" | |
| 10 | |
| 11 namespace WebCore { | |
| 12 | |
| 13 class SomeDictionaryUser : public RefCountedWillBeGarbageCollected<SomeDictionar yUser>, public ScriptWrappable { | |
| 14 public: | |
| 15 static PassRefPtrWillBeRawPtr<SomeDictionaryUser> create() | |
| 16 { | |
| 17 return adoptRefWillBeNoop(new SomeDictionaryUser()); | |
| 18 } | |
| 19 virtual ~SomeDictionaryUser(); | |
| 20 | |
| 21 void set(const SomeDictionary*); | |
| 22 SomeDictionary* get(); | |
| 23 | |
| 24 // void trace(); | |
| 25 | |
| 26 private: | |
| 27 SomeDictionaryUser(); | |
| 28 | |
| 29 unsigned m_a; | |
| 30 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
| |
| 31 unsigned m_b; | |
| 32 String m_stringMember; | |
| 33 RefPtrWillBeMember<Element> m_element; | |
| 34 }; | |
| 35 | |
| 36 } | |
| 37 | |
| 38 #endif // SomeDictionaryUser_h | |
| OLD | NEW |