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 "V8TestInterfaceConstructor2.h" | 8 #include "V8TestInterfaceConstructor2.h" |
9 | 9 |
10 #include "bindings/core/v8/Dictionary.h" | 10 #include "bindings/core/v8/Dictionary.h" |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 | 207 |
208 // Custom toString template | 208 // Custom toString template |
209 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 209 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
210 } | 210 } |
211 | 211 |
212 v8::Local<v8::FunctionTemplate> V8TestInterfaceConstructor2::domTemplate(v8::Iso
late* isolate) | 212 v8::Local<v8::FunctionTemplate> V8TestInterfaceConstructor2::domTemplate(v8::Iso
late* isolate) |
213 { | 213 { |
214 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterfaceConstructor2Template); | 214 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterfaceConstructor2Template); |
215 } | 215 } |
216 | 216 |
217 bool V8TestInterfaceConstructor2::hasInstance(v8::Handle<v8::Value> v8Value, v8:
:Isolate* isolate) | 217 bool V8TestInterfaceConstructor2::hasInstance(v8::Local<v8::Value> v8Value, v8::
Isolate* isolate) |
218 { | 218 { |
219 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); | 219 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
220 } | 220 } |
221 | 221 |
222 v8::Handle<v8::Object> V8TestInterfaceConstructor2::findInstanceInPrototypeChain
(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) | 222 v8::Local<v8::Object> V8TestInterfaceConstructor2::findInstanceInPrototypeChain(
v8::Local<v8::Value> v8Value, v8::Isolate* isolate) |
223 { | 223 { |
224 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 224 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
225 } | 225 } |
226 | 226 |
227 TestInterfaceConstructor2* V8TestInterfaceConstructor2::toImplWithTypeCheck(v8::
Isolate* isolate, v8::Handle<v8::Value> value) | 227 TestInterfaceConstructor2* V8TestInterfaceConstructor2::toImplWithTypeCheck(v8::
Isolate* isolate, v8::Local<v8::Value> value) |
228 { | 228 { |
229 return hasInstance(value, isolate) ? toImpl(v8::Handle<v8::Object>::Cast(val
ue)) : 0; | 229 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : 0; |
230 } | 230 } |
231 | 231 |
232 void V8TestInterfaceConstructor2::refObject(ScriptWrappable* scriptWrappable) | 232 void V8TestInterfaceConstructor2::refObject(ScriptWrappable* scriptWrappable) |
233 { | 233 { |
234 scriptWrappable->toImpl<TestInterfaceConstructor2>()->ref(); | 234 scriptWrappable->toImpl<TestInterfaceConstructor2>()->ref(); |
235 } | 235 } |
236 | 236 |
237 void V8TestInterfaceConstructor2::derefObject(ScriptWrappable* scriptWrappable) | 237 void V8TestInterfaceConstructor2::derefObject(ScriptWrappable* scriptWrappable) |
238 { | 238 { |
239 scriptWrappable->toImpl<TestInterfaceConstructor2>()->deref(); | 239 scriptWrappable->toImpl<TestInterfaceConstructor2>()->deref(); |
240 } | 240 } |
241 | 241 |
242 } // namespace blink | 242 } // namespace blink |
OLD | NEW |