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