| 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 #if ENABLE(CONDITION) | 8 #if ENABLE(CONDITION) |
| 9 #include "V8TestInterface5.h" | 9 #include "V8TestInterface5.h" |
| 10 | 10 |
| (...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 893 } // namespace TestInterface5ImplementationV8Internal | 893 } // namespace TestInterface5ImplementationV8Internal |
| 894 | 894 |
| 895 void V8TestInterface5::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* sc
riptWrappable, const v8::Persistent<v8::Object>& wrapper) | 895 void V8TestInterface5::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* sc
riptWrappable, const v8::Persistent<v8::Object>& wrapper) |
| 896 { | 896 { |
| 897 TestInterface5Implementation* impl = scriptWrappable->toImpl<TestInterface5I
mplementation>(); | 897 TestInterface5Implementation* impl = scriptWrappable->toImpl<TestInterface5I
mplementation>(); |
| 898 v8::Local<v8::Object> creationContext = v8::Local<v8::Object>::New(isolate,
wrapper); | 898 v8::Local<v8::Object> creationContext = v8::Local<v8::Object>::New(isolate,
wrapper); |
| 899 V8WrapperInstantiationScope scope(creationContext, isolate); | 899 V8WrapperInstantiationScope scope(creationContext, isolate); |
| 900 TestInterface5Implementation* referencedName = impl->referencedName(); | 900 TestInterface5Implementation* referencedName = impl->referencedName(); |
| 901 if (referencedName) { | 901 if (referencedName) { |
| 902 if (!DOMDataStore::containsWrapper(referencedName, isolate)) | 902 if (!DOMDataStore::containsWrapper(referencedName, isolate)) |
| 903 referencedName->wrap(creationContext, isolate); | 903 referencedName->wrap(isolate, creationContext); |
| 904 DOMDataStore::setWrapperReference(wrapper, referencedName, isolate); | 904 DOMDataStore::setWrapperReference(wrapper, referencedName, isolate); |
| 905 } | 905 } |
| 906 setObjectGroup(isolate, scriptWrappable, wrapper); | 906 setObjectGroup(isolate, scriptWrappable, wrapper); |
| 907 } | 907 } |
| 908 | 908 |
| 909 static const V8DOMConfiguration::AttributeConfiguration V8TestInterface5Attribut
es[] = { | 909 static const V8DOMConfiguration::AttributeConfiguration V8TestInterface5Attribut
es[] = { |
| 910 {"testInterfaceConstructorAttribute", v8ConstructorAttributeGetter, TestInte
rface5ImplementationV8Internal::testInterfaceConstructorAttributeAttributeSetter
Callback, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterface5::wrapperTypeInfo)
, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute
>(v8::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::On
Instance}, | 910 {"testInterfaceConstructorAttribute", v8ConstructorAttributeGetter, TestInte
rface5ImplementationV8Internal::testInterfaceConstructorAttributeAttributeSetter
Callback, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterface5::wrapperTypeInfo)
, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute
>(v8::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::On
Instance}, |
| 911 }; | 911 }; |
| 912 | 912 |
| 913 static const V8DOMConfiguration::AccessorConfiguration V8TestInterface5Accessors
[] = { | 913 static const V8DOMConfiguration::AccessorConfiguration V8TestInterface5Accessors
[] = { |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1054 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); | 1054 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); |
| 1055 } | 1055 } |
| 1056 | 1056 |
| 1057 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) | 1057 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) |
| 1058 { | 1058 { |
| 1059 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); | 1059 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); |
| 1060 } | 1060 } |
| 1061 | 1061 |
| 1062 } // namespace blink | 1062 } // namespace blink |
| 1063 #endif // ENABLE(CONDITION) | 1063 #endif // ENABLE(CONDITION) |
| OLD | NEW |