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 20 matching lines...) Expand all Loading... |
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(info.GetIsolate(), "TestInterfaceConstructor3", 1, info.Length()), 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 TONATIVE_CONVERT((stringArg = info[0]).prepare(), return); |
42 } | 42 } |
43 RefPtr<TestInterfaceConstructor3> impl = TestInterfaceConstructor3::create(s
tringArg); | 43 RefPtr<TestInterfaceConstructor3> impl = TestInterfaceConstructor3::create(s
tringArg); |
44 v8::Local<v8::Object> wrapper = info.Holder(); | 44 v8::Local<v8::Object> wrapper = info.Holder(); |
45 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceConstructor3::
wrapperTypeInfo, wrapper); | 45 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceConstructor3::
wrapperTypeInfo, wrapper); |
46 v8SetReturnValue(info, wrapper); | 46 v8SetReturnValue(info, wrapper); |
47 } | 47 } |
48 | 48 |
49 } // namespace TestInterfaceConstructor3V8Internal | 49 } // namespace TestInterfaceConstructor3V8Internal |
50 | 50 |
51 void V8TestInterfaceConstructor3::constructorCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 51 void V8TestInterfaceConstructor3::constructorCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 { | 108 { |
109 scriptWrappable->toImpl<TestInterfaceConstructor3>()->ref(); | 109 scriptWrappable->toImpl<TestInterfaceConstructor3>()->ref(); |
110 } | 110 } |
111 | 111 |
112 void V8TestInterfaceConstructor3::derefObject(ScriptWrappable* scriptWrappable) | 112 void V8TestInterfaceConstructor3::derefObject(ScriptWrappable* scriptWrappable) |
113 { | 113 { |
114 scriptWrappable->toImpl<TestInterfaceConstructor3>()->deref(); | 114 scriptWrappable->toImpl<TestInterfaceConstructor3>()->deref(); |
115 } | 115 } |
116 | 116 |
117 } // namespace blink | 117 } // namespace blink |
OLD | NEW |