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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/SomeDictionary.idl ('k') | Source/core/dom/SomeDictionaryUser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..3d4fbec051b2c4163194570fe592ecf117f330c5
--- /dev/null
+++ b/Source/core/dom/SomeDictionaryUser.h
@@ -0,0 +1,41 @@
+// NOT FOR LAND
+#ifndef SomeDictionaryUser_h
+#define SomeDictionaryUser_h
+
+#include "bindings/core/v8/Nullable.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();
+
+ Nullable<unsigned> m_a;
+ unsigned m_b;
+ String m_stringMember;
+ RefPtrWillBeMember<Element> m_element;
+ Nullable<bool> m_nullableBooleanMember;
+ Vector<String> m_stringSequenceMember;
+ WillBeHeapVector<RefPtrWillBeMember<Element> > m_elementArrayMember;
+};
+
+}
+
+#endif // SomeDictionaryUser_h
« 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