| 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 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 TestInterface2* V8TestInterface2::toImplWithTypeCheck(v8::Isolate* isolate, v8::
Handle<v8::Value> value) | 497 TestInterface2* V8TestInterface2::toImplWithTypeCheck(v8::Isolate* isolate, v8::
Handle<v8::Value> value) |
| 498 { | 498 { |
| 499 return hasInstance(value, isolate) ? blink::toScriptWrappableBase(v8::Handle
<v8::Object>::Cast(value))->toImpl<TestInterface2>() : 0; | 499 return hasInstance(value, isolate) ? toImpl(v8::Handle<v8::Object>::Cast(val
ue)) : 0; |
| 500 } | 500 } |
| 501 | 501 |
| 502 | 502 |
| 503 void V8TestInterface2::refObject(ScriptWrappableBase* internalPointer) | 503 void V8TestInterface2::refObject(ScriptWrappableBase* internalPointer) |
| 504 { | 504 { |
| 505 internalPointer->toImpl<TestInterface2>()->ref(); | 505 internalPointer->toImpl<TestInterface2>()->ref(); |
| 506 } | 506 } |
| 507 | 507 |
| 508 void V8TestInterface2::derefObject(ScriptWrappableBase* internalPointer) | 508 void V8TestInterface2::derefObject(ScriptWrappableBase* internalPointer) |
| 509 { | 509 { |
| 510 internalPointer->toImpl<TestInterface2>()->deref(); | 510 internalPointer->toImpl<TestInterface2>()->deref(); |
| 511 } | 511 } |
| 512 | 512 |
| 513 WrapperPersistentNode* V8TestInterface2::createPersistentHandle(ScriptWrappableB
ase* internalPointer) | 513 WrapperPersistentNode* V8TestInterface2::createPersistentHandle(ScriptWrappableB
ase* internalPointer) |
| 514 { | 514 { |
| 515 ASSERT_NOT_REACHED(); | 515 ASSERT_NOT_REACHED(); |
| 516 return 0; | 516 return 0; |
| 517 } | 517 } |
| 518 | 518 |
| 519 template<> | 519 template<> |
| 520 v8::Handle<v8::Value> toV8NoInline(TestInterface2* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) | 520 v8::Handle<v8::Value> toV8NoInline(TestInterface2* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) |
| 521 { | 521 { |
| 522 return toV8(impl, creationContext, isolate); | 522 return toV8(impl, creationContext, isolate); |
| 523 } | 523 } |
| 524 | 524 |
| 525 } // namespace blink | 525 } // namespace blink |
| OLD | NEW |