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

Side by Side Diff: Source/bindings/tests/results/V8TestObjectPython.h

Issue 209713003: Make DOMWrapperWorld::current() return a reference instead of a pointer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 V8TestObjectPython_h 7 #ifndef V8TestObjectPython_h
8 #define V8TestObjectPython_h 8 #define V8TestObjectPython_h
9 9
10 #include "bindings/tests/idls/TestObjectPython.h" 10 #include "bindings/tests/idls/TestObjectPython.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 } 90 }
91 if (DOMDataStore::setReturnValueFromWrapper<V8TestObjectPython>(callbackInfo .GetReturnValue(), impl)) 91 if (DOMDataStore::setReturnValueFromWrapper<V8TestObjectPython>(callbackInfo .GetReturnValue(), impl))
92 return; 92 return;
93 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate()); 93 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate());
94 v8SetReturnValue(callbackInfo, wrapper); 94 v8SetReturnValue(callbackInfo, wrapper);
95 } 95 }
96 96
97 template<typename CallbackInfo> 97 template<typename CallbackInfo>
98 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestO bjectPython* impl) 98 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestO bjectPython* impl)
99 { 99 {
100 ASSERT(DOMWrapperWorld::current(callbackInfo.GetIsolate())->isMainWorld()); 100 ASSERT(DOMWrapperWorld::current(callbackInfo.GetIsolate()).isMainWorld());
101 if (UNLIKELY(!impl)) { 101 if (UNLIKELY(!impl)) {
102 v8SetReturnValueNull(callbackInfo); 102 v8SetReturnValueNull(callbackInfo);
103 return; 103 return;
104 } 104 }
105 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestObjectPython>( callbackInfo.GetReturnValue(), impl)) 105 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestObjectPython>( callbackInfo.GetReturnValue(), impl))
106 return; 106 return;
107 v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackIn fo.GetIsolate()); 107 v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackIn fo.GetIsolate());
108 v8SetReturnValue(callbackInfo, wrapper); 108 v8SetReturnValue(callbackInfo, wrapper);
109 } 109 }
110 110
(...skipping 28 matching lines...) Expand all
139 } 139 }
140 140
141 template<class CallbackInfo, class Wrappable> 141 template<class CallbackInfo, class Wrappable>
142 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stObjectPython> impl, Wrappable* wrappable) 142 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stObjectPython> impl, Wrappable* wrappable)
143 { 143 {
144 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 144 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
145 } 145 }
146 146
147 } 147 }
148 #endif // V8TestObjectPython_h 148 #endif // V8TestObjectPython_h
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestObject.h ('k') | Source/bindings/tests/results/V8TestObjectPython.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698