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 "V8TestInterfaceConstructor4.h" | 8 #include "V8TestInterfaceConstructor4.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 namespace TestInterfaceConstructor4V8Internal { | 46 namespace TestInterfaceConstructor4V8Internal { |
47 | 47 |
48 template <typename T> void V8_USE(T) { } | 48 template <typename T> void V8_USE(T) { } |
49 | 49 |
50 static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& info) | 50 static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& info) |
51 { | 51 { |
52 TestInterfaceConstructor4* testInterface4Arg; | 52 TestInterfaceConstructor4* testInterface4Arg; |
53 { | 53 { |
54 v8::TryCatch block; | 54 v8::TryCatch block; |
55 V8RethrowTryCatchScope rethrow(block); | 55 V8RethrowTryCatchScope rethrow(block); |
56 TONATIVE_VOID_INTERNAL(testInterface4Arg, V8TestInterfaceConstructor4::t
oNativeWithTypeCheck(info.GetIsolate(), info[0])); | 56 TONATIVE_VOID_INTERNAL(testInterface4Arg, V8TestInterfaceConstructor4::t
oImplWithTypeCheck(info.GetIsolate(), info[0])); |
57 } | 57 } |
58 RefPtr<TestInterfaceConstructor4> impl = TestInterfaceConstructor4::create(t
estInterface4Arg); | 58 RefPtr<TestInterfaceConstructor4> impl = TestInterfaceConstructor4::create(t
estInterface4Arg); |
59 v8::Handle<v8::Object> wrapper = info.Holder(); | 59 v8::Handle<v8::Object> wrapper = info.Holder(); |
60 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceConstructor4>(impl.r
elease(), &V8TestInterfaceConstructor4::wrapperTypeInfo, wrapper, info.GetIsolat
e()); | 60 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceConstructor4>(impl.r
elease(), &V8TestInterfaceConstructor4::wrapperTypeInfo, wrapper, info.GetIsolat
e()); |
61 v8SetReturnValue(info, wrapper); | 61 v8SetReturnValue(info, wrapper); |
62 } | 62 } |
63 | 63 |
64 static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& info) | 64 static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& info) |
65 { | 65 { |
66 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceConstructor4", info.Holder(), info.GetIsolate()); | 66 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceConstructor4", info.Holder(), info.GetIsolate()); |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 bool V8TestInterfaceConstructor4::hasInstance(v8::Handle<v8::Value> v8Value, v8:
:Isolate* isolate) | 144 bool V8TestInterfaceConstructor4::hasInstance(v8::Handle<v8::Value> v8Value, v8:
:Isolate* isolate) |
145 { | 145 { |
146 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); | 146 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
147 } | 147 } |
148 | 148 |
149 v8::Handle<v8::Object> V8TestInterfaceConstructor4::findInstanceInPrototypeChain
(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) | 149 v8::Handle<v8::Object> V8TestInterfaceConstructor4::findInstanceInPrototypeChain
(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) |
150 { | 150 { |
151 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 151 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
152 } | 152 } |
153 | 153 |
154 TestInterfaceConstructor4* V8TestInterfaceConstructor4::toNativeWithTypeCheck(v8
::Isolate* isolate, v8::Handle<v8::Value> value) | 154 TestInterfaceConstructor4* V8TestInterfaceConstructor4::toImplWithTypeCheck(v8::
Isolate* isolate, v8::Handle<v8::Value> value) |
155 { | 155 { |
156 return hasInstance(value, isolate) ? fromInternalPointer(blink::toInternalPo
inter(v8::Handle<v8::Object>::Cast(value))) : 0; | 156 return hasInstance(value, isolate) ? blink::toScriptWrappableBase(v8::Handle
<v8::Object>::Cast(value))->toImpl<TestInterfaceConstructor4>() : 0; |
157 } | 157 } |
158 | 158 |
159 | 159 |
160 void V8TestInterfaceConstructor4::refObject(ScriptWrappableBase* internalPointer
) | 160 void V8TestInterfaceConstructor4::refObject(ScriptWrappableBase* internalPointer
) |
161 { | 161 { |
162 fromInternalPointer(internalPointer)->ref(); | 162 internalPointer->toImpl<TestInterfaceConstructor4>()->ref(); |
163 } | 163 } |
164 | 164 |
165 void V8TestInterfaceConstructor4::derefObject(ScriptWrappableBase* internalPoint
er) | 165 void V8TestInterfaceConstructor4::derefObject(ScriptWrappableBase* internalPoint
er) |
166 { | 166 { |
167 fromInternalPointer(internalPointer)->deref(); | 167 internalPointer->toImpl<TestInterfaceConstructor4>()->deref(); |
168 } | 168 } |
169 | 169 |
170 WrapperPersistentNode* V8TestInterfaceConstructor4::createPersistentHandle(Scrip
tWrappableBase* internalPointer) | 170 WrapperPersistentNode* V8TestInterfaceConstructor4::createPersistentHandle(Scrip
tWrappableBase* internalPointer) |
171 { | 171 { |
172 ASSERT_NOT_REACHED(); | 172 ASSERT_NOT_REACHED(); |
173 return 0; | 173 return 0; |
174 } | 174 } |
175 | 175 |
176 template<> | 176 template<> |
177 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor4* impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) | 177 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor4* impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) |
178 { | 178 { |
179 return toV8(impl, creationContext, isolate); | 179 return toV8(impl, creationContext, isolate); |
180 } | 180 } |
181 | 181 |
182 } // namespace blink | 182 } // namespace blink |
OLD | NEW |