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 "V8TestInterfaceConstructor2.h" | 8 #include "V8TestInterfaceConstructor2.h" |
9 | 9 |
10 #include "bindings/core/v8/Dictionary.h" | 10 #include "bindings/core/v8/Dictionary.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 static void constructor4(const v8::FunctionCallbackInfo<v8::Value>& info) | 78 static void constructor4(const v8::FunctionCallbackInfo<v8::Value>& info) |
79 { | 79 { |
80 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceConstructor2", info.Holder(), info.GetIsolate()); | 80 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceConstructor2", info.Holder(), info.GetIsolate()); |
81 TestInterfaceEmpty* testInterfaceEmptyArg; | 81 TestInterfaceEmpty* testInterfaceEmptyArg; |
82 int longArg; | 82 int longArg; |
83 V8StringResource<> defaultUndefinedOptionalStringArg; | 83 V8StringResource<> defaultUndefinedOptionalStringArg; |
84 V8StringResource<> defaultNullStringOptionalStringArg; | 84 V8StringResource<> defaultNullStringOptionalStringArg; |
85 Dictionary defaultUndefinedOptionalDictionaryArg; | 85 Dictionary defaultUndefinedOptionalDictionaryArg; |
86 V8StringResource<> optionalStringArg; | 86 V8StringResource<> optionalStringArg; |
87 { | 87 { |
88 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G
etIsolate(), info[0]); | 88 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImpl(v8::Handle<v8::Obje
ct>::Cast(info[0])); |
89 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio
nState), exceptionState); | 89 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio
nState), exceptionState); |
90 TOSTRING_VOID_INTERNAL(defaultUndefinedOptionalStringArg, info[2]); | 90 TOSTRING_VOID_INTERNAL(defaultUndefinedOptionalStringArg, info[2]); |
91 if (!info[3]->IsUndefined()) { | 91 if (!info[3]->IsUndefined()) { |
92 TOSTRING_VOID_INTERNAL(defaultNullStringOptionalStringArg, info[3]); | 92 TOSTRING_VOID_INTERNAL(defaultNullStringOptionalStringArg, info[3]); |
93 } else { | 93 } else { |
94 defaultNullStringOptionalStringArg = nullptr; | 94 defaultNullStringOptionalStringArg = nullptr; |
95 } | 95 } |
96 if (!isUndefinedOrNull(info[4]) && !info[4]->IsObject()) { | 96 if (!isUndefinedOrNull(info[4]) && !info[4]->IsObject()) { |
97 exceptionState.throwTypeError("parameter 5 ('defaultUndefinedOptiona
lDictionaryArg') is not an object."); | 97 exceptionState.throwTypeError("parameter 5 ('defaultUndefinedOptiona
lDictionaryArg') is not an object."); |
98 exceptionState.throwIfNeeded(); | 98 exceptionState.throwIfNeeded(); |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 return 0; | 245 return 0; |
246 } | 246 } |
247 | 247 |
248 template<> | 248 template<> |
249 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor2* impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) | 249 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor2* impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) |
250 { | 250 { |
251 return toV8(impl, creationContext, isolate); | 251 return toV8(impl, creationContext, isolate); |
252 } | 252 } |
253 | 253 |
254 } // namespace blink | 254 } // namespace blink |
OLD | NEW |