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 "V8TestInterface2.h" | 7 #include "V8TestInterface2.h" |
8 | 8 |
9 #include "bindings/core/v8/ExceptionState.h" | 9 #include "bindings/core/v8/ExceptionState.h" |
10 #include "bindings/core/v8/ScriptState.h" | 10 #include "bindings/core/v8/ScriptState.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "wtf/RefPtr.h" | 21 #include "wtf/RefPtr.h" |
22 | 22 |
23 namespace blink { | 23 namespace blink { |
24 | 24 |
25 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv
ial | 25 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv
ial |
26 // and does not depend on another global objects. | 26 // and does not depend on another global objects. |
27 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) | 27 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
28 #pragma clang diagnostic push | 28 #pragma clang diagnostic push |
29 #pragma clang diagnostic ignored "-Wglobal-constructors" | 29 #pragma clang diagnostic ignored "-Wglobal-constructors" |
30 #endif | 30 #endif |
31 const WrapperTypeInfo V8TestInterface2::wrapperTypeInfo = { gin::kEmbedderBlink,
V8TestInterface2::domTemplate, V8TestInterface2::refObject, V8TestInterface2::d
erefObject, V8TestInterface2::trace, V8TestInterface2::visitDOMWrapper, V8TestIn
terface2::preparePrototypeAndInterfaceObject, V8TestInterface2::installCondition
allyEnabledProperties, "TestInterface2", 0, WrapperTypeInfo::WrapperTypeObjectPr
ototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::NotInheritFromEventTar
get, WrapperTypeInfo::Dependent, WrapperTypeInfo::RefCountedObject }; | 31 const WrapperTypeInfo V8TestInterface2::wrapperTypeInfo = { gin::kEmbedderBlink,
V8TestInterface2::domTemplate, V8TestInterface2::refObject, V8TestInterface2::d
erefObject, V8TestInterface2::trace, V8TestInterface2::toActiveScriptWrappable,
V8TestInterface2::visitDOMWrapper, V8TestInterface2::preparePrototypeAndInterfac
eObject, V8TestInterface2::installConditionallyEnabledProperties, "TestInterface
2", 0, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClass
Id, WrapperTypeInfo::NotInheritFromEventTarget, WrapperTypeInfo::Dependent, Wrap
perTypeInfo::RefCountedObject }; |
32 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) | 32 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
33 #pragma clang diagnostic pop | 33 #pragma clang diagnostic pop |
34 #endif | 34 #endif |
35 | 35 |
36 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
e2.h. | 36 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
e2.h. |
37 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in | 37 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in |
38 // bindings/core/v8/ScriptWrappable.h. | 38 // bindings/core/v8/ScriptWrappable.h. |
39 const WrapperTypeInfo& TestInterface2::s_wrapperTypeInfo = V8TestInterface2::wra
pperTypeInfo; | 39 const WrapperTypeInfo& TestInterface2::s_wrapperTypeInfo = V8TestInterface2::wra
pperTypeInfo; |
40 | 40 |
41 namespace TestInterface2V8Internal { | 41 namespace TestInterface2V8Internal { |
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 v8::Local<v8::Object> V8TestInterface2::findInstanceInPrototypeChain(v8::Local<v
8::Value> v8Value, v8::Isolate* isolate) | 640 v8::Local<v8::Object> V8TestInterface2::findInstanceInPrototypeChain(v8::Local<v
8::Value> v8Value, v8::Isolate* isolate) |
641 { | 641 { |
642 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 642 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
643 } | 643 } |
644 | 644 |
645 TestInterface2* V8TestInterface2::toImplWithTypeCheck(v8::Isolate* isolate, v8::
Local<v8::Value> value) | 645 TestInterface2* V8TestInterface2::toImplWithTypeCheck(v8::Isolate* isolate, v8::
Local<v8::Value> value) |
646 { | 646 { |
647 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : 0; | 647 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : 0; |
648 } | 648 } |
649 | 649 |
| 650 ActiveScriptWrappable* V8TestInterface2::toActiveScriptWrappable(v8::Local<v8::O
bject> wrapper) |
| 651 { |
| 652 return toImpl(wrapper); |
| 653 } |
| 654 |
650 void V8TestInterface2::refObject(ScriptWrappable* scriptWrappable) | 655 void V8TestInterface2::refObject(ScriptWrappable* scriptWrappable) |
651 { | 656 { |
652 scriptWrappable->toImpl<TestInterface2>()->ref(); | 657 scriptWrappable->toImpl<TestInterface2>()->ref(); |
653 } | 658 } |
654 | 659 |
655 void V8TestInterface2::derefObject(ScriptWrappable* scriptWrappable) | 660 void V8TestInterface2::derefObject(ScriptWrappable* scriptWrappable) |
656 { | 661 { |
657 scriptWrappable->toImpl<TestInterface2>()->deref(); | 662 scriptWrappable->toImpl<TestInterface2>()->deref(); |
658 } | 663 } |
659 | 664 |
660 } // namespace blink | 665 } // namespace blink |
OLD | NEW |