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

Unified Diff: Source/core/testing/DictionaryTest.h

Issue 429853002: IDL: Add build target for IDL dictionary impl generation in core (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 4 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/testing/DictionaryTest.h
diff --git a/Source/core/testing/DictionaryTest.h b/Source/core/testing/DictionaryTest.h
new file mode 100644
index 0000000000000000000000000000000000000000..4175124ce52da0395f8192b07ce978e36bce021d
--- /dev/null
+++ b/Source/core/testing/DictionaryTest.h
@@ -0,0 +1,41 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef DictionaryTest_h
+#define DictionaryTest_h
+
+#include "bindings/core/v8/Nullable.h"
+#include "bindings/core/v8/ScriptWrappable.h"
+#include "platform/heap/Handle.h"
+#include "wtf/text/WTFString.h"
+
+namespace blink {
+
+class TestingDictionary;
+
+class DictionaryTest : public GarbageCollectedFinalized<DictionaryTest>, public ScriptWrappable {
+public:
+ static DictionaryTest* create()
+ {
+ return new DictionaryTest();
+ }
+ virtual ~DictionaryTest();
+
+ void set(const TestingDictionary*);
+ TestingDictionary* get();
+
+ void trace(Visitor*);
+
+private:
+ DictionaryTest();
+
+ Nullable<unsigned> m_longMember;
+ String m_stringMember;
+ Nullable<bool> m_booleanOrNullMember;
haraken 2014/08/26 04:00:40 I'm a bit getting confused with what DictionaryTes
bashi 2014/08/27 05:06:32 No. I used Nullable<T> here just for convenience.
+ Vector<String> m_stringSequenceMember;
+};
+
+} // namespace blink
+
+#endif // DictionaryTest_h

Powered by Google App Engine
This is Rietveld 408576698