OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |