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

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: sequence and array support 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
« no previous file with comments | « Source/core/dom/SomeDictionary.idl ('k') | Source/core/dom/SomeDictionaryUser.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // NOT FOR LAND
2 #ifndef SomeDictionaryUser_h
3 #define SomeDictionaryUser_h
4
5 #include "bindings/core/v8/Nullable.h"
6 #include "bindings/core/v8/ScriptWrappable.h"
7 #include "core/dom/Element.h"
8 #include "core/dom/SomeDictionary.h"
9 #include "platform/heap/Handle.h"
10 #include "wtf/text/WTFString.h"
11
12 namespace WebCore {
13
14 class SomeDictionaryUser : public RefCountedWillBeGarbageCollected<SomeDictionar yUser>, public ScriptWrappable {
15 public:
16 static PassRefPtrWillBeRawPtr<SomeDictionaryUser> create()
17 {
18 return adoptRefWillBeNoop(new SomeDictionaryUser());
19 }
20 virtual ~SomeDictionaryUser();
21
22 void set(const SomeDictionary*);
23 SomeDictionary* get();
24
25 // void trace();
26
27 private:
28 SomeDictionaryUser();
29
30 Nullable<unsigned> m_a;
31 unsigned m_b;
32 String m_stringMember;
33 RefPtrWillBeMember<Element> m_element;
34 Nullable<bool> m_nullableBooleanMember;
35 Vector<String> m_stringSequenceMember;
36 WillBeHeapVector<RefPtrWillBeMember<Element> > m_elementArrayMember;
37 };
38
39 }
40
41 #endif // SomeDictionaryUser_h
OLDNEW
« no previous file with comments | « Source/core/dom/SomeDictionary.idl ('k') | Source/core/dom/SomeDictionaryUser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698