| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 inline v8::Handle<v8::Value> toV8(Event* impl, v8::Handle<v8::Object> creationCo
ntext, v8::Isolate* isolate) | 77 inline v8::Handle<v8::Value> toV8(Event* impl, v8::Handle<v8::Object> creationCo
ntext, v8::Isolate* isolate) |
| 78 { | 78 { |
| 79 if (UNLIKELY(!impl)) | 79 if (UNLIKELY(!impl)) |
| 80 return v8NullWithCheck(isolate); | 80 return v8NullWithCheck(isolate); |
| 81 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestExtendedEvent
>(impl, isolate); | 81 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestExtendedEvent
>(impl, isolate); |
| 82 if (!wrapper.IsEmpty()) | 82 if (!wrapper.IsEmpty()) |
| 83 return wrapper; | 83 return wrapper; |
| 84 return wrap(impl, creationContext, isolate); | 84 return wrap(impl, creationContext, isolate); |
| 85 } | 85 } |
| 86 | 86 |
| 87 inline UnsafePersistent<v8::Object> toV8Persistent(Event* impl, v8::Handle<v8::O
bject> creationContext, v8::Isolate* isolate) |
| 88 { |
| 89 ASSERT(impl); |
| 90 |
| 91 UnsafePersistent<v8::Object> wrapperPersistent = DOMDataStore::getWrapperPer
sistent<V8TestExtendedEvent>(impl, isolate); |
| 92 if (LIKELY(!wrapperPersistent.isEmpty())) |
| 93 return wrapperPersistent; |
| 94 |
| 95 wrap(impl, creationContext, isolate); |
| 96 |
| 97 wrapperPersistent = DOMDataStore::getWrapperPersistent<V8TestExtendedEvent>(
impl, isolate); |
| 98 ASSERT(!wrapperPersistent.isEmpty()); |
| 99 return wrapperPersistent; |
| 100 } |
| 101 |
| 87 template<typename CallbackInfo> | 102 template<typename CallbackInfo> |
| 88 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, Event* impl, v8::
Handle<v8::Object> creationContext) | 103 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, Event* impl, v8::
Handle<v8::Object> creationContext) |
| 89 { | 104 { |
| 90 if (UNLIKELY(!impl)) { | 105 if (UNLIKELY(!impl)) { |
| 91 v8SetReturnValueNull(callbackInfo); | 106 v8SetReturnValueNull(callbackInfo); |
| 92 return; | 107 return; |
| 93 } | 108 } |
| 94 if (DOMDataStore::setReturnValueFromWrapper<V8TestExtendedEvent>(callbackInf
o.GetReturnValue(), impl)) | 109 if (DOMDataStore::setReturnValueFromWrapper<V8TestExtendedEvent>(callbackInf
o.GetReturnValue(), impl)) |
| 95 return; | 110 return; |
| 96 v8::Handle<v8::Object> wrapper = wrap(impl, creationContext, callbackInfo.Ge
tIsolate()); | 111 v8::Handle<v8::Object> wrapper = wrap(impl, creationContext, callbackInfo.Ge
tIsolate()); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 162 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
| 148 } | 163 } |
| 149 | 164 |
| 150 bool fillEventInit(EventInit&, const Dictionary&); | 165 bool fillEventInit(EventInit&, const Dictionary&); |
| 151 | 166 |
| 152 } | 167 } |
| 153 | 168 |
| 154 #endif // ENABLE(TEST) | 169 #endif // ENABLE(TEST) |
| 155 | 170 |
| 156 #endif // V8TestExtendedEvent_h | 171 #endif // V8TestExtendedEvent_h |
| OLD | NEW |