| 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 "V8TestInterfaceNamedConstructor.h" | 8 #include "V8TestInterfaceNamedConstructor.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); | 176 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
| 177 } | 177 } |
| 178 | 178 |
| 179 v8::Handle<v8::Object> V8TestInterfaceNamedConstructor::findInstanceInPrototypeC
hain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) | 179 v8::Handle<v8::Object> V8TestInterfaceNamedConstructor::findInstanceInPrototypeC
hain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) |
| 180 { | 180 { |
| 181 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 181 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
| 182 } | 182 } |
| 183 | 183 |
| 184 TestInterfaceNamedConstructor* V8TestInterfaceNamedConstructor::toNativeWithType
Check(v8::Isolate* isolate, v8::Handle<v8::Value> value) | 184 TestInterfaceNamedConstructor* V8TestInterfaceNamedConstructor::toNativeWithType
Check(v8::Isolate* isolate, v8::Handle<v8::Value> value) |
| 185 { | 185 { |
| 186 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; | 186 return hasInstance(value, isolate) ? fromInternalPointer(blink::toInternalPo
inter(v8::Handle<v8::Object>::Cast(value))) : 0; |
| 187 } | 187 } |
| 188 | 188 |
| 189 ActiveDOMObject* V8TestInterfaceNamedConstructor::toActiveDOMObject(v8::Handle<v
8::Object> wrapper) | 189 ActiveDOMObject* V8TestInterfaceNamedConstructor::toActiveDOMObject(v8::Handle<v
8::Object> wrapper) |
| 190 { | 190 { |
| 191 return toNative(wrapper); | 191 return toNative(wrapper); |
| 192 } | 192 } |
| 193 | 193 |
| 194 v8::Handle<v8::Object> wrap(TestInterfaceNamedConstructor* impl, v8::Handle<v8::
Object> creationContext, v8::Isolate* isolate) | 194 v8::Handle<v8::Object> wrap(TestInterfaceNamedConstructor* impl, v8::Handle<v8::
Object> creationContext, v8::Isolate* isolate) |
| 195 { | 195 { |
| 196 ASSERT(impl); | 196 ASSERT(impl); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 211 | 211 |
| 212 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &wrapperTypeInfo, toInternalPointer(impl.get()), isolate); | 212 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &wrapperTypeInfo, toInternalPointer(impl.get()), isolate); |
| 213 if (UNLIKELY(wrapper.IsEmpty())) | 213 if (UNLIKELY(wrapper.IsEmpty())) |
| 214 return wrapper; | 214 return wrapper; |
| 215 | 215 |
| 216 installPerContextEnabledProperties(wrapper, impl.get(), isolate); | 216 installPerContextEnabledProperties(wrapper, impl.get(), isolate); |
| 217 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceNamedConstructor>(im
pl, &wrapperTypeInfo, wrapper, isolate, WrapperConfiguration::Dependent); | 217 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceNamedConstructor>(im
pl, &wrapperTypeInfo, wrapper, isolate, WrapperConfiguration::Dependent); |
| 218 return wrapper; | 218 return wrapper; |
| 219 } | 219 } |
| 220 | 220 |
| 221 void V8TestInterfaceNamedConstructor::derefObject(void* object) | 221 void V8TestInterfaceNamedConstructor::derefObject(ScriptWrappableBase* internalP
ointer) |
| 222 { | 222 { |
| 223 fromInternalPointer(object)->deref(); | 223 fromInternalPointer(internalPointer)->deref(); |
| 224 } | 224 } |
| 225 | 225 |
| 226 template<> | 226 template<> |
| 227 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) | 227 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) |
| 228 { | 228 { |
| 229 return toV8(impl, creationContext, isolate); | 229 return toV8(impl, creationContext, isolate); |
| 230 } | 230 } |
| 231 | 231 |
| 232 } // namespace blink | 232 } // namespace blink |
| OLD | NEW |