Index: Source/bindings/tests/results/V8TestDictionary.cpp |
diff --git a/Source/bindings/tests/results/V8TestDictionary.cpp b/Source/bindings/tests/results/V8TestDictionary.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ff6d828ce4961ea890200751cb48818931fb00de |
--- /dev/null |
+++ b/Source/bindings/tests/results/V8TestDictionary.cpp |
@@ -0,0 +1,43 @@ |
+// 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. |
+ |
+// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
+ |
+#include "config.h" |
+#include "V8TestDictionary.h" |
+ |
+#include "bindings/core/v8/Dictionary.h" |
+ |
+namespace blink { |
+ |
+TestDictionary* V8TestDictionary::toNative(v8::Isolate* isolate, v8::Handle<v8::Value> v8Value) |
+{ |
+ TestDictionary* impl = TestDictionary::create(); |
+ // FIXME: Do not use Dictionary and DictionaryHelper |
+ // https://crbug.com/321462 |
+ Dictionary dictionary(v8Value, isolate); |
+ bool booleanMember; |
+ if (DictionaryHelper::get(dictionary, "booleanMember", booleanMember)) |
+ impl->setBooleanMember(booleanMember); |
+ int longMember; |
+ if (DictionaryHelper::get(dictionary, "longMember", longMember)) |
+ impl->setLongMember(longMember); |
+ else |
+ impl->setLongMember(1); |
+ return impl; |
+} |
+ |
+v8::Handle<v8::Value> toV8(TestDictionary* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
+{ |
+ v8::Handle<v8::Object> v8Object = v8::Object::New(isolate); |
+ if (impl->hasBooleanMember()) |
+ v8Object->Set(v8String(isolate, "booleanMember"), v8Boolean(impl->booleanMember(), isolate)); |
+ if (impl->hasLongMember()) |
+ v8Object->Set(v8String(isolate, "longMember"), v8::Integer::New(isolate, impl->longMember())); |
+ else |
+ v8Object->Set(v8String(isolate, "longMember"), v8::Integer::New(isolate, 1)); |
+ return v8Object; |
+} |
+ |
+} // namespace blink |