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

Side by Side Diff: Source/bindings/tests/results/V8TestCustomAccessors.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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 static const V8DOMConfiguration::MethodConfiguration V8TestCustomAccessorsMethod s[] = { 140 static const V8DOMConfiguration::MethodConfiguration V8TestCustomAccessorsMethod s[] = {
141 {"anotherFunction", TestCustomAccessorsV8Internal::anotherFunctionMethodCall back, 0, 1}, 141 {"anotherFunction", TestCustomAccessorsV8Internal::anotherFunctionMethodCall back, 0, 1},
142 }; 142 };
143 143
144 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestCustomAccessorsTemplate(v 8::Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType cur rentWorldType) 144 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestCustomAccessorsTemplate(v 8::Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType cur rentWorldType)
145 { 145 {
146 desc->ReadOnlyPrototype(); 146 desc->ReadOnlyPrototype();
147 147
148 v8::Local<v8::Signature> defaultSignature; 148 v8::Local<v8::Signature> defaultSignature;
149 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestCu stomAccessors", v8::Local<v8::FunctionTemplate>(), V8TestCustomAccessors::intern alFieldCount, 149 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestCu stomAccessors", v8::Local<v8::FunctionTemplate>(), V8TestCustomAccessors::intern alFieldCount, 0, 0,V8TestCustomAccessorsMethods, WTF_ARRAY_LENGTH(V8TestCustomAc cessorsMethods), isolate, currentWorldType);
150 0, 0,
151 V8TestCustomAccessorsMethods, WTF_ARRAY_LENGTH(V8TestCustomAccessorsMeth ods), isolate, currentWorldType);
152 UNUSED_PARAM(defaultSignature); 150 UNUSED_PARAM(defaultSignature);
153 v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate(); 151 v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate();
154 v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate(); 152 v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate();
155 UNUSED_PARAM(instance); 153 UNUSED_PARAM(instance);
156 UNUSED_PARAM(proto); 154 UNUSED_PARAM(proto);
157 desc->InstanceTemplate()->SetIndexedPropertyHandler(TestCustomAccessorsV8Int ernal::indexedPropertyGetterCallback, TestCustomAccessorsV8Internal::indexedProp ertySetterCallback, 0, TestCustomAccessorsV8Internal::indexedPropertyDeleterCall back, 0); 155 desc->InstanceTemplate()->SetIndexedPropertyHandler(TestCustomAccessorsV8Int ernal::indexedPropertyGetterCallback, TestCustomAccessorsV8Internal::indexedProp ertySetterCallback, 0, TestCustomAccessorsV8Internal::indexedPropertyDeleterCall back, 0);
158 desc->InstanceTemplate()->SetNamedPropertyHandler(TestCustomAccessorsV8Inter nal::namedPropertyGetterCallback, TestCustomAccessorsV8Internal::namedPropertySe tterCallback, TestCustomAccessorsV8Internal::namedPropertyQueryCallback, TestCus tomAccessorsV8Internal::namedPropertyDeleterCallback, TestCustomAccessorsV8Inter nal::namedPropertyEnumeratorCallback); 156 desc->InstanceTemplate()->SetNamedPropertyHandler(TestCustomAccessorsV8Inter nal::namedPropertyGetterCallback, TestCustomAccessorsV8Internal::namedPropertySe tterCallback, TestCustomAccessorsV8Internal::namedPropertyQueryCallback, TestCus tomAccessorsV8Internal::namedPropertyDeleterCallback, TestCustomAccessorsV8Inter nal::namedPropertyEnumeratorCallback);
159 157
160 // Custom toString template 158 // Custom toString template
161 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to StringTemplate()); 159 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to StringTemplate());
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 V8DOMWrapper::associateObjectWithWrapper<V8TestCustomAccessors>(impl, &wrapp erTypeInfo, wrapper, isolate, WrapperConfiguration::Independent); 206 V8DOMWrapper::associateObjectWithWrapper<V8TestCustomAccessors>(impl, &wrapp erTypeInfo, wrapper, isolate, WrapperConfiguration::Independent);
209 return wrapper; 207 return wrapper;
210 } 208 }
211 209
212 void V8TestCustomAccessors::derefObject(void* object) 210 void V8TestCustomAccessors::derefObject(void* object)
213 { 211 {
214 fromInternalPointer(object)->deref(); 212 fromInternalPointer(object)->deref();
215 } 213 }
216 214
217 } // namespace WebCore 215 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698