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

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

Issue 23068032: Add constants and primitive type readonly attributes to Python IDL compiler (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Re-reupload Created 7 years, 3 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 | 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 }; 144 };
145 145
146 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestCustomAccessorsTemplate(v 8::Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType cur rentWorldType) 146 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestCustomAccessorsTemplate(v 8::Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType cur rentWorldType)
147 { 147 {
148 desc->ReadOnlyPrototype(); 148 desc->ReadOnlyPrototype();
149 149
150 v8::Local<v8::Signature> defaultSignature; 150 v8::Local<v8::Signature> defaultSignature;
151 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestCu stomAccessors", v8::Local<v8::FunctionTemplate>(), V8TestCustomAccessors::intern alFieldCount, 151 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestCu stomAccessors", v8::Local<v8::FunctionTemplate>(), V8TestCustomAccessors::intern alFieldCount,
152 0, 0, 152 0, 0,
153 V8TestCustomAccessorsMethods, WTF_ARRAY_LENGTH(V8TestCustomAccessorsMeth ods), isolate, currentWorldType); 153 V8TestCustomAccessorsMethods, WTF_ARRAY_LENGTH(V8TestCustomAccessorsMeth ods), isolate, currentWorldType);
154 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used. 154 UNUSED_PARAM(defaultSignature);
155 v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate(); 155 v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate();
156 v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate(); 156 v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate();
157 UNUSED_PARAM(instance); // In some cases, it will not be used. 157 UNUSED_PARAM(instance);
158 UNUSED_PARAM(proto); // In some cases, it will not be used. 158 UNUSED_PARAM(proto);
159 desc->InstanceTemplate()->SetIndexedPropertyHandler(TestCustomAccessorsV8Int ernal::indexedPropertyGetterCallback, TestCustomAccessorsV8Internal::indexedProp ertySetterCallback, 0, TestCustomAccessorsV8Internal::indexedPropertyDeleterCall back, 0); 159 desc->InstanceTemplate()->SetIndexedPropertyHandler(TestCustomAccessorsV8Int ernal::indexedPropertyGetterCallback, TestCustomAccessorsV8Internal::indexedProp ertySetterCallback, 0, TestCustomAccessorsV8Internal::indexedPropertyDeleterCall back, 0);
160 desc->InstanceTemplate()->SetNamedPropertyHandler(TestCustomAccessorsV8Inter nal::namedPropertyGetterCallback, TestCustomAccessorsV8Internal::namedPropertySe tterCallback, TestCustomAccessorsV8Internal::namedPropertyQueryCallback, TestCus tomAccessorsV8Internal::namedPropertyDeleterCallback, TestCustomAccessorsV8Inter nal::namedPropertyEnumeratorCallback); 160 desc->InstanceTemplate()->SetNamedPropertyHandler(TestCustomAccessorsV8Inter nal::namedPropertyGetterCallback, TestCustomAccessorsV8Internal::namedPropertySe tterCallback, TestCustomAccessorsV8Internal::namedPropertyQueryCallback, TestCus tomAccessorsV8Internal::namedPropertyDeleterCallback, TestCustomAccessorsV8Inter nal::namedPropertyEnumeratorCallback);
161 161
162 // Custom toString template 162 // Custom toString template
163 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to StringTemplate()); 163 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to StringTemplate());
164 return desc; 164 return desc;
165 } 165 }
166 166
167 v8::Handle<v8::FunctionTemplate> V8TestCustomAccessors::GetTemplate(v8::Isolate* isolate, WrapperWorldType currentWorldType) 167 v8::Handle<v8::FunctionTemplate> V8TestCustomAccessors::GetTemplate(v8::Isolate* isolate, WrapperWorldType currentWorldType)
168 { 168 {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 V8DOMWrapper::associateObjectWithWrapper<V8TestCustomAccessors>(impl, &info, wrapper, isolate, WrapperConfiguration::Independent); 210 V8DOMWrapper::associateObjectWithWrapper<V8TestCustomAccessors>(impl, &info, wrapper, isolate, WrapperConfiguration::Independent);
211 return wrapper; 211 return wrapper;
212 } 212 }
213 213
214 void V8TestCustomAccessors::derefObject(void* object) 214 void V8TestCustomAccessors::derefObject(void* object)
215 { 215 {
216 fromInternalPointer(object)->deref(); 216 fromInternalPointer(object)->deref();
217 } 217 }
218 218
219 } // namespace WebCore 219 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestConstants.cpp ('k') | Source/bindings/tests/results/V8TestEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698