| OLD | NEW |
| 1 /* | 1 /* |
| 2 This file is part of the Blink open source project. | 2 This file is part of the Blink open source project. |
| 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! | 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! |
| 4 | 4 |
| 5 This library is free software; you can redistribute it and/or | 5 This library is free software; you can redistribute it and/or |
| 6 modify it under the terms of the GNU Library General Public | 6 modify it under the terms of the GNU Library General Public |
| 7 License as published by the Free Software Foundation; either | 7 License as published by the Free Software Foundation; either |
| 8 version 2 of the License, or (at your option) any later version. | 8 version 2 of the License, or (at your option) any later version. |
| 9 | 9 |
| 10 This library is distributed in the hope that it will be useful, | 10 This library is distributed in the hope that it will be useful, |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 { | 76 { |
| 77 if (UNLIKELY(!impl)) | 77 if (UNLIKELY(!impl)) |
| 78 return v8NullWithCheck(isolate); | 78 return v8NullWithCheck(isolate); |
| 79 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestEventConstruc
tor>(impl, isolate); | 79 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestEventConstruc
tor>(impl, isolate); |
| 80 if (!wrapper.IsEmpty()) | 80 if (!wrapper.IsEmpty()) |
| 81 return wrapper; | 81 return wrapper; |
| 82 return wrap(impl, creationContext, isolate); | 82 return wrap(impl, creationContext, isolate); |
| 83 } | 83 } |
| 84 | 84 |
| 85 template<typename CallbackInfo> | 85 template<typename CallbackInfo> |
| 86 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestEventConstruc
tor* impl, v8::Handle<v8::Object> creationContext) | 86 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestEventConstruc
tor* impl) |
| 87 { | 87 { |
| 88 if (UNLIKELY(!impl)) { | 88 if (UNLIKELY(!impl)) { |
| 89 v8SetReturnValueNull(callbackInfo); | 89 v8SetReturnValueNull(callbackInfo); |
| 90 return; | 90 return; |
| 91 } | 91 } |
| 92 if (DOMDataStore::setReturnValueFromWrapper<V8TestEventConstructor>(callback
Info.GetReturnValue(), impl)) | 92 if (DOMDataStore::setReturnValueFromWrapper<V8TestEventConstructor>(callback
Info.GetReturnValue(), impl)) |
| 93 return; | 93 return; |
| 94 v8::Handle<v8::Object> wrapper = wrap(impl, creationContext, callbackInfo.Ge
tIsolate()); | 94 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI
nfo.GetIsolate()); |
| 95 v8SetReturnValue(callbackInfo, wrapper); | 95 v8SetReturnValue(callbackInfo, wrapper); |
| 96 } | 96 } |
| 97 | 97 |
| 98 template<typename CallbackInfo> | 98 template<typename CallbackInfo> |
| 99 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestE
ventConstructor* impl, v8::Handle<v8::Object> creationContext) | 99 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestE
ventConstructor* impl) |
| 100 { | 100 { |
| 101 ASSERT(worldType(callbackInfo.GetIsolate()) == MainWorld); | 101 ASSERT(worldType(callbackInfo.GetIsolate()) == MainWorld); |
| 102 if (UNLIKELY(!impl)) { | 102 if (UNLIKELY(!impl)) { |
| 103 v8SetReturnValueNull(callbackInfo); | 103 v8SetReturnValueNull(callbackInfo); |
| 104 return; | 104 return; |
| 105 } | 105 } |
| 106 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestEventConstruct
or>(callbackInfo.GetReturnValue(), impl)) | 106 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestEventConstruct
or>(callbackInfo.GetReturnValue(), impl)) |
| 107 return; | 107 return; |
| 108 v8::Handle<v8::Value> wrapper = wrap(impl, creationContext, callbackInfo.Get
Isolate()); | 108 v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackIn
fo.GetIsolate()); |
| 109 v8SetReturnValue(callbackInfo, wrapper); | 109 v8SetReturnValue(callbackInfo, wrapper); |
| 110 } | 110 } |
| 111 | 111 |
| 112 template<class CallbackInfo, class Wrappable> | 112 template<class CallbackInfo, class Wrappable> |
| 113 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, TestEventCons
tructor* impl, Wrappable* wrappable) | 113 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, TestEventCons
tructor* impl, Wrappable* wrappable) |
| 114 { | 114 { |
| 115 if (UNLIKELY(!impl)) { | 115 if (UNLIKELY(!impl)) { |
| 116 v8SetReturnValueNull(callbackInfo); | 116 v8SetReturnValueNull(callbackInfo); |
| 117 return; | 117 return; |
| 118 } | 118 } |
| 119 if (DOMDataStore::setReturnValueFromWrapperFast<V8TestEventConstructor>(call
backInfo.GetReturnValue(), impl, callbackInfo.Holder(), wrappable)) | 119 if (DOMDataStore::setReturnValueFromWrapperFast<V8TestEventConstructor>(call
backInfo.GetReturnValue(), impl, callbackInfo.Holder(), wrappable)) |
| 120 return; | 120 return; |
| 121 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI
nfo.GetIsolate()); | 121 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI
nfo.GetIsolate()); |
| 122 v8SetReturnValue(callbackInfo, wrapper); | 122 v8SetReturnValue(callbackInfo, wrapper); |
| 123 } | 123 } |
| 124 | 124 |
| 125 inline v8::Handle<v8::Value> toV8(PassRefPtr<TestEventConstructor > impl, v8::Ha
ndle<v8::Object> creationContext, v8::Isolate* isolate) | 125 inline v8::Handle<v8::Value> toV8(PassRefPtr<TestEventConstructor > impl, v8::Ha
ndle<v8::Object> creationContext, v8::Isolate* isolate) |
| 126 { | 126 { |
| 127 return toV8(impl.get(), creationContext, isolate); | 127 return toV8(impl.get(), creationContext, isolate); |
| 128 } | 128 } |
| 129 | 129 |
| 130 template<class CallbackInfo> | 130 template<class CallbackInfo> |
| 131 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<TestEv
entConstructor > impl, v8::Handle<v8::Object> creationContext) | 131 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<TestEv
entConstructor > impl) |
| 132 { | 132 { |
| 133 v8SetReturnValue(callbackInfo, impl.get(), creationContext); | 133 v8SetReturnValue(callbackInfo, impl.get()); |
| 134 } | 134 } |
| 135 | 135 |
| 136 template<class CallbackInfo> | 136 template<class CallbackInfo> |
| 137 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR
efPtr<TestEventConstructor > impl, v8::Handle<v8::Object> creationContext) | 137 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR
efPtr<TestEventConstructor > impl) |
| 138 { | 138 { |
| 139 v8SetReturnValueForMainWorld(callbackInfo, impl.get(), creationContext); | 139 v8SetReturnValueForMainWorld(callbackInfo, impl.get()); |
| 140 } | 140 } |
| 141 | 141 |
| 142 template<class CallbackInfo, class Wrappable> | 142 template<class CallbackInfo, class Wrappable> |
| 143 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stEventConstructor > impl, Wrappable* wrappable) | 143 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stEventConstructor > impl, Wrappable* wrappable) |
| 144 { | 144 { |
| 145 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 145 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
| 146 } | 146 } |
| 147 | 147 |
| 148 bool fillTestEventConstructorInit(TestEventConstructorInit&, const Dictionary&); | 148 bool fillTestEventConstructorInit(TestEventConstructorInit&, const Dictionary&); |
| 149 | 149 |
| 150 } | 150 } |
| 151 | 151 |
| 152 #endif // V8TestEventConstructor_h | 152 #endif // V8TestEventConstructor_h |
| OLD | NEW |