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