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

Side by Side Diff: Source/bindings/tests/results/V8TestInterface.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 V8TestInterface_h 7 #ifndef V8TestInterface_h
8 #define V8TestInterface_h 8 #define V8TestInterface_h
9 9
10 #if ENABLE(Condition1) || ENABLE(Condition2) 10 #if ENABLE(Condition1) || ENABLE(Condition2)
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 } 80 }
81 if (DOMDataStore::setReturnValueFromWrapper<V8TestInterface>(callbackInfo.Ge tReturnValue(), impl)) 81 if (DOMDataStore::setReturnValueFromWrapper<V8TestInterface>(callbackInfo.Ge tReturnValue(), impl))
82 return; 82 return;
83 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate()); 83 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate());
84 v8SetReturnValue(callbackInfo, wrapper); 84 v8SetReturnValue(callbackInfo, wrapper);
85 } 85 }
86 86
87 template<typename CallbackInfo> 87 template<typename CallbackInfo>
88 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestI nterface* impl) 88 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestI nterface* impl)
89 { 89 {
90 ASSERT(DOMWrapperWorld::current(callbackInfo.GetIsolate())->isMainWorld()); 90 ASSERT(DOMWrapperWorld::current(callbackInfo.GetIsolate()).isMainWorld());
91 if (UNLIKELY(!impl)) { 91 if (UNLIKELY(!impl)) {
92 v8SetReturnValueNull(callbackInfo); 92 v8SetReturnValueNull(callbackInfo);
93 return; 93 return;
94 } 94 }
95 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestInterface>(cal lbackInfo.GetReturnValue(), impl)) 95 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestInterface>(cal lbackInfo.GetReturnValue(), impl))
96 return; 96 return;
97 v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackIn fo.GetIsolate()); 97 v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackIn fo.GetIsolate());
98 v8SetReturnValue(callbackInfo, wrapper); 98 v8SetReturnValue(callbackInfo, wrapper);
99 } 99 }
100 100
(...skipping 29 matching lines...) Expand all
130 130
131 template<class CallbackInfo, class Wrappable> 131 template<class CallbackInfo, class Wrappable>
132 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stInterface> impl, Wrappable* wrappable) 132 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stInterface> impl, Wrappable* wrappable)
133 { 133 {
134 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 134 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
135 } 135 }
136 136
137 } 137 }
138 #endif // ENABLE(Condition1) || ENABLE(Condition2) 138 #endif // ENABLE(Condition1) || ENABLE(Condition2)
139 #endif // V8TestInterface_h 139 #endif // V8TestInterface_h
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestException.h ('k') | Source/bindings/tests/results/V8TestInterfaceCheckSecurity.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698