| 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_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
| 6 | 6 |
| 7 #ifndef V8TestInterfaceNamedConstructor_h | 7 #ifndef V8TestInterfaceNamedConstructor_h |
| 8 #define V8TestInterfaceNamedConstructor_h | 8 #define V8TestInterfaceNamedConstructor_h |
| 9 | 9 |
| 10 #include "bindings/tests/idls/TestInterfaceNamedConstructor.h" | 10 #include "bindings/tests/idls/TestInterfaceNamedConstructor.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 } | 78 } |
| 79 if (DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceNamedConstructor>
(callbackInfo.GetReturnValue(), impl)) | 79 if (DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceNamedConstructor>
(callbackInfo.GetReturnValue(), impl)) |
| 80 return; | 80 return; |
| 81 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI
nfo.GetIsolate()); | 81 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI
nfo.GetIsolate()); |
| 82 v8SetReturnValue(callbackInfo, wrapper); | 82 v8SetReturnValue(callbackInfo, wrapper); |
| 83 } | 83 } |
| 84 | 84 |
| 85 template<typename CallbackInfo> | 85 template<typename CallbackInfo> |
| 86 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestI
nterfaceNamedConstructor* impl) | 86 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestI
nterfaceNamedConstructor* impl) |
| 87 { | 87 { |
| 88 ASSERT(DOMWrapperWorld::current(callbackInfo.GetIsolate()).isMainWorld()); | 88 ASSERT(DOMWrapperWorld::current(callbackInfo.GetIsolate())->isMainWorld()); |
| 89 if (UNLIKELY(!impl)) { | 89 if (UNLIKELY(!impl)) { |
| 90 v8SetReturnValueNull(callbackInfo); | 90 v8SetReturnValueNull(callbackInfo); |
| 91 return; | 91 return; |
| 92 } | 92 } |
| 93 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestInterfaceNamed
Constructor>(callbackInfo.GetReturnValue(), impl)) | 93 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestInterfaceNamed
Constructor>(callbackInfo.GetReturnValue(), impl)) |
| 94 return; | 94 return; |
| 95 v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackIn
fo.GetIsolate()); | 95 v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackIn
fo.GetIsolate()); |
| 96 v8SetReturnValue(callbackInfo, wrapper); | 96 v8SetReturnValue(callbackInfo, wrapper); |
| 97 } | 97 } |
| 98 | 98 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 127 } | 127 } |
| 128 | 128 |
| 129 template<class CallbackInfo, class Wrappable> | 129 template<class CallbackInfo, class Wrappable> |
| 130 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stInterfaceNamedConstructor> impl, Wrappable* wrappable) | 130 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stInterfaceNamedConstructor> impl, Wrappable* wrappable) |
| 131 { | 131 { |
| 132 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 132 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
| 133 } | 133 } |
| 134 | 134 |
| 135 } | 135 } |
| 136 #endif // V8TestInterfaceNamedConstructor_h | 136 #endif // V8TestInterfaceNamedConstructor_h |
| OLD | NEW |