| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 TestEventConstructorInit eventInit; | 101 TestEventConstructorInit eventInit; |
| 102 if (args.Length() >= 2) { | 102 if (args.Length() >= 2) { |
| 103 V8TRYCATCH_VOID(Dictionary, options, Dictionary(args[1], args.GetIsolate
())); | 103 V8TRYCATCH_VOID(Dictionary, options, Dictionary(args[1], args.GetIsolate
())); |
| 104 if (!fillTestEventConstructorInit(eventInit, options)) | 104 if (!fillTestEventConstructorInit(eventInit, options)) |
| 105 return; | 105 return; |
| 106 } | 106 } |
| 107 | 107 |
| 108 RefPtr<TestEventConstructor> event = TestEventConstructor::create(type, even
tInit); | 108 RefPtr<TestEventConstructor> event = TestEventConstructor::create(type, even
tInit); |
| 109 | 109 |
| 110 v8::Handle<v8::Object> wrapper = args.Holder(); | 110 v8::Handle<v8::Object> wrapper = args.Holder(); |
| 111 V8DOMWrapper::associateObjectWithWrapper(event.release(), &V8TestEventConstr
uctor::info, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent); | 111 V8DOMWrapper::associateObjectWithWrapper<V8TestEventConstructor>(event.relea
se(), &V8TestEventConstructor::info, wrapper, args.GetIsolate(), WrapperConfigur
ation::Dependent); |
| 112 v8SetReturnValue(args, wrapper); | 112 v8SetReturnValue(args, wrapper); |
| 113 } | 113 } |
| 114 } // namespace TestEventConstructorV8Internal | 114 } // namespace TestEventConstructorV8Internal |
| 115 | 115 |
| 116 static const V8DOMConfiguration::BatchedAttribute V8TestEventConstructorAttrs[]
= { | 116 static const V8DOMConfiguration::BatchedAttribute V8TestEventConstructorAttrs[]
= { |
| 117 // Attribute 'attr1' | 117 // Attribute 'attr1' |
| 118 {"attr1", TestEventConstructorV8Internal::attr1AttrGetterCallback, 0, 0, 0,
0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pr
opertyAttribute>(v8::None), 0 /* on instance */}, | 118 {"attr1", TestEventConstructorV8Internal::attr1AttrGetterCallback, 0, 0, 0,
0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pr
opertyAttribute>(v8::None), 0 /* on instance */}, |
| 119 // Attribute 'attr2' | 119 // Attribute 'attr2' |
| 120 {"attr2", TestEventConstructorV8Internal::attr2AttrGetterCallback, 0, 0, 0,
0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pr
opertyAttribute>(v8::None), 0 /* on instance */}, | 120 {"attr2", TestEventConstructorV8Internal::attr2AttrGetterCallback, 0, 0, 0,
0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pr
opertyAttribute>(v8::None), 0 /* on instance */}, |
| 121 }; | 121 }; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 { | 183 { |
| 184 return V8PerIsolateData::from(isolate)->hasInstance(&info, value, MainWorld) | 184 return V8PerIsolateData::from(isolate)->hasInstance(&info, value, MainWorld) |
| 185 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, IsolatedWo
rld) | 185 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, IsolatedWo
rld) |
| 186 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, WorkerWorl
d); | 186 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, WorkerWorl
d); |
| 187 } | 187 } |
| 188 | 188 |
| 189 | 189 |
| 190 v8::Handle<v8::Object> V8TestEventConstructor::createWrapper(PassRefPtr<TestEven
tConstructor> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate
) | 190 v8::Handle<v8::Object> V8TestEventConstructor::createWrapper(PassRefPtr<TestEven
tConstructor> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate
) |
| 191 { | 191 { |
| 192 ASSERT(impl.get()); | 192 ASSERT(impl.get()); |
| 193 ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty()); | 193 ASSERT(DOMDataStore::getWrapper<V8TestEventConstructor>(impl.get(), isolate)
.IsEmpty()); |
| 194 | 194 |
| 195 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &info, impl.get(), isolate); | 195 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &info, toInternalPointer(impl.get()), isolate); |
| 196 if (UNLIKELY(wrapper.IsEmpty())) | 196 if (UNLIKELY(wrapper.IsEmpty())) |
| 197 return wrapper; | 197 return wrapper; |
| 198 installPerContextProperties(wrapper, impl.get(), isolate); | 198 installPerContextProperties(wrapper, impl.get(), isolate); |
| 199 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Independent); | 199 V8DOMWrapper::associateObjectWithWrapper<V8TestEventConstructor>(impl, &info
, wrapper, isolate, WrapperConfiguration::Independent); |
| 200 return wrapper; | 200 return wrapper; |
| 201 } | 201 } |
| 202 void V8TestEventConstructor::derefObject(void* object) | 202 void V8TestEventConstructor::derefObject(void* object) |
| 203 { | 203 { |
| 204 static_cast<TestEventConstructor*>(object)->deref(); | 204 fromInternalPointer(object)->deref(); |
| 205 } | 205 } |
| 206 | 206 |
| 207 } // namespace WebCore | 207 } // namespace WebCore |
| OLD | NEW |