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

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: 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
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

Powered by Google App Engine
This is Rietveld 408576698