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

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

Issue 14244017: Make length property return useful values for DOM bindings functions (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Make length property return useful values for DOM bindings functions and interfaces Created 7 years, 8 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 WebKit open source project. 2 This file is part of the WebKit open source project.
3 This file has been generated by generate-bindings.pl. DO NOT MODIFY! 3 This file has been generated by generate-bindings.pl. 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestEventConstructorTempl ate(v8::Persistent<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorl dType currentWorldType) 140 static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestEventConstructorTempl ate(v8::Persistent<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorl dType currentWorldType)
141 { 141 {
142 desc->ReadOnlyPrototype(); 142 desc->ReadOnlyPrototype();
143 143
144 v8::Local<v8::Signature> defaultSignature; 144 v8::Local<v8::Signature> defaultSignature;
145 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestEventCon structor", v8::Persistent<v8::FunctionTemplate>(), V8TestEventConstructor::inter nalFieldCount, 145 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestEventCon structor", v8::Persistent<v8::FunctionTemplate>(), V8TestEventConstructor::inter nalFieldCount,
146 V8TestEventConstructorAttrs, WTF_ARRAY_LENGTH(V8TestEventConstructorAttr s), 146 V8TestEventConstructorAttrs, WTF_ARRAY_LENGTH(V8TestEventConstructorAttr s),
147 0, 0, isolate, currentWorldType); 147 0, 0, isolate, currentWorldType);
148 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used. 148 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used.
149 desc->SetCallHandler(V8TestEventConstructor::constructorCallback); 149 desc->SetCallHandler(V8TestEventConstructor::constructorCallback);
150 desc->SetLength(1);
150 151
151 152
152 // Custom toString template 153 // Custom toString template
153 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to StringTemplate()); 154 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to StringTemplate());
154 return desc; 155 return desc;
155 } 156 }
156 157
157 v8::Persistent<v8::FunctionTemplate> V8TestEventConstructor::GetTemplate(v8::Iso late* isolate, WrapperWorldType currentWorldType) 158 v8::Persistent<v8::FunctionTemplate> V8TestEventConstructor::GetTemplate(v8::Iso late* isolate, WrapperWorldType currentWorldType)
158 { 159 {
159 V8PerIsolateData* data = V8PerIsolateData::from(isolate); 160 V8PerIsolateData* data = V8PerIsolateData::from(isolate);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 installPerContextProperties(wrapper, impl.get(), isolate); 198 installPerContextProperties(wrapper, impl.get(), isolate);
198 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep endent); 199 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep endent);
199 return wrapper; 200 return wrapper;
200 } 201 }
201 void V8TestEventConstructor::derefObject(void* object) 202 void V8TestEventConstructor::derefObject(void* object)
202 { 203 {
203 static_cast<TestEventConstructor*>(object)->deref(); 204 static_cast<TestEventConstructor*>(object)->deref();
204 } 205 }
205 206
206 } // namespace WebCore 207 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698