| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 }; | 189 }; |
| 190 | 190 |
| 191 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestActiveDOMObjectTemplate(v
8::Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType cur
rentWorldType) | 191 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestActiveDOMObjectTemplate(v
8::Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType cur
rentWorldType) |
| 192 { | 192 { |
| 193 desc->ReadOnlyPrototype(); | 193 desc->ReadOnlyPrototype(); |
| 194 | 194 |
| 195 v8::Local<v8::Signature> defaultSignature; | 195 v8::Local<v8::Signature> defaultSignature; |
| 196 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestAc
tiveDOMObject", v8::Local<v8::FunctionTemplate>(), V8TestActiveDOMObject::intern
alFieldCount, | 196 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestAc
tiveDOMObject", v8::Local<v8::FunctionTemplate>(), V8TestActiveDOMObject::intern
alFieldCount, |
| 197 V8TestActiveDOMObjectAttributes, WTF_ARRAY_LENGTH(V8TestActiveDOMObjectA
ttributes), | 197 V8TestActiveDOMObjectAttributes, WTF_ARRAY_LENGTH(V8TestActiveDOMObjectA
ttributes), |
| 198 0, 0, isolate, currentWorldType); | 198 0, 0, isolate, currentWorldType); |
| 199 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used. | 199 UNUSED_PARAM(defaultSignature); |
| 200 v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate(); | 200 v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate(); |
| 201 v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate(); | 201 v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate(); |
| 202 UNUSED_PARAM(instance); // In some cases, it will not be used. | 202 UNUSED_PARAM(instance); |
| 203 UNUSED_PARAM(proto); // In some cases, it will not be used. | 203 UNUSED_PARAM(proto); |
| 204 instance->SetAccessCheckCallbacks(TestActiveDOMObjectV8Internal::namedSecuri
tyCheck, TestActiveDOMObjectV8Internal::indexedSecurityCheck, v8::External::New(
&V8TestActiveDOMObject::info)); | 204 instance->SetAccessCheckCallbacks(TestActiveDOMObjectV8Internal::namedSecuri
tyCheck, TestActiveDOMObjectV8Internal::indexedSecurityCheck, v8::External::New(
&V8TestActiveDOMObject::info)); |
| 205 | 205 |
| 206 // Custom Signature 'excitingFunction' | 206 // Custom Signature 'excitingFunction' |
| 207 const int excitingFunctionArgc = 1; | 207 const int excitingFunctionArgc = 1; |
| 208 v8::Handle<v8::FunctionTemplate> excitingFunctionArgv[excitingFunctionArgc]
= { V8PerIsolateData::from(isolate)->rawTemplate(&V8Node::info, currentWorldType
) }; | 208 v8::Handle<v8::FunctionTemplate> excitingFunctionArgv[excitingFunctionArgc]
= { V8PerIsolateData::from(isolate)->rawTemplate(&V8Node::info, currentWorldType
) }; |
| 209 v8::Handle<v8::Signature> excitingFunctionSignature = v8::Signature::New(des
c, excitingFunctionArgc, excitingFunctionArgv); | 209 v8::Handle<v8::Signature> excitingFunctionSignature = v8::Signature::New(des
c, excitingFunctionArgc, excitingFunctionArgv); |
| 210 proto->Set(v8::String::NewSymbol("excitingFunction"), v8::FunctionTemplate::
New(TestActiveDOMObjectV8Internal::excitingFunctionMethodCallback, v8Undefined()
, excitingFunctionSignature, 1)); | 210 proto->Set(v8::String::NewSymbol("excitingFunction"), v8::FunctionTemplate::
New(TestActiveDOMObjectV8Internal::excitingFunctionMethodCallback, v8Undefined()
, excitingFunctionSignature, 1)); |
| 211 | 211 |
| 212 // Function 'postMessage' (Extended Attributes: 'DoNotCheckSecurity') | 212 // Function 'postMessage' (Extended Attributes: 'DoNotCheckSecurity') |
| 213 proto->SetAccessor(v8::String::NewSymbol("postMessage"), TestActiveDOMObject
V8Internal::postMessageAttributeGetterCallback, TestActiveDOMObjectV8Internal::T
estActiveDOMObjectDomainSafeFunctionSetter, v8Undefined(), v8::ALL_CAN_READ, sta
tic_cast<v8::PropertyAttribute>(v8::DontDelete)); | 213 proto->SetAccessor(v8::String::NewSymbol("postMessage"), TestActiveDOMObject
V8Internal::postMessageAttributeGetterCallback, TestActiveDOMObjectV8Internal::T
estActiveDOMObjectDomainSafeFunctionSetter, v8Undefined(), v8::ALL_CAN_READ, sta
tic_cast<v8::PropertyAttribute>(v8::DontDelete)); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 V8DOMWrapper::associateObjectWithWrapper<V8TestActiveDOMObject>(impl, &info,
wrapper, isolate, WrapperConfiguration::Independent); | 263 V8DOMWrapper::associateObjectWithWrapper<V8TestActiveDOMObject>(impl, &info,
wrapper, isolate, WrapperConfiguration::Independent); |
| 264 return wrapper; | 264 return wrapper; |
| 265 } | 265 } |
| 266 | 266 |
| 267 void V8TestActiveDOMObject::derefObject(void* object) | 267 void V8TestActiveDOMObject::derefObject(void* object) |
| 268 { | 268 { |
| 269 fromInternalPointer(object)->deref(); | 269 fromInternalPointer(object)->deref(); |
| 270 } | 270 } |
| 271 | 271 |
| 272 } // namespace WebCore | 272 } // namespace WebCore |
| OLD | NEW |