Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(472)

Side by Side Diff: Source/bindings/tests/results/modules/V8TestInterface5.cpp

Issue 931543002: Disallow wrapper creation from visitDOMWrapper (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add comment Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/bindings/tests/results/core/V8TestInterface.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 842 matching lines...) Expand 10 before | Expand all | Expand 10 after
853 853
854 } // namespace TestInterface5ImplementationV8Internal 854 } // namespace TestInterface5ImplementationV8Internal
855 855
856 void V8TestInterface5::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* sc riptWrappable, const v8::Persistent<v8::Object>& wrapper) 856 void V8TestInterface5::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* sc riptWrappable, const v8::Persistent<v8::Object>& wrapper)
857 { 857 {
858 TestInterface5Implementation* impl = scriptWrappable->toImpl<TestInterface5I mplementation>(); 858 TestInterface5Implementation* impl = scriptWrappable->toImpl<TestInterface5I mplementation>();
859 v8::Local<v8::Object> creationContext = v8::Local<v8::Object>::New(isolate, wrapper); 859 v8::Local<v8::Object> creationContext = v8::Local<v8::Object>::New(isolate, wrapper);
860 V8WrapperInstantiationScope scope(creationContext, isolate); 860 V8WrapperInstantiationScope scope(creationContext, isolate);
861 TestInterface5Implementation* referencedName = impl->referencedName(); 861 TestInterface5Implementation* referencedName = impl->referencedName();
862 if (referencedName) { 862 if (referencedName) {
863 if (!DOMDataStore::containsWrapper(referencedName, isolate)) 863 RELEASE_ASSERT(DOMDataStore::containsWrapper(referencedName, isolate));
864 referencedName->wrap(creationContext, isolate);
865 DOMDataStore::setWrapperReference(wrapper, referencedName, isolate); 864 DOMDataStore::setWrapperReference(wrapper, referencedName, isolate);
866 } 865 }
867 setObjectGroup(isolate, scriptWrappable, wrapper); 866 setObjectGroup(isolate, scriptWrappable, wrapper);
868 } 867 }
869 868
870 static const V8DOMConfiguration::AttributeConfiguration V8TestInterface5Attribut es[] = { 869 static const V8DOMConfiguration::AttributeConfiguration V8TestInterface5Attribut es[] = {
871 {"testInterfaceAttribute", TestInterface5ImplementationV8Internal::testInter faceAttributeAttributeGetterCallback, TestInterface5ImplementationV8Internal::te stInterfaceAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCont rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurat ion::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, 870 {"testInterfaceAttribute", TestInterface5ImplementationV8Internal::testInter faceAttributeAttributeGetterCallback, TestInterface5ImplementationV8Internal::te stInterfaceAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCont rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurat ion::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
872 {"testInterfaceConstructorAttribute", TestInterface5ImplementationV8Internal ::TestInterface5ImplementationConstructorGetter, TestInterface5ImplementationV8I nternal::TestInterface5ImplementationForceSetAttributeOnThisCallback, 0, 0, cons t_cast<WrapperTypeInfo*>(&V8TestInterface5::wrapperTypeInfo), static_cast<v8::Ac cessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8D OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, 871 {"testInterfaceConstructorAttribute", TestInterface5ImplementationV8Internal ::TestInterface5ImplementationConstructorGetter, TestInterface5ImplementationV8I nternal::TestInterface5ImplementationForceSetAttributeOnThisCallback, 0, 0, cons t_cast<WrapperTypeInfo*>(&V8TestInterface5::wrapperTypeInfo), static_cast<v8::Ac cessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8D OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
873 {"doubleAttribute", TestInterface5ImplementationV8Internal::doubleAttributeA ttributeGetterCallback, TestInterface5ImplementationV8Internal::doubleAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri pts, V8DOMConfiguration::OnInstance}, 872 {"doubleAttribute", TestInterface5ImplementationV8Internal::doubleAttributeA ttributeGetterCallback, TestInterface5ImplementationV8Internal::doubleAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri pts, V8DOMConfiguration::OnInstance},
874 {"floatAttribute", TestInterface5ImplementationV8Internal::floatAttributeAtt ributeGetterCallback, TestInterface5ImplementationV8Internal::floatAttributeAttr ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts , V8DOMConfiguration::OnInstance}, 873 {"floatAttribute", TestInterface5ImplementationV8Internal::floatAttributeAtt ributeGetterCallback, TestInterface5ImplementationV8Internal::floatAttributeAttr ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts , V8DOMConfiguration::OnInstance},
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
1013 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); 1012 scriptWrappable->toImpl<TestInterface5Implementation>()->ref();
1014 } 1013 }
1015 1014
1016 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) 1015 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable)
1017 { 1016 {
1018 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); 1017 scriptWrappable->toImpl<TestInterface5Implementation>()->deref();
1019 } 1018 }
1020 1019
1021 } // namespace blink 1020 } // namespace blink
1022 #endif // ENABLE(CONDITION) 1021 #endif // ENABLE(CONDITION)
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8TestInterface.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698