| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
| 6 | 6 |
| 7 #include "config.h" | 7 #include "config.h" |
| 8 #include "V8TestDictionary.h" | 8 #include "V8TestDictionary.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/Dictionary.h" | 10 #include "bindings/core/v8/Dictionary.h" |
| 11 #include "bindings/tests/v8/V8TestInterface.h" | 11 #include "bindings/tests/v8/V8TestInterface.h" |
| 12 #include "bindings/tests/v8/V8TestInterfaceGarbageCollected.h" | 12 #include "bindings/tests/v8/V8TestInterfaceGarbageCollected.h" |
| 13 #include "bindings/tests/v8/V8TestInterfaceWillBeGarbageCollected.h" | 13 #include "bindings/tests/v8/V8TestInterfaceWillBeGarbageCollected.h" |
| 14 | 14 |
| 15 namespace blink { | 15 namespace blink { |
| 16 | 16 |
| 17 TestDictionary* V8TestDictionary::toNative(v8::Isolate* isolate, v8::Handle<v8::
Value> v8Value) | 17 TestDictionary* V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Handle<v8::Va
lue> v8Value) |
| 18 { | 18 { |
| 19 TestDictionary* impl = TestDictionary::create(); | 19 TestDictionary* impl = TestDictionary::create(); |
| 20 // FIXME: Do not use Dictionary and DictionaryHelper | 20 // FIXME: Do not use Dictionary and DictionaryHelper |
| 21 // https://crbug.com/321462 | 21 // https://crbug.com/321462 |
| 22 Dictionary dictionary(v8Value, isolate); | 22 Dictionary dictionary(v8Value, isolate); |
| 23 bool booleanMember; | 23 bool booleanMember; |
| 24 if (DictionaryHelper::get(dictionary, "booleanMember", booleanMember)) | 24 if (DictionaryHelper::get(dictionary, "booleanMember", booleanMember)) |
| 25 impl->setBooleanMember(booleanMember); | 25 impl->setBooleanMember(booleanMember); |
| 26 double doubleOrNullMember; | 26 double doubleOrNullMember; |
| 27 if (DictionaryHelper::get(dictionary, "doubleOrNullMember", doubleOrNullMemb
er)) | 27 if (DictionaryHelper::get(dictionary, "doubleOrNullMember", doubleOrNullMemb
er)) |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 if (impl->hasTestInterfaceOrNullMember()) | 94 if (impl->hasTestInterfaceOrNullMember()) |
| 95 v8Object->Set(v8String(isolate, "testInterfaceOrNullMember"), toV8(impl-
>testInterfaceOrNullMember(), creationContext, isolate)); | 95 v8Object->Set(v8String(isolate, "testInterfaceOrNullMember"), toV8(impl-
>testInterfaceOrNullMember(), creationContext, isolate)); |
| 96 if (impl->hasTestInterfaceWillBeGarbageCollectedMember()) | 96 if (impl->hasTestInterfaceWillBeGarbageCollectedMember()) |
| 97 v8Object->Set(v8String(isolate, "testInterfaceWillBeGarbageCollectedMemb
er"), toV8(impl->testInterfaceWillBeGarbageCollectedMember(), creationContext, i
solate)); | 97 v8Object->Set(v8String(isolate, "testInterfaceWillBeGarbageCollectedMemb
er"), toV8(impl->testInterfaceWillBeGarbageCollectedMember(), creationContext, i
solate)); |
| 98 if (impl->hasTestInterfaceWillBeGarbageCollectedOrNullMember()) | 98 if (impl->hasTestInterfaceWillBeGarbageCollectedOrNullMember()) |
| 99 v8Object->Set(v8String(isolate, "testInterfaceWillBeGarbageCollectedOrNu
llMember"), toV8(impl->testInterfaceWillBeGarbageCollectedOrNullMember(), creati
onContext, isolate)); | 99 v8Object->Set(v8String(isolate, "testInterfaceWillBeGarbageCollectedOrNu
llMember"), toV8(impl->testInterfaceWillBeGarbageCollectedOrNullMember(), creati
onContext, isolate)); |
| 100 return v8Object; | 100 return v8Object; |
| 101 } | 101 } |
| 102 | 102 |
| 103 } // namespace blink | 103 } // namespace blink |
| OLD | NEW |