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 "V8TestInterfaceConstructor.h" | 8 #include "V8TestInterfaceConstructor.h" |
9 | 9 |
10 #include "bindings/core/v8/Dictionary.h" | 10 #include "bindings/core/v8/Dictionary.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 V8StringResource<> stringArg; | 55 V8StringResource<> stringArg; |
56 TestInterfaceEmpty* testInterfaceEmptyArg; | 56 TestInterfaceEmpty* testInterfaceEmptyArg; |
57 Dictionary dictionaryArg; | 57 Dictionary dictionaryArg; |
58 Vector<String> sequenceStringArg; | 58 Vector<String> sequenceStringArg; |
59 Vector<Dictionary> sequenceDictionaryArg; | 59 Vector<Dictionary> sequenceDictionaryArg; |
60 Dictionary optionalDictionaryArg; | 60 Dictionary optionalDictionaryArg; |
61 TestInterfaceEmpty* optionalTestInterfaceEmptyArg; | 61 TestInterfaceEmpty* optionalTestInterfaceEmptyArg; |
62 { | 62 { |
63 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(doubleArg, toDouble(info[0], excep
tionState), exceptionState); | 63 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(doubleArg, toDouble(info[0], excep
tionState), exceptionState); |
64 TOSTRING_VOID_INTERNAL(stringArg, info[1]); | 64 TOSTRING_VOID_INTERNAL(stringArg, info[1]); |
65 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G
etIsolate(), info[2]); | 65 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImpl(v8::Handle<v8::Obje
ct>::Cast(info[2])); |
66 if (!isUndefinedOrNull(info[3]) && !info[3]->IsObject()) { | 66 if (!isUndefinedOrNull(info[3]) && !info[3]->IsObject()) { |
67 exceptionState.throwTypeError("parameter 4 ('dictionaryArg') is not
an object."); | 67 exceptionState.throwTypeError("parameter 4 ('dictionaryArg') is not
an object."); |
68 exceptionState.throwIfNeeded(); | 68 exceptionState.throwIfNeeded(); |
69 return; | 69 return; |
70 } | 70 } |
71 dictionaryArg = Dictionary(info[3], info.GetIsolate()); | 71 dictionaryArg = Dictionary(info[3], info.GetIsolate()); |
72 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(sequenceStringArg, toImplArray<Str
ing>(info[4], 5, info.GetIsolate(), exceptionState), exceptionState); | 72 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(sequenceStringArg, toImplArray<Str
ing>(info[4], 5, info.GetIsolate(), exceptionState), exceptionState); |
73 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(sequenceDictionaryArg, toImplArray
<Dictionary>(info[5], 6, info.GetIsolate(), exceptionState), exceptionState); | 73 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(sequenceDictionaryArg, toImplArray
<Dictionary>(info[5], 6, info.GetIsolate(), exceptionState), exceptionState); |
74 if (!isUndefinedOrNull(info[6]) && !info[6]->IsObject()) { | 74 if (!isUndefinedOrNull(info[6]) && !info[6]->IsObject()) { |
75 exceptionState.throwTypeError("parameter 7 ('optionalDictionaryArg')
is not an object."); | 75 exceptionState.throwTypeError("parameter 7 ('optionalDictionaryArg')
is not an object."); |
76 exceptionState.throwIfNeeded(); | 76 exceptionState.throwIfNeeded(); |
77 return; | 77 return; |
78 } | 78 } |
79 optionalDictionaryArg = Dictionary(info[6], info.GetIsolate()); | 79 optionalDictionaryArg = Dictionary(info[6], info.GetIsolate()); |
80 optionalTestInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeChec
k(info.GetIsolate(), info[7]); | 80 optionalTestInterfaceEmptyArg = V8TestInterfaceEmpty::toImpl(v8::Handle<
v8::Object>::Cast(info[7])); |
81 } | 81 } |
82 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); | 82 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); |
83 Document& document = *toDocument(currentExecutionContext(info.GetIsolate()))
; | 83 Document& document = *toDocument(currentExecutionContext(info.GetIsolate()))
; |
84 RefPtr<TestInterfaceConstructor> impl = TestInterfaceConstructor::create(exe
cutionContext, document, doubleArg, stringArg, testInterfaceEmptyArg, dictionary
Arg, sequenceStringArg, sequenceDictionaryArg, optionalDictionaryArg, optionalTe
stInterfaceEmptyArg, exceptionState); | 84 RefPtr<TestInterfaceConstructor> impl = TestInterfaceConstructor::create(exe
cutionContext, document, doubleArg, stringArg, testInterfaceEmptyArg, dictionary
Arg, sequenceStringArg, sequenceDictionaryArg, optionalDictionaryArg, optionalTe
stInterfaceEmptyArg, exceptionState); |
85 if (exceptionState.hadException()) { | 85 if (exceptionState.hadException()) { |
86 exceptionState.throwIfNeeded(); | 86 exceptionState.throwIfNeeded(); |
87 return; | 87 return; |
88 } | 88 } |
89 v8::Handle<v8::Object> wrapper = info.Holder(); | 89 v8::Handle<v8::Object> wrapper = info.Holder(); |
90 impl->associateWithWrapper(&V8TestInterfaceConstructor::wrapperTypeInfo, wra
pper, info.GetIsolate()); | 90 impl->associateWithWrapper(&V8TestInterfaceConstructor::wrapperTypeInfo, wra
pper, info.GetIsolate()); |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 return 0; | 350 return 0; |
351 } | 351 } |
352 | 352 |
353 template<> | 353 template<> |
354 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor* impl, v8::Handle<v8
::Object> creationContext, v8::Isolate* isolate) | 354 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor* impl, v8::Handle<v8
::Object> creationContext, v8::Isolate* isolate) |
355 { | 355 { |
356 return toV8(impl, creationContext, isolate); | 356 return toV8(impl, creationContext, isolate); |
357 } | 357 } |
358 | 358 |
359 } // namespace blink | 359 } // namespace blink |
OLD | NEW |