| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 bool V8TestInterfaceConstructor3::hasInstance(v8::Handle<v8::Value> v8Value, v8:
:Isolate* isolate) | 107 bool V8TestInterfaceConstructor3::hasInstance(v8::Handle<v8::Value> v8Value, v8:
:Isolate* isolate) |
| 108 { | 108 { |
| 109 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); | 109 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
| 110 } | 110 } |
| 111 | 111 |
| 112 v8::Handle<v8::Object> V8TestInterfaceConstructor3::findInstanceInPrototypeChain
(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) | 112 v8::Handle<v8::Object> V8TestInterfaceConstructor3::findInstanceInPrototypeChain
(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) |
| 113 { | 113 { |
| 114 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 114 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
| 115 } | 115 } |
| 116 | 116 |
| 117 TestInterfaceConstructor3* V8TestInterfaceConstructor3::toNativeWithTypeCheck(v8
::Isolate* isolate, v8::Handle<v8::Value> value) | 117 TestInterfaceConstructor3* V8TestInterfaceConstructor3::toImplWithTypeCheck(v8::
Isolate* isolate, v8::Handle<v8::Value> value) |
| 118 { | 118 { |
| 119 return hasInstance(value, isolate) ? fromInternalPointer(blink::toInternalPo
inter(v8::Handle<v8::Object>::Cast(value))) : 0; | 119 return hasInstance(value, isolate) ? blink::toScriptWrappableBase(v8::Handle
<v8::Object>::Cast(value))->toImpl<TestInterfaceConstructor3>() : 0; |
| 120 } | 120 } |
| 121 | 121 |
| 122 | 122 |
| 123 void V8TestInterfaceConstructor3::refObject(ScriptWrappableBase* internalPointer
) | 123 void V8TestInterfaceConstructor3::refObject(ScriptWrappableBase* internalPointer
) |
| 124 { | 124 { |
| 125 fromInternalPointer(internalPointer)->ref(); | 125 internalPointer->toImpl<TestInterfaceConstructor3>()->ref(); |
| 126 } | 126 } |
| 127 | 127 |
| 128 void V8TestInterfaceConstructor3::derefObject(ScriptWrappableBase* internalPoint
er) | 128 void V8TestInterfaceConstructor3::derefObject(ScriptWrappableBase* internalPoint
er) |
| 129 { | 129 { |
| 130 fromInternalPointer(internalPointer)->deref(); | 130 internalPointer->toImpl<TestInterfaceConstructor3>()->deref(); |
| 131 } | 131 } |
| 132 | 132 |
| 133 WrapperPersistentNode* V8TestInterfaceConstructor3::createPersistentHandle(Scrip
tWrappableBase* internalPointer) | 133 WrapperPersistentNode* V8TestInterfaceConstructor3::createPersistentHandle(Scrip
tWrappableBase* internalPointer) |
| 134 { | 134 { |
| 135 ASSERT_NOT_REACHED(); | 135 ASSERT_NOT_REACHED(); |
| 136 return 0; | 136 return 0; |
| 137 } | 137 } |
| 138 | 138 |
| 139 template<> | 139 template<> |
| 140 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor3* impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) | 140 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor3* impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) |
| 141 { | 141 { |
| 142 return toV8(impl, creationContext, isolate); | 142 return toV8(impl, creationContext, isolate); |
| 143 } | 143 } |
| 144 | 144 |
| 145 } // namespace blink | 145 } // namespace blink |
| OLD | NEW |