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/core/v8/ExceptionState.h" | 11 #include "bindings/core/v8/ExceptionState.h" |
12 #include "bindings/core/v8/V8TestInterface.h" | 12 #include "bindings/core/v8/V8TestInterface.h" |
13 #include "bindings/core/v8/V8TestInterfaceGarbageCollected.h" | 13 #include "bindings/core/v8/V8TestInterfaceGarbageCollected.h" |
14 #include "bindings/core/v8/V8TestInterfaceWillBeGarbageCollected.h" | 14 #include "bindings/core/v8/V8TestInterfaceWillBeGarbageCollected.h" |
15 | 15 |
16 namespace blink { | 16 namespace blink { |
17 | 17 |
18 TestDictionary* V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Handle<v8::Va
lue> v8Value, ExceptionState& exceptionState) | 18 TestDictionary* V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Handle<v8::Va
lue> v8Value, ExceptionState& exceptionState) |
19 { | 19 { |
| 20 ASSERT(isUndefinedOrNull(v8Value) || v8Value->IsObject()); |
| 21 |
20 TestDictionary* impl = TestDictionary::create(); | 22 TestDictionary* impl = TestDictionary::create(); |
21 // FIXME: Do not use Dictionary and DictionaryHelper | 23 // FIXME: Do not use Dictionary and DictionaryHelper |
22 // https://crbug.com/321462 | 24 // https://crbug.com/321462 |
23 Dictionary dictionary(v8Value, isolate); | 25 Dictionary dictionary(v8Value, isolate); |
24 // FIXME: Remove this v8::TryCatch once the code is switched from | 26 // FIXME: Remove this v8::TryCatch once the code is switched from |
25 // Dictionary/DictionaryHelper to something that uses ExceptionState. | 27 // Dictionary/DictionaryHelper to something that uses ExceptionState. |
26 v8::TryCatch block; | 28 v8::TryCatch block; |
27 bool booleanMember; | 29 bool booleanMember; |
28 if (DictionaryHelper::getWithUndefinedOrNullCheck(dictionary, "booleanMember
", booleanMember)) { | 30 if (DictionaryHelper::getWithUndefinedOrNullCheck(dictionary, "booleanMember
", booleanMember)) { |
29 impl->setBooleanMember(booleanMember); | 31 impl->setBooleanMember(booleanMember); |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 if (impl->hasTestInterfaceOrNullMember()) | 168 if (impl->hasTestInterfaceOrNullMember()) |
167 v8Object->Set(v8String(isolate, "testInterfaceOrNullMember"), toV8(impl-
>testInterfaceOrNullMember(), creationContext, isolate)); | 169 v8Object->Set(v8String(isolate, "testInterfaceOrNullMember"), toV8(impl-
>testInterfaceOrNullMember(), creationContext, isolate)); |
168 if (impl->hasTestInterfaceWillBeGarbageCollectedMember()) | 170 if (impl->hasTestInterfaceWillBeGarbageCollectedMember()) |
169 v8Object->Set(v8String(isolate, "testInterfaceWillBeGarbageCollectedMemb
er"), toV8(impl->testInterfaceWillBeGarbageCollectedMember(), creationContext, i
solate)); | 171 v8Object->Set(v8String(isolate, "testInterfaceWillBeGarbageCollectedMemb
er"), toV8(impl->testInterfaceWillBeGarbageCollectedMember(), creationContext, i
solate)); |
170 if (impl->hasTestInterfaceWillBeGarbageCollectedOrNullMember()) | 172 if (impl->hasTestInterfaceWillBeGarbageCollectedOrNullMember()) |
171 v8Object->Set(v8String(isolate, "testInterfaceWillBeGarbageCollectedOrNu
llMember"), toV8(impl->testInterfaceWillBeGarbageCollectedOrNullMember(), creati
onContext, isolate)); | 173 v8Object->Set(v8String(isolate, "testInterfaceWillBeGarbageCollectedOrNu
llMember"), toV8(impl->testInterfaceWillBeGarbageCollectedOrNullMember(), creati
onContext, isolate)); |
172 return v8Object; | 174 return v8Object; |
173 } | 175 } |
174 | 176 |
175 } // namespace blink | 177 } // namespace blink |
OLD | NEW |