| 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 V8TestInterfaceEventConstructor_h | 7 #ifndef V8TestInterfaceEventConstructor_h |
| 8 #define V8TestInterfaceEventConstructor_h | 8 #define V8TestInterfaceEventConstructor_h |
| 9 | 9 |
| 10 #include "V8Event.h" | 10 #include "V8Event.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 } | 75 } |
| 76 if (DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEventConstructor>
(callbackInfo.GetReturnValue(), impl)) | 76 if (DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEventConstructor>
(callbackInfo.GetReturnValue(), impl)) |
| 77 return; | 77 return; |
| 78 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI
nfo.GetIsolate()); | 78 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI
nfo.GetIsolate()); |
| 79 v8SetReturnValue(callbackInfo, wrapper); | 79 v8SetReturnValue(callbackInfo, wrapper); |
| 80 } | 80 } |
| 81 | 81 |
| 82 template<typename CallbackInfo> | 82 template<typename CallbackInfo> |
| 83 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestI
nterfaceEventConstructor* impl) | 83 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestI
nterfaceEventConstructor* impl) |
| 84 { | 84 { |
| 85 ASSERT(DOMWrapperWorld::current(callbackInfo.GetIsolate())->isMainWorld()); | 85 ASSERT(DOMWrapperWorld::current(callbackInfo.GetIsolate()).isMainWorld()); |
| 86 if (UNLIKELY(!impl)) { | 86 if (UNLIKELY(!impl)) { |
| 87 v8SetReturnValueNull(callbackInfo); | 87 v8SetReturnValueNull(callbackInfo); |
| 88 return; | 88 return; |
| 89 } | 89 } |
| 90 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestInterfaceEvent
Constructor>(callbackInfo.GetReturnValue(), impl)) | 90 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestInterfaceEvent
Constructor>(callbackInfo.GetReturnValue(), impl)) |
| 91 return; | 91 return; |
| 92 v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackIn
fo.GetIsolate()); | 92 v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackIn
fo.GetIsolate()); |
| 93 v8SetReturnValue(callbackInfo, wrapper); | 93 v8SetReturnValue(callbackInfo, wrapper); |
| 94 } | 94 } |
| 95 | 95 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 126 template<class CallbackInfo, class Wrappable> | 126 template<class CallbackInfo, class Wrappable> |
| 127 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtrWil
lBeRawPtr<TestInterfaceEventConstructor> impl, Wrappable* wrappable) | 127 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtrWil
lBeRawPtr<TestInterfaceEventConstructor> impl, Wrappable* wrappable) |
| 128 { | 128 { |
| 129 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 129 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
| 130 } | 130 } |
| 131 | 131 |
| 132 bool initializeTestInterfaceEventConstructor(TestInterfaceEventConstructorInit&,
const Dictionary&, ExceptionState&, const v8::FunctionCallbackInfo<v8::Value>&
info, const String& = ""); | 132 bool initializeTestInterfaceEventConstructor(TestInterfaceEventConstructorInit&,
const Dictionary&, ExceptionState&, const v8::FunctionCallbackInfo<v8::Value>&
info, const String& = ""); |
| 133 | 133 |
| 134 } | 134 } |
| 135 #endif // V8TestInterfaceEventConstructor_h | 135 #endif // V8TestInterfaceEventConstructor_h |
| OLD | NEW |