| 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 "V8TestInterfaceCustomConstructor.h" | 8 #include "V8TestInterfaceCustomConstructor.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 bool V8TestInterfaceCustomConstructor::hasInstance(v8::Handle<v8::Value> v8Value
, v8::Isolate* isolate) | 77 bool V8TestInterfaceCustomConstructor::hasInstance(v8::Handle<v8::Value> v8Value
, v8::Isolate* isolate) |
| 78 { | 78 { |
| 79 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); | 79 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
| 80 } | 80 } |
| 81 | 81 |
| 82 v8::Handle<v8::Object> V8TestInterfaceCustomConstructor::findInstanceInPrototype
Chain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) | 82 v8::Handle<v8::Object> V8TestInterfaceCustomConstructor::findInstanceInPrototype
Chain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) |
| 83 { | 83 { |
| 84 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 84 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
| 85 } | 85 } |
| 86 | 86 |
| 87 |
| 87 TestInterfaceCustomConstructor* V8TestInterfaceCustomConstructor::toImplWithType
Check(v8::Isolate* isolate, v8::Handle<v8::Value> value) | 88 TestInterfaceCustomConstructor* V8TestInterfaceCustomConstructor::toImplWithType
Check(v8::Isolate* isolate, v8::Handle<v8::Value> value) |
| 88 { | 89 { |
| 89 return hasInstance(value, isolate) ? blink::toScriptWrappableBase(v8::Handle
<v8::Object>::Cast(value))->toImpl<TestInterfaceCustomConstructor>() : 0; | 90 return hasInstance(value, isolate) ? toImpl(v8::Handle<v8::Object>::Cast(val
ue)) : 0; |
| 90 } | 91 } |
| 91 | 92 |
| 92 | 93 |
| 93 void V8TestInterfaceCustomConstructor::refObject(ScriptWrappableBase* internalPo
inter) | 94 void V8TestInterfaceCustomConstructor::refObject(ScriptWrappableBase* internalPo
inter) |
| 94 { | 95 { |
| 95 internalPointer->toImpl<TestInterfaceCustomConstructor>()->ref(); | 96 internalPointer->toImpl<TestInterfaceCustomConstructor>()->ref(); |
| 96 } | 97 } |
| 97 | 98 |
| 98 void V8TestInterfaceCustomConstructor::derefObject(ScriptWrappableBase* internal
Pointer) | 99 void V8TestInterfaceCustomConstructor::derefObject(ScriptWrappableBase* internal
Pointer) |
| 99 { | 100 { |
| 100 internalPointer->toImpl<TestInterfaceCustomConstructor>()->deref(); | 101 internalPointer->toImpl<TestInterfaceCustomConstructor>()->deref(); |
| 101 } | 102 } |
| 102 | 103 |
| 103 WrapperPersistentNode* V8TestInterfaceCustomConstructor::createPersistentHandle(
ScriptWrappableBase* internalPointer) | 104 WrapperPersistentNode* V8TestInterfaceCustomConstructor::createPersistentHandle(
ScriptWrappableBase* internalPointer) |
| 104 { | 105 { |
| 105 ASSERT_NOT_REACHED(); | 106 ASSERT_NOT_REACHED(); |
| 106 return 0; | 107 return 0; |
| 107 } | 108 } |
| 108 | 109 |
| 109 template<> | 110 template<> |
| 110 v8::Handle<v8::Value> toV8NoInline(TestInterfaceCustomConstructor* impl, v8::Han
dle<v8::Object> creationContext, v8::Isolate* isolate) | 111 v8::Handle<v8::Value> toV8NoInline(TestInterfaceCustomConstructor* impl, v8::Han
dle<v8::Object> creationContext, v8::Isolate* isolate) |
| 111 { | 112 { |
| 112 return toV8(impl, creationContext, isolate); | 113 return toV8(impl, creationContext, isolate); |
| 113 } | 114 } |
| 114 | 115 |
| 115 } // namespace blink | 116 } // namespace blink |
| OLD | NEW |