Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: Source/bindings/tests/results/V8TestActiveDOMObject.cpp

Issue 54123003: Clean up code generator before implementing [ExposeV8GetterAndSetter] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 307
308 static const V8DOMConfiguration::AttributeConfiguration V8TestActiveDOMObjectAtt ributes[] = { 308 static const V8DOMConfiguration::AttributeConfiguration V8TestActiveDOMObjectAtt ributes[] = {
309 {"excitingAttr", TestActiveDOMObjectV8Internal::excitingAttrAttributeGetterC allback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8 ::PropertyAttribute>(v8::None), 0 /* on instance */}, 309 {"excitingAttr", TestActiveDOMObjectV8Internal::excitingAttrAttributeGetterC allback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8 ::PropertyAttribute>(v8::None), 0 /* on instance */},
310 }; 310 };
311 311
312 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestActiveDOMObjectTemplate(v 8::Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType cur rentWorldType) 312 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestActiveDOMObjectTemplate(v 8::Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType cur rentWorldType)
313 { 313 {
314 desc->ReadOnlyPrototype(); 314 desc->ReadOnlyPrototype();
315 315
316 v8::Local<v8::Signature> defaultSignature; 316 v8::Local<v8::Signature> defaultSignature;
317 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestAc tiveDOMObject", v8::Local<v8::FunctionTemplate>(), V8TestActiveDOMObject::intern alFieldCount, 317 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestAc tiveDOMObject", v8::Local<v8::FunctionTemplate>(), V8TestActiveDOMObject::intern alFieldCount, V8TestActiveDOMObjectAttributes, WTF_ARRAY_LENGTH(V8TestActiveDOMO bjectAttributes), 0, 0, isolate, currentWorldType);
318 V8TestActiveDOMObjectAttributes, WTF_ARRAY_LENGTH(V8TestActiveDOMObjectA ttributes),
319 0, 0, isolate, currentWorldType);
320 UNUSED_PARAM(defaultSignature); 318 UNUSED_PARAM(defaultSignature);
321 v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate(); 319 v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate();
322 v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate(); 320 v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate();
323 UNUSED_PARAM(instance); 321 UNUSED_PARAM(instance);
324 UNUSED_PARAM(proto); 322 UNUSED_PARAM(proto);
325 instance->SetAccessCheckCallbacks(TestActiveDOMObjectV8Internal::namedSecuri tyCheck, TestActiveDOMObjectV8Internal::indexedSecurityCheck, v8::External::New( const_cast<WrapperTypeInfo*>(&V8TestActiveDOMObject::wrapperTypeInfo))); 323 instance->SetAccessCheckCallbacks(TestActiveDOMObjectV8Internal::namedSecuri tyCheck, TestActiveDOMObjectV8Internal::indexedSecurityCheck, v8::External::New( const_cast<WrapperTypeInfo*>(&V8TestActiveDOMObject::wrapperTypeInfo)));
326 324
327 // Custom Signature 'excitingFunction' 325 // Custom Signature 'excitingFunction'
328 const int excitingFunctionArgc = 1; 326 const int excitingFunctionArgc = 1;
329 v8::Handle<v8::FunctionTemplate> excitingFunctionArgv[excitingFunctionArgc] = { V8PerIsolateData::from(isolate)->rawTemplate(&V8Node::wrapperTypeInfo, curre ntWorldType) }; 327 v8::Handle<v8::FunctionTemplate> excitingFunctionArgv[excitingFunctionArgc] = { V8PerIsolateData::from(isolate)->rawTemplate(&V8Node::wrapperTypeInfo, curre ntWorldType) };
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 V8DOMWrapper::associateObjectWithWrapper<V8TestActiveDOMObject>(impl, &wrapp erTypeInfo, wrapper, isolate, WrapperConfiguration::Independent); 389 V8DOMWrapper::associateObjectWithWrapper<V8TestActiveDOMObject>(impl, &wrapp erTypeInfo, wrapper, isolate, WrapperConfiguration::Independent);
392 return wrapper; 390 return wrapper;
393 } 391 }
394 392
395 void V8TestActiveDOMObject::derefObject(void* object) 393 void V8TestActiveDOMObject::derefObject(void* object)
396 { 394 {
397 fromInternalPointer(object)->deref(); 395 fromInternalPointer(object)->deref();
398 } 396 }
399 397
400 } // namespace WebCore 398 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8SupportTestInterface.cpp ('k') | Source/bindings/tests/results/V8TestConstants.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698