| 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 "V8TestInterface2.h" | 8 #include "V8TestInterface2.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 bool V8TestInterface2::hasInstance(v8::Handle<v8::Value> v8Value, v8::Isolate* i
solate) | 487 bool V8TestInterface2::hasInstance(v8::Handle<v8::Value> v8Value, v8::Isolate* i
solate) |
| 488 { | 488 { |
| 489 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); | 489 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
| 490 } | 490 } |
| 491 | 491 |
| 492 v8::Handle<v8::Object> V8TestInterface2::findInstanceInPrototypeChain(v8::Handle
<v8::Value> v8Value, v8::Isolate* isolate) | 492 v8::Handle<v8::Object> V8TestInterface2::findInstanceInPrototypeChain(v8::Handle
<v8::Value> v8Value, v8::Isolate* isolate) |
| 493 { | 493 { |
| 494 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 494 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
| 495 } | 495 } |
| 496 | 496 |
| 497 |
| 497 TestInterface2* V8TestInterface2::toImplWithTypeCheck(v8::Isolate* isolate, v8::
Handle<v8::Value> value) | 498 TestInterface2* V8TestInterface2::toImplWithTypeCheck(v8::Isolate* isolate, v8::
Handle<v8::Value> value) |
| 498 { | 499 { |
| 499 return hasInstance(value, isolate) ? blink::toScriptWrappableBase(v8::Handle
<v8::Object>::Cast(value))->toImpl<TestInterface2>() : 0; | 500 return hasInstance(value, isolate) ? toImpl(v8::Handle<v8::Object>::Cast(val
ue)) : 0; |
| 500 } | 501 } |
| 501 | 502 |
| 502 | 503 |
| 503 void V8TestInterface2::refObject(ScriptWrappableBase* internalPointer) | 504 void V8TestInterface2::refObject(ScriptWrappableBase* internalPointer) |
| 504 { | 505 { |
| 505 internalPointer->toImpl<TestInterface2>()->ref(); | 506 internalPointer->toImpl<TestInterface2>()->ref(); |
| 506 } | 507 } |
| 507 | 508 |
| 508 void V8TestInterface2::derefObject(ScriptWrappableBase* internalPointer) | 509 void V8TestInterface2::derefObject(ScriptWrappableBase* internalPointer) |
| 509 { | 510 { |
| 510 internalPointer->toImpl<TestInterface2>()->deref(); | 511 internalPointer->toImpl<TestInterface2>()->deref(); |
| 511 } | 512 } |
| 512 | 513 |
| 513 WrapperPersistentNode* V8TestInterface2::createPersistentHandle(ScriptWrappableB
ase* internalPointer) | 514 WrapperPersistentNode* V8TestInterface2::createPersistentHandle(ScriptWrappableB
ase* internalPointer) |
| 514 { | 515 { |
| 515 ASSERT_NOT_REACHED(); | 516 ASSERT_NOT_REACHED(); |
| 516 return 0; | 517 return 0; |
| 517 } | 518 } |
| 518 | 519 |
| 519 template<> | 520 template<> |
| 520 v8::Handle<v8::Value> toV8NoInline(TestInterface2* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) | 521 v8::Handle<v8::Value> toV8NoInline(TestInterface2* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) |
| 521 { | 522 { |
| 522 return toV8(impl, creationContext, isolate); | 523 return toV8(impl, creationContext, isolate); |
| 523 } | 524 } |
| 524 | 525 |
| 525 } // namespace blink | 526 } // namespace blink |
| OLD | NEW |