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 "V8TestInterfaceConstructor3.h" | 8 #include "V8TestInterfaceConstructor3.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
eConstructor3.h. | 26 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
eConstructor3.h. |
27 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in | 27 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in |
28 // bindings/core/v8/ScriptWrappable.h. | 28 // bindings/core/v8/ScriptWrappable.h. |
29 const WrapperTypeInfo& TestInterfaceConstructor3::s_wrapperTypeInfo = V8TestInte
rfaceConstructor3::wrapperTypeInfo; | 29 const WrapperTypeInfo& TestInterfaceConstructor3::s_wrapperTypeInfo = V8TestInte
rfaceConstructor3::wrapperTypeInfo; |
30 | 30 |
31 namespace TestInterfaceConstructor3V8Internal { | 31 namespace TestInterfaceConstructor3V8Internal { |
32 | 32 |
33 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) | 33 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) |
34 { | 34 { |
35 if (UNLIKELY(info.Length() < 1)) { | 35 if (UNLIKELY(info.Length() < 1)) { |
36 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct
or("TestInterfaceConstructor3", 1, info.Length(), info.GetIsolate()), info.GetIs
olate()); | 36 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct
or(info.GetIsolate(), "TestInterfaceConstructor3", 1, info.Length()), info.GetIs
olate()); |
37 return; | 37 return; |
38 } | 38 } |
39 V8StringResource<> stringArg; | 39 V8StringResource<> stringArg; |
40 { | 40 { |
41 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 41 TOSTRING_VOID_INTERNAL(stringArg, info[0]); |
42 } | 42 } |
43 RefPtr<TestInterfaceConstructor3> impl = TestInterfaceConstructor3::create(s
tringArg); | 43 RefPtr<TestInterfaceConstructor3> impl = TestInterfaceConstructor3::create(s
tringArg); |
44 v8::Handle<v8::Object> wrapper = info.Holder(); | 44 v8::Handle<v8::Object> wrapper = info.Holder(); |
45 impl->associateWithWrapper(&V8TestInterfaceConstructor3::wrapperTypeInfo, wr
apper, info.GetIsolate()); | 45 impl->associateWithWrapper(&V8TestInterfaceConstructor3::wrapperTypeInfo, wr
apper, info.GetIsolate()); |
46 v8SetReturnValue(info, wrapper); | 46 v8SetReturnValue(info, wrapper); |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 scriptWrappableBase->toImpl<TestInterfaceConstructor3>()->deref(); | 115 scriptWrappableBase->toImpl<TestInterfaceConstructor3>()->deref(); |
116 } | 116 } |
117 | 117 |
118 template<> | 118 template<> |
119 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor3* impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) | 119 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor3* impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) |
120 { | 120 { |
121 return toV8(impl, creationContext, isolate); | 121 return toV8(impl, creationContext, isolate); |
122 } | 122 } |
123 | 123 |
124 } // namespace blink | 124 } // namespace blink |
OLD | NEW |