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

Side by Side Diff: Source/bindings/tests/results/V8TestSpecialOperationsCustom.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 V8TestSpecialOperationsCustom_h 7 #ifndef V8TestSpecialOperationsCustom_h
8 #define V8TestSpecialOperationsCustom_h 8 #define V8TestSpecialOperationsCustom_h
9 9
10 #include "bindings/tests/idls/TestSpecialOperationsCustom.h" 10 #include "bindings/tests/idls/TestSpecialOperationsCustom.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 } 79 }
80 if (DOMDataStore::setReturnValueFromWrapper<V8TestSpecialOperationsCustom>(c allbackInfo.GetReturnValue(), impl)) 80 if (DOMDataStore::setReturnValueFromWrapper<V8TestSpecialOperationsCustom>(c allbackInfo.GetReturnValue(), impl))
81 return; 81 return;
82 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate()); 82 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate());
83 v8SetReturnValue(callbackInfo, wrapper); 83 v8SetReturnValue(callbackInfo, wrapper);
84 } 84 }
85 85
86 template<typename CallbackInfo> 86 template<typename CallbackInfo>
87 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestS pecialOperationsCustom* impl) 87 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestS pecialOperationsCustom* impl)
88 { 88 {
89 ASSERT(DOMWrapperWorld::current(callbackInfo.GetIsolate())->isMainWorld()); 89 ASSERT(DOMWrapperWorld::current(callbackInfo.GetIsolate()).isMainWorld());
90 if (UNLIKELY(!impl)) { 90 if (UNLIKELY(!impl)) {
91 v8SetReturnValueNull(callbackInfo); 91 v8SetReturnValueNull(callbackInfo);
92 return; 92 return;
93 } 93 }
94 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestSpecialOperati onsCustom>(callbackInfo.GetReturnValue(), impl)) 94 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestSpecialOperati onsCustom>(callbackInfo.GetReturnValue(), impl))
95 return; 95 return;
96 v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackIn fo.GetIsolate()); 96 v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackIn fo.GetIsolate());
97 v8SetReturnValue(callbackInfo, wrapper); 97 v8SetReturnValue(callbackInfo, wrapper);
98 } 98 }
99 99
(...skipping 28 matching lines...) Expand all
128 } 128 }
129 129
130 template<class CallbackInfo, class Wrappable> 130 template<class CallbackInfo, class Wrappable>
131 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stSpecialOperationsCustom> impl, Wrappable* wrappable) 131 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stSpecialOperationsCustom> impl, Wrappable* wrappable)
132 { 132 {
133 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 133 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
134 } 134 }
135 135
136 } 136 }
137 #endif // V8TestSpecialOperationsCustom_h 137 #endif // V8TestSpecialOperationsCustom_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698