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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(event.release(), &V8TestEventConstr
uctor::info, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent); |
108 args.GetReturnValue().Set(wrapper); | 108 v8SetReturnValue(args, 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 }; |
118 | 118 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(impl, &info, wrapper, isolate, Wrap
perConfiguration::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 static_cast<TestEventConstructor*>(object)->deref(); |
201 } | 201 } |
202 | 202 |
203 } // namespace WebCore | 203 } // namespace WebCore |
OLD | NEW |