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

Side by Side Diff: trunk/Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.h

Issue 218813002: Revert 170357 "Revert of Make DOMWrapperWorld::current() return ..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 years, 8 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
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 #ifndef V8TestInterfaceWillBeGarbageCollected_h 7 #ifndef V8TestInterfaceWillBeGarbageCollected_h
8 #define V8TestInterfaceWillBeGarbageCollected_h 8 #define V8TestInterfaceWillBeGarbageCollected_h
9 9
10 #include "V8EventTarget.h" 10 #include "V8EventTarget.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 } 76 }
77 if (DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceWillBeGarbageColl ected>(callbackInfo.GetReturnValue(), impl)) 77 if (DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceWillBeGarbageColl ected>(callbackInfo.GetReturnValue(), impl))
78 return; 78 return;
79 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate()); 79 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate());
80 v8SetReturnValue(callbackInfo, wrapper); 80 v8SetReturnValue(callbackInfo, wrapper);
81 } 81 }
82 82
83 template<typename CallbackInfo> 83 template<typename CallbackInfo>
84 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestI nterfaceWillBeGarbageCollected* impl) 84 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestI nterfaceWillBeGarbageCollected* impl)
85 { 85 {
86 ASSERT(DOMWrapperWorld::current(callbackInfo.GetIsolate())->isMainWorld()); 86 ASSERT(DOMWrapperWorld::current(callbackInfo.GetIsolate()).isMainWorld());
87 if (UNLIKELY(!impl)) { 87 if (UNLIKELY(!impl)) {
88 v8SetReturnValueNull(callbackInfo); 88 v8SetReturnValueNull(callbackInfo);
89 return; 89 return;
90 } 90 }
91 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestInterfaceWillB eGarbageCollected>(callbackInfo.GetReturnValue(), impl)) 91 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestInterfaceWillB eGarbageCollected>(callbackInfo.GetReturnValue(), impl))
92 return; 92 return;
93 v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackIn fo.GetIsolate()); 93 v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackIn fo.GetIsolate());
94 v8SetReturnValue(callbackInfo, wrapper); 94 v8SetReturnValue(callbackInfo, wrapper);
95 } 95 }
96 96
(...skipping 28 matching lines...) Expand all
125 } 125 }
126 126
127 template<class CallbackInfo, class Wrappable> 127 template<class CallbackInfo, class Wrappable>
128 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtrWil lBeRawPtr<TestInterfaceWillBeGarbageCollected> impl, Wrappable* wrappable) 128 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtrWil lBeRawPtr<TestInterfaceWillBeGarbageCollected> impl, Wrappable* wrappable)
129 { 129 {
130 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 130 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
131 } 131 }
132 132
133 } 133 }
134 #endif // V8TestInterfaceWillBeGarbageCollected_h 134 #endif // V8TestInterfaceWillBeGarbageCollected_h
OLDNEW
« no previous file with comments | « trunk/Source/bindings/tests/results/V8TestInterfacePython3.cpp ('k') | trunk/Source/bindings/tests/results/V8TestNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698