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 "V8TestInterfaceNamedConstructor.h" | 8 #include "V8TestInterfaceNamedConstructor.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 | 151 |
152 // Custom toString template | 152 // Custom toString template |
153 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 153 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
154 } | 154 } |
155 | 155 |
156 v8::Local<v8::FunctionTemplate> V8TestInterfaceNamedConstructor::domTemplate(v8:
:Isolate* isolate) | 156 v8::Local<v8::FunctionTemplate> V8TestInterfaceNamedConstructor::domTemplate(v8:
:Isolate* isolate) |
157 { | 157 { |
158 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterfaceNamedConstructorTemplate); | 158 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterfaceNamedConstructorTemplate); |
159 } | 159 } |
160 | 160 |
161 bool V8TestInterfaceNamedConstructor::hasInstance(v8::Handle<v8::Value> v8Value,
v8::Isolate* isolate) | 161 bool V8TestInterfaceNamedConstructor::hasInstance(v8::Local<v8::Value> v8Value,
v8::Isolate* isolate) |
162 { | 162 { |
163 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); | 163 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
164 } | 164 } |
165 | 165 |
166 v8::Handle<v8::Object> V8TestInterfaceNamedConstructor::findInstanceInPrototypeC
hain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) | 166 v8::Local<v8::Object> V8TestInterfaceNamedConstructor::findInstanceInPrototypeCh
ain(v8::Local<v8::Value> v8Value, v8::Isolate* isolate) |
167 { | 167 { |
168 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 168 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
169 } | 169 } |
170 | 170 |
171 TestInterfaceNamedConstructor* V8TestInterfaceNamedConstructor::toImplWithTypeCh
eck(v8::Isolate* isolate, v8::Handle<v8::Value> value) | 171 TestInterfaceNamedConstructor* V8TestInterfaceNamedConstructor::toImplWithTypeCh
eck(v8::Isolate* isolate, v8::Local<v8::Value> value) |
172 { | 172 { |
173 return hasInstance(value, isolate) ? toImpl(v8::Handle<v8::Object>::Cast(val
ue)) : 0; | 173 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : 0; |
174 } | 174 } |
175 | 175 |
176 ActiveDOMObject* V8TestInterfaceNamedConstructor::toActiveDOMObject(v8::Handle<v
8::Object> wrapper) | 176 ActiveDOMObject* V8TestInterfaceNamedConstructor::toActiveDOMObject(v8::Local<v8
::Object> wrapper) |
177 { | 177 { |
178 return toImpl(wrapper); | 178 return toImpl(wrapper); |
179 } | 179 } |
180 | 180 |
181 void V8TestInterfaceNamedConstructor::refObject(ScriptWrappable* scriptWrappable
) | 181 void V8TestInterfaceNamedConstructor::refObject(ScriptWrappable* scriptWrappable
) |
182 { | 182 { |
183 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->ref(); | 183 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->ref(); |
184 } | 184 } |
185 | 185 |
186 void V8TestInterfaceNamedConstructor::derefObject(ScriptWrappable* scriptWrappab
le) | 186 void V8TestInterfaceNamedConstructor::derefObject(ScriptWrappable* scriptWrappab
le) |
187 { | 187 { |
188 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->deref(); | 188 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->deref(); |
189 } | 189 } |
190 | 190 |
191 } // namespace blink | 191 } // namespace blink |
OLD | NEW |