| 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 "V8TestInterfaceGarbageCollected.h" | 8 #include "V8TestInterfaceGarbageCollected.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); | 167 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
| 168 } | 168 } |
| 169 | 169 |
| 170 v8::Handle<v8::Object> V8TestInterfaceGarbageCollected::findInstanceInPrototypeC
hain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) | 170 v8::Handle<v8::Object> V8TestInterfaceGarbageCollected::findInstanceInPrototypeC
hain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) |
| 171 { | 171 { |
| 172 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 172 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
| 173 } | 173 } |
| 174 | 174 |
| 175 TestInterfaceGarbageCollected* V8TestInterfaceGarbageCollected::toNativeWithType
Check(v8::Isolate* isolate, v8::Handle<v8::Value> value) | 175 TestInterfaceGarbageCollected* V8TestInterfaceGarbageCollected::toNativeWithType
Check(v8::Isolate* isolate, v8::Handle<v8::Value> value) |
| 176 { | 176 { |
| 177 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; | 177 return hasInstance(value, isolate) ? fromInternalPointer(blink::toInternalPo
inter(v8::Handle<v8::Object>::Cast(value))) : 0; |
| 178 } | 178 } |
| 179 | 179 |
| 180 EventTarget* V8TestInterfaceGarbageCollected::toEventTarget(v8::Handle<v8::Objec
t> object) | 180 EventTarget* V8TestInterfaceGarbageCollected::toEventTarget(v8::Handle<v8::Objec
t> object) |
| 181 { | 181 { |
| 182 return toNative(object); | 182 return toNative(object); |
| 183 } | 183 } |
| 184 | 184 |
| 185 v8::Handle<v8::Object> wrap(TestInterfaceGarbageCollected* impl, v8::Handle<v8::
Object> creationContext, v8::Isolate* isolate) | 185 v8::Handle<v8::Object> wrap(TestInterfaceGarbageCollected* impl, v8::Handle<v8::
Object> creationContext, v8::Isolate* isolate) |
| 186 { | 186 { |
| 187 ASSERT(impl); | 187 ASSERT(impl); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 202 | 202 |
| 203 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &wrapperTypeInfo, toInternalPointer(impl.get()), isolate); | 203 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &wrapperTypeInfo, toInternalPointer(impl.get()), isolate); |
| 204 if (UNLIKELY(wrapper.IsEmpty())) | 204 if (UNLIKELY(wrapper.IsEmpty())) |
| 205 return wrapper; | 205 return wrapper; |
| 206 | 206 |
| 207 installPerContextEnabledProperties(wrapper, impl.get(), isolate); | 207 installPerContextEnabledProperties(wrapper, impl.get(), isolate); |
| 208 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceGarbageCollected>(im
pl, &wrapperTypeInfo, wrapper, isolate, WrapperConfiguration::Independent); | 208 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceGarbageCollected>(im
pl, &wrapperTypeInfo, wrapper, isolate, WrapperConfiguration::Independent); |
| 209 return wrapper; | 209 return wrapper; |
| 210 } | 210 } |
| 211 | 211 |
| 212 void V8TestInterfaceGarbageCollected::derefObject(void* object) | 212 void V8TestInterfaceGarbageCollected::derefObject(ScriptWrappableBase* internalP
ointer) |
| 213 { | 213 { |
| 214 } | 214 } |
| 215 | 215 |
| 216 template<> | 216 template<> |
| 217 v8::Handle<v8::Value> toV8NoInline(TestInterfaceGarbageCollected* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) | 217 v8::Handle<v8::Value> toV8NoInline(TestInterfaceGarbageCollected* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) |
| 218 { | 218 { |
| 219 return toV8(impl, creationContext, isolate); | 219 return toV8(impl, creationContext, isolate); |
| 220 } | 220 } |
| 221 | 221 |
| 222 } // namespace blink | 222 } // namespace blink |
| OLD | NEW |