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

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

Issue 1683493003: Remove ContextScope from visitDOMWrapper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « third_party/WebKit/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 "V8TestInterface5.h" 7 #include "V8TestInterface5.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 764 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A rray>& info) 775 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A rray>& info)
776 { 776 {
777 TestInterface5ImplementationV8Internal::namedPropertyEnumerator(info); 777 TestInterface5ImplementationV8Internal::namedPropertyEnumerator(info);
778 } 778 }
779 779
780 } // namespace TestInterface5ImplementationV8Internal 780 } // namespace TestInterface5ImplementationV8Internal
781 781
782 void V8TestInterface5::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* sc riptWrappable, const v8::Persistent<v8::Object>& wrapper) 782 void V8TestInterface5::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* sc riptWrappable, const v8::Persistent<v8::Object>& wrapper)
783 { 783 {
784 TestInterface5Implementation* impl = scriptWrappable->toImpl<TestInterface5I mplementation>(); 784 TestInterface5Implementation* impl = scriptWrappable->toImpl<TestInterface5I mplementation>();
785 v8::Local<v8::Object> context = v8::Local<v8::Object>::New(isolate, wrapper) ;
786 v8::Context::Scope scope(context->CreationContext());
787 TestInterface5Implementation* referencedName = impl->referencedName(); 785 TestInterface5Implementation* referencedName = impl->referencedName();
788 if (referencedName) { 786 if (referencedName) {
789 if (DOMDataStore::containsWrapper(referencedName, isolate)) 787 DOMWrapperWorld::setWrapperReferencesInAllWorlds(wrapper, referencedName , isolate);
790 DOMDataStore::setWrapperReference(wrapper, referencedName, isolate);
791 } 788 }
792 } 789 }
793 790
794 // Suppress warning: global constructors, because AttributeConfiguration is triv ial 791 // Suppress warning: global constructors, because AttributeConfiguration is triv ial
795 // and does not depend on another global objects. 792 // and does not depend on another global objects.
796 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 793 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
797 #pragma clang diagnostic push 794 #pragma clang diagnostic push
798 #pragma clang diagnostic ignored "-Wglobal-constructors" 795 #pragma clang diagnostic ignored "-Wglobal-constructors"
799 #endif 796 #endif
800 const V8DOMConfiguration::AttributeConfiguration V8TestInterface5Attributes[] = { 797 const V8DOMConfiguration::AttributeConfiguration V8TestInterface5Attributes[] = {
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
923 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMet hodMethodConfiguration); 920 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMet hodMethodConfiguration);
924 } 921 }
925 } 922 }
926 923
927 ActiveScriptWrappable* V8TestInterface5::toActiveScriptWrappable(v8::Local<v8::O bject> wrapper) 924 ActiveScriptWrappable* V8TestInterface5::toActiveScriptWrappable(v8::Local<v8::O bject> wrapper)
928 { 925 {
929 return toImpl(wrapper); 926 return toImpl(wrapper);
930 } 927 }
931 928
932 } // namespace blink 929 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/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