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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 bool V8TestInterfaceConstructor3::hasInstance(v8::Handle<v8::Value> v8Value, v8:
:Isolate* isolate) | 93 bool V8TestInterfaceConstructor3::hasInstance(v8::Handle<v8::Value> v8Value, v8:
:Isolate* isolate) |
94 { | 94 { |
95 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); | 95 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
96 } | 96 } |
97 | 97 |
98 v8::Handle<v8::Object> V8TestInterfaceConstructor3::findInstanceInPrototypeChain
(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) | 98 v8::Handle<v8::Object> V8TestInterfaceConstructor3::findInstanceInPrototypeChain
(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) |
99 { | 99 { |
100 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 100 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
101 } | 101 } |
102 | 102 |
| 103 |
103 TestInterfaceConstructor3* V8TestInterfaceConstructor3::toImplWithTypeCheck(v8::
Isolate* isolate, v8::Handle<v8::Value> value) | 104 TestInterfaceConstructor3* V8TestInterfaceConstructor3::toImplWithTypeCheck(v8::
Isolate* isolate, v8::Handle<v8::Value> value) |
104 { | 105 { |
105 return hasInstance(value, isolate) ? blink::toScriptWrappableBase(v8::Handle
<v8::Object>::Cast(value))->toImpl<TestInterfaceConstructor3>() : 0; | 106 return hasInstance(value, isolate) ? toImpl(v8::Handle<v8::Object>::Cast(val
ue)) : 0; |
106 } | 107 } |
107 | 108 |
108 | 109 |
109 void V8TestInterfaceConstructor3::refObject(ScriptWrappableBase* internalPointer
) | 110 void V8TestInterfaceConstructor3::refObject(ScriptWrappableBase* internalPointer
) |
110 { | 111 { |
111 internalPointer->toImpl<TestInterfaceConstructor3>()->ref(); | 112 internalPointer->toImpl<TestInterfaceConstructor3>()->ref(); |
112 } | 113 } |
113 | 114 |
114 void V8TestInterfaceConstructor3::derefObject(ScriptWrappableBase* internalPoint
er) | 115 void V8TestInterfaceConstructor3::derefObject(ScriptWrappableBase* internalPoint
er) |
115 { | 116 { |
116 internalPointer->toImpl<TestInterfaceConstructor3>()->deref(); | 117 internalPointer->toImpl<TestInterfaceConstructor3>()->deref(); |
117 } | 118 } |
118 | 119 |
119 WrapperPersistentNode* V8TestInterfaceConstructor3::createPersistentHandle(Scrip
tWrappableBase* internalPointer) | 120 WrapperPersistentNode* V8TestInterfaceConstructor3::createPersistentHandle(Scrip
tWrappableBase* internalPointer) |
120 { | 121 { |
121 ASSERT_NOT_REACHED(); | 122 ASSERT_NOT_REACHED(); |
122 return 0; | 123 return 0; |
123 } | 124 } |
124 | 125 |
125 template<> | 126 template<> |
126 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor3* impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) | 127 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor3* impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) |
127 { | 128 { |
128 return toV8(impl, creationContext, isolate); | 129 return toV8(impl, creationContext, isolate); |
129 } | 130 } |
130 | 131 |
131 } // namespace blink | 132 } // namespace blink |
OLD | NEW |