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

Side by Side Diff: Source/core/dom/SomeDictionaryUser.h

Issue 386963003: [WIP][NotForLand] IDL dictionary support (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698