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

Side by Side Diff: trunk/Source/bindings/templates/interface.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}}. DO NOT MODIFY! 5 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY!
6 6
7 #ifndef {{v8_class}}_h 7 #ifndef {{v8_class}}_h
8 #define {{v8_class}}_h 8 #define {{v8_class}}_h
9 9
10 {% filter conditional(conditional_string) %} 10 {% filter conditional(conditional_string) %}
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 } 222 }
223 if (DOMDataStore::setReturnValueFromWrapper<{{v8_class}}>(callbackInfo.GetRe turnValue(), impl)) 223 if (DOMDataStore::setReturnValueFromWrapper<{{v8_class}}>(callbackInfo.GetRe turnValue(), impl))
224 return; 224 return;
225 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate()); 225 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate());
226 v8SetReturnValue(callbackInfo, wrapper); 226 v8SetReturnValue(callbackInfo, wrapper);
227 } 227 }
228 228
229 template<typename CallbackInfo> 229 template<typename CallbackInfo>
230 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, {{cpp _class}}* impl) 230 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, {{cpp _class}}* impl)
231 { 231 {
232 ASSERT(DOMWrapperWorld::current(callbackInfo.GetIsolate())->isMainWorld()); 232 ASSERT(DOMWrapperWorld::current(callbackInfo.GetIsolate()).isMainWorld());
233 if (UNLIKELY(!impl)) { 233 if (UNLIKELY(!impl)) {
234 v8SetReturnValueNull(callbackInfo); 234 v8SetReturnValueNull(callbackInfo);
235 return; 235 return;
236 } 236 }
237 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<{{v8_class}}>(callba ckInfo.GetReturnValue(), impl)) 237 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<{{v8_class}}>(callba ckInfo.GetReturnValue(), impl))
238 return; 238 return;
239 v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackIn fo.GetIsolate()); 239 v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackIn fo.GetIsolate());
240 v8SetReturnValue(callbackInfo, wrapper); 240 v8SetReturnValue(callbackInfo, wrapper);
241 } 241 }
242 242
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 277 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
278 } 278 }
279 279
280 {% if has_event_constructor %} 280 {% if has_event_constructor %}
281 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta te&, const v8::FunctionCallbackInfo<v8::Value>& info, const String& = ""); 281 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta te&, const v8::FunctionCallbackInfo<v8::Value>& info, const String& = "");
282 282
283 {% endif %} 283 {% endif %}
284 } 284 }
285 {% endfilter %} 285 {% endfilter %}
286 #endif // {{v8_class}}_h 286 #endif // {{v8_class}}_h
OLDNEW
« no previous file with comments | « trunk/Source/bindings/templates/callback_interface.cpp ('k') | trunk/Source/bindings/templates/interface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698