| 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 "V8TestInterfaceEventTarget.h" | 8 #include "V8TestInterfaceEventTarget.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 bool V8TestInterfaceEventTarget::hasInstance(v8::Handle<v8::Value> v8Value, v8::
Isolate* isolate) | 111 bool V8TestInterfaceEventTarget::hasInstance(v8::Handle<v8::Value> v8Value, v8::
Isolate* isolate) |
| 112 { | 112 { |
| 113 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); | 113 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
| 114 } | 114 } |
| 115 | 115 |
| 116 v8::Handle<v8::Object> V8TestInterfaceEventTarget::findInstanceInPrototypeChain(
v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) | 116 v8::Handle<v8::Object> V8TestInterfaceEventTarget::findInstanceInPrototypeChain(
v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) |
| 117 { | 117 { |
| 118 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 118 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
| 119 } | 119 } |
| 120 | 120 |
| 121 TestInterfaceEventTarget* V8TestInterfaceEventTarget::toNativeWithTypeCheck(v8::
Isolate* isolate, v8::Handle<v8::Value> value) | 121 TestInterfaceEventTarget* V8TestInterfaceEventTarget::toImplWithTypeCheck(v8::Is
olate* isolate, v8::Handle<v8::Value> value) |
| 122 { | 122 { |
| 123 return hasInstance(value, isolate) ? fromInternalPointer(blink::toInternalPo
inter(v8::Handle<v8::Object>::Cast(value))) : 0; | 123 return hasInstance(value, isolate) ? blink::toScriptWrappableBase(v8::Handle
<v8::Object>::Cast(value))->toImpl<TestInterfaceEventTarget>() : 0; |
| 124 } | 124 } |
| 125 | 125 |
| 126 EventTarget* V8TestInterfaceEventTarget::toEventTarget(v8::Handle<v8::Object> ob
ject) | 126 EventTarget* V8TestInterfaceEventTarget::toEventTarget(v8::Handle<v8::Object> ob
ject) |
| 127 { | 127 { |
| 128 return toNative(object); | 128 return toImpl(object); |
| 129 } | 129 } |
| 130 | 130 |
| 131 | 131 |
| 132 void V8TestInterfaceEventTarget::refObject(ScriptWrappableBase* internalPointer) | 132 void V8TestInterfaceEventTarget::refObject(ScriptWrappableBase* internalPointer) |
| 133 { | 133 { |
| 134 #if !ENABLE(OILPAN) | 134 #if !ENABLE(OILPAN) |
| 135 fromInternalPointer(internalPointer)->ref(); | 135 internalPointer->toImpl<TestInterfaceEventTarget>()->ref(); |
| 136 #endif | 136 #endif |
| 137 } | 137 } |
| 138 | 138 |
| 139 void V8TestInterfaceEventTarget::derefObject(ScriptWrappableBase* internalPointe
r) | 139 void V8TestInterfaceEventTarget::derefObject(ScriptWrappableBase* internalPointe
r) |
| 140 { | 140 { |
| 141 #if !ENABLE(OILPAN) | 141 #if !ENABLE(OILPAN) |
| 142 fromInternalPointer(internalPointer)->deref(); | 142 internalPointer->toImpl<TestInterfaceEventTarget>()->deref(); |
| 143 #endif | 143 #endif |
| 144 } | 144 } |
| 145 | 145 |
| 146 WrapperPersistentNode* V8TestInterfaceEventTarget::createPersistentHandle(Script
WrappableBase* internalPointer) | 146 WrapperPersistentNode* V8TestInterfaceEventTarget::createPersistentHandle(Script
WrappableBase* internalPointer) |
| 147 { | 147 { |
| 148 #if ENABLE(OILPAN) | 148 #if ENABLE(OILPAN) |
| 149 return new WrapperPersistent<TestInterfaceEventTarget>(fromInternalPointer(i
nternalPointer)); | 149 return new WrapperPersistent<TestInterfaceEventTarget>(internalPointer->toIm
pl<TestInterfaceEventTarget>()); |
| 150 #else | 150 #else |
| 151 ASSERT_NOT_REACHED(); | 151 ASSERT_NOT_REACHED(); |
| 152 return 0; | 152 return 0; |
| 153 #endif | 153 #endif |
| 154 } | 154 } |
| 155 | 155 |
| 156 template<> | 156 template<> |
| 157 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventTarget* impl, v8::Handle<v8
::Object> creationContext, v8::Isolate* isolate) | 157 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventTarget* impl, v8::Handle<v8
::Object> creationContext, v8::Isolate* isolate) |
| 158 { | 158 { |
| 159 return toV8(impl, creationContext, isolate); | 159 return toV8(impl, creationContext, isolate); |
| 160 } | 160 } |
| 161 | 161 |
| 162 } // namespace blink | 162 } // namespace blink |
| OLD | NEW |