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

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

Issue 40433002: Make wrapperTypeInfo static member const in bindings classes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years, 2 months 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
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // In ScriptWrappable::init, the use of a local function declaration has an issu e on Windows: 55 // In ScriptWrappable::init, the use of a local function declaration has an issu e on Windows:
56 // the local declaration does not pick up the surrounding namespace. Therefore, we provide this function 56 // the local declaration does not pick up the surrounding namespace. Therefore, we provide this function
57 // in the global namespace. 57 // in the global namespace.
58 // (More info on the MSVC bug here: http://connect.microsoft.com/VisualStudio/fe edback/details/664619/the-namespace-of-local-function-declarations-in-c) 58 // (More info on the MSVC bug here: http://connect.microsoft.com/VisualStudio/fe edback/details/664619/the-namespace-of-local-function-declarations-in-c)
59 void webCoreInitializeScriptWrappableForInterface(WebCore::TestTypedefs* object) 59 void webCoreInitializeScriptWrappableForInterface(WebCore::TestTypedefs* object)
60 { 60 {
61 WebCore::initializeScriptWrappableForInterface(object); 61 WebCore::initializeScriptWrappableForInterface(object);
62 } 62 }
63 63
64 namespace WebCore { 64 namespace WebCore {
65 WrapperTypeInfo V8TestTypedefs::wrapperTypeInfo = { V8TestTypedefs::GetTemplate, V8TestTypedefs::derefObject, 0, 0, 0, V8TestTypedefs::installPerContextEnabledP rototypeProperties, 0, WrapperTypeObjectPrototype }; 65 const WrapperTypeInfo V8TestTypedefs::wrapperTypeInfo = { V8TestTypedefs::GetTem plate, V8TestTypedefs::derefObject, 0, 0, 0, V8TestTypedefs::installPerContextEn abledPrototypeProperties, 0, WrapperTypeObjectPrototype };
66 66
67 namespace TestTypedefsV8Internal { 67 namespace TestTypedefsV8Internal {
68 68
69 template <typename T> void V8_USE(T) { } 69 template <typename T> void V8_USE(T) { }
70 70
71 static void unsignedLongLongAttrAttributeGetter(v8::Local<v8::String> name, cons t v8::PropertyCallbackInfo<v8::Value>& info) 71 static void unsignedLongLongAttrAttributeGetter(v8::Local<v8::String> name, cons t v8::PropertyCallbackInfo<v8::Value>& info)
72 { 72 {
73 TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); 73 TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder());
74 v8SetReturnValue(info, static_cast<double>(imp->unsignedLongLongAttr())); 74 v8SetReturnValue(info, static_cast<double>(imp->unsignedLongLongAttr()));
75 } 75 }
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestTy pedefs", v8::Local<v8::FunctionTemplate>(), V8TestTypedefs::internalFieldCount, 534 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestTy pedefs", v8::Local<v8::FunctionTemplate>(), V8TestTypedefs::internalFieldCount,
535 V8TestTypedefsAttributes, WTF_ARRAY_LENGTH(V8TestTypedefsAttributes), 535 V8TestTypedefsAttributes, WTF_ARRAY_LENGTH(V8TestTypedefsAttributes),
536 V8TestTypedefsMethods, WTF_ARRAY_LENGTH(V8TestTypedefsMethods), isolate, currentWorldType); 536 V8TestTypedefsMethods, WTF_ARRAY_LENGTH(V8TestTypedefsMethods), isolate, currentWorldType);
537 UNUSED_PARAM(defaultSignature); 537 UNUSED_PARAM(defaultSignature);
538 desc->SetCallHandler(V8TestTypedefs::constructorCallback); 538 desc->SetCallHandler(V8TestTypedefs::constructorCallback);
539 desc->SetLength(2); 539 desc->SetLength(2);
540 v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate(); 540 v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate();
541 v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate(); 541 v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate();
542 UNUSED_PARAM(instance); 542 UNUSED_PARAM(instance);
543 UNUSED_PARAM(proto); 543 UNUSED_PARAM(proto);
544 desc->SetNativeDataProperty(v8::String::NewSymbol("TestSubObj"), TestTypedef sV8Internal::TestTypedefsConstructorGetter, 0, v8::External::New(&V8TestSubObj:: wrapperTypeInfo), static_cast<v8::PropertyAttribute>(v8::DontEnum), v8::Handle<v 8::AccessorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); 544 desc->SetNativeDataProperty(v8::String::NewSymbol("TestSubObj"), TestTypedef sV8Internal::TestTypedefsConstructorGetter, 0, v8::External::New(const_cast<Wrap perTypeInfo*>(&V8TestSubObj::wrapperTypeInfo)), static_cast<v8::PropertyAttribut e>(v8::DontEnum), v8::Handle<v8::AccessorSignature>(), static_cast<v8::AccessCon trol>(v8::DEFAULT));
545 545
546 // Custom toString template 546 // Custom toString template
547 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to StringTemplate()); 547 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to StringTemplate());
548 return desc; 548 return desc;
549 } 549 }
550 550
551 v8::Handle<v8::FunctionTemplate> V8TestTypedefs::GetTemplate(v8::Isolate* isolat e, WrapperWorldType currentWorldType) 551 v8::Handle<v8::FunctionTemplate> V8TestTypedefs::GetTemplate(v8::Isolate* isolat e, WrapperWorldType currentWorldType)
552 { 552 {
553 V8PerIsolateData* data = V8PerIsolateData::from(isolate); 553 V8PerIsolateData* data = V8PerIsolateData::from(isolate);
554 V8PerIsolateData::TemplateMap::iterator result = data->templateMap(currentWo rldType).find(&wrapperTypeInfo); 554 V8PerIsolateData::TemplateMap::iterator result = data->templateMap(currentWo rldType).find(&wrapperTypeInfo);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 V8DOMWrapper::associateObjectWithWrapper<V8TestTypedefs>(impl, &wrapperTypeI nfo, wrapper, isolate, WrapperConfiguration::Independent); 594 V8DOMWrapper::associateObjectWithWrapper<V8TestTypedefs>(impl, &wrapperTypeI nfo, wrapper, isolate, WrapperConfiguration::Independent);
595 return wrapper; 595 return wrapper;
596 } 596 }
597 597
598 void V8TestTypedefs::derefObject(void* object) 598 void V8TestTypedefs::derefObject(void* object)
599 { 599 {
600 fromInternalPointer(object)->deref(); 600 fromInternalPointer(object)->deref();
601 } 601 }
602 602
603 } // namespace WebCore 603 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestTypedefs.h ('k') | Source/bindings/v8/CustomElementBinding.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698