| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 TestInterfaceCustomConstructor* V8TestInterfaceCustomConstructor::toImplWithType
Check(v8::Isolate* isolate, v8::Handle<v8::Value> value) | 87 TestInterfaceCustomConstructor* V8TestInterfaceCustomConstructor::toImplWithType
Check(v8::Isolate* isolate, v8::Handle<v8::Value> value) |
| 88 { | 88 { |
| 89 return hasInstance(value, isolate) ? blink::toScriptWrappableBase(v8::Handle
<v8::Object>::Cast(value))->toImpl<TestInterfaceCustomConstructor>() : 0; | 89 return hasInstance(value, isolate) ? blink::toScriptWrappableBase(v8::Handle
<v8::Object>::Cast(value))->toImpl<TestInterfaceCustomConstructor>() : 0; |
| 90 } | 90 } |
| 91 | 91 |
| 92 | |
| 93 void V8TestInterfaceCustomConstructor::refObject(ScriptWrappableBase* internalPo
inter) | 92 void V8TestInterfaceCustomConstructor::refObject(ScriptWrappableBase* internalPo
inter) |
| 94 { | 93 { |
| 95 internalPointer->toImpl<TestInterfaceCustomConstructor>()->ref(); | 94 internalPointer->toImpl<TestInterfaceCustomConstructor>()->ref(); |
| 96 } | 95 } |
| 97 | 96 |
| 98 void V8TestInterfaceCustomConstructor::derefObject(ScriptWrappableBase* internal
Pointer) | 97 void V8TestInterfaceCustomConstructor::derefObject(ScriptWrappableBase* internal
Pointer) |
| 99 { | 98 { |
| 100 internalPointer->toImpl<TestInterfaceCustomConstructor>()->deref(); | 99 internalPointer->toImpl<TestInterfaceCustomConstructor>()->deref(); |
| 101 } | 100 } |
| 102 | 101 |
| 103 template<> | 102 template<> |
| 104 v8::Handle<v8::Value> toV8NoInline(TestInterfaceCustomConstructor* impl, v8::Han
dle<v8::Object> creationContext, v8::Isolate* isolate) | 103 v8::Handle<v8::Value> toV8NoInline(TestInterfaceCustomConstructor* impl, v8::Han
dle<v8::Object> creationContext, v8::Isolate* isolate) |
| 105 { | 104 { |
| 106 return toV8(impl, creationContext, isolate); | 105 return toV8(impl, creationContext, isolate); |
| 107 } | 106 } |
| 108 | 107 |
| 109 } // namespace blink | 108 } // namespace blink |
| OLD | NEW |