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

Side by Side Diff: Source/bindings/tests/results/V8TestExtendedEvent.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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 } 147 }
148 148
149 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestExtendedEventTemplate(v8: :Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType curre ntWorldType) 149 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestExtendedEventTemplate(v8: :Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType curre ntWorldType)
150 { 150 {
151 desc->ReadOnlyPrototype(); 151 desc->ReadOnlyPrototype();
152 152
153 v8::Local<v8::Signature> defaultSignature; 153 v8::Local<v8::Signature> defaultSignature;
154 if (!RuntimeEnabledFeatures::testEnabled()) 154 if (!RuntimeEnabledFeatures::testEnabled())
155 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "", V8TestEvent::GetTemplate(isolate, currentWorldType), V8TestExtendedEvent::inter nalFieldCount, 0, 0, 0, 0, isolate, currentWorldType); 155 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "", V8TestEvent::GetTemplate(isolate, currentWorldType), V8TestExtendedEvent::inter nalFieldCount, 0, 0, 0, 0, isolate, currentWorldType);
156 else 156 else
157 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestEx tendedEvent", V8TestEvent::GetTemplate(isolate, currentWorldType), V8TestExtende dEvent::internalFieldCount, 157 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestEx tendedEvent", V8TestEvent::GetTemplate(isolate, currentWorldType), V8TestExtende dEvent::internalFieldCount, V8TestExtendedEventAttributes, WTF_ARRAY_LENGTH(V8Te stExtendedEventAttributes), 0, 0, isolate, currentWorldType);
158 V8TestExtendedEventAttributes, WTF_ARRAY_LENGTH(V8TestExtendedEventAttri butes),
159 0, 0, isolate, currentWorldType);
160 UNUSED_PARAM(defaultSignature); 158 UNUSED_PARAM(defaultSignature);
161 desc->SetCallHandler(V8TestExtendedEvent::constructorCallback); 159 desc->SetCallHandler(V8TestExtendedEvent::constructorCallback);
162 desc->SetLength(1); 160 desc->SetLength(1);
163 161
164 // Custom toString template 162 // Custom toString template
165 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to StringTemplate()); 163 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to StringTemplate());
166 return desc; 164 return desc;
167 } 165 }
168 166
169 v8::Handle<v8::FunctionTemplate> V8TestExtendedEvent::GetTemplate(v8::Isolate* i solate, WrapperWorldType currentWorldType) 167 v8::Handle<v8::FunctionTemplate> V8TestExtendedEvent::GetTemplate(v8::Isolate* i solate, WrapperWorldType currentWorldType)
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 } 212 }
215 213
216 void V8TestExtendedEvent::derefObject(void* object) 214 void V8TestExtendedEvent::derefObject(void* object)
217 { 215 {
218 fromInternalPointer(object)->deref(); 216 fromInternalPointer(object)->deref();
219 } 217 }
220 218
221 } // namespace WebCore 219 } // namespace WebCore
222 220
223 #endif // ENABLE(TEST) 221 #endif // ENABLE(TEST)
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestException.cpp ('k') | Source/bindings/tests/results/V8TestInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698