| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 }; | 89 }; |
| 90 | 90 |
| 91 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestMediaQueryListListenerTem
plate(v8::Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldT
ype currentWorldType) | 91 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestMediaQueryListListenerTem
plate(v8::Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldT
ype currentWorldType) |
| 92 { | 92 { |
| 93 desc->ReadOnlyPrototype(); | 93 desc->ReadOnlyPrototype(); |
| 94 | 94 |
| 95 v8::Local<v8::Signature> defaultSignature; | 95 v8::Local<v8::Signature> defaultSignature; |
| 96 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestMe
diaQueryListListener", v8::Local<v8::FunctionTemplate>(), V8TestMediaQueryListLi
stener::internalFieldCount, | 96 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestMe
diaQueryListListener", v8::Local<v8::FunctionTemplate>(), V8TestMediaQueryListLi
stener::internalFieldCount, |
| 97 0, 0, | 97 0, 0, |
| 98 V8TestMediaQueryListListenerMethods, WTF_ARRAY_LENGTH(V8TestMediaQueryLi
stListenerMethods), isolate, currentWorldType); | 98 V8TestMediaQueryListListenerMethods, WTF_ARRAY_LENGTH(V8TestMediaQueryLi
stListenerMethods), isolate, currentWorldType); |
| 99 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used. | 99 UNUSED_PARAM(defaultSignature); |
| 100 v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate(); | 100 v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate(); |
| 101 v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate(); | 101 v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate(); |
| 102 UNUSED_PARAM(instance); // In some cases, it will not be used. | 102 UNUSED_PARAM(instance); |
| 103 UNUSED_PARAM(proto); // In some cases, it will not be used. | 103 UNUSED_PARAM(proto); |
| 104 | 104 |
| 105 // Custom toString template | 105 // Custom toString template |
| 106 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to
StringTemplate()); | 106 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to
StringTemplate()); |
| 107 return desc; | 107 return desc; |
| 108 } | 108 } |
| 109 | 109 |
| 110 v8::Handle<v8::FunctionTemplate> V8TestMediaQueryListListener::GetTemplate(v8::I
solate* isolate, WrapperWorldType currentWorldType) | 110 v8::Handle<v8::FunctionTemplate> V8TestMediaQueryListListener::GetTemplate(v8::I
solate* isolate, WrapperWorldType currentWorldType) |
| 111 { | 111 { |
| 112 V8PerIsolateData* data = V8PerIsolateData::from(isolate); | 112 V8PerIsolateData* data = V8PerIsolateData::from(isolate); |
| 113 V8PerIsolateData::TemplateMap::iterator result = data->templateMap(currentWo
rldType).find(&info); | 113 V8PerIsolateData::TemplateMap::iterator result = data->templateMap(currentWo
rldType).find(&info); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 V8DOMWrapper::associateObjectWithWrapper<V8TestMediaQueryListListener>(impl,
&info, wrapper, isolate, WrapperConfiguration::Independent); | 153 V8DOMWrapper::associateObjectWithWrapper<V8TestMediaQueryListListener>(impl,
&info, wrapper, isolate, WrapperConfiguration::Independent); |
| 154 return wrapper; | 154 return wrapper; |
| 155 } | 155 } |
| 156 | 156 |
| 157 void V8TestMediaQueryListListener::derefObject(void* object) | 157 void V8TestMediaQueryListListener::derefObject(void* object) |
| 158 { | 158 { |
| 159 fromInternalPointer(object)->deref(); | 159 fromInternalPointer(object)->deref(); |
| 160 } | 160 } |
| 161 | 161 |
| 162 } // namespace WebCore | 162 } // namespace WebCore |
| OLD | NEW |