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

Side by Side Diff: Source/bindings/tests/results/V8TestOverloadedConstructors.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: Replace [Optional] by optional 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
« no previous file with comments | « Source/bindings/tests/results/V8TestObj.cpp ('k') | Source/bindings/v8/V8DOMConfiguration.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details. 13 Library General Public License for more details.
14 14
15 You should have received a copy of the GNU Library General Public License 15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to 16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. 18 Boston, MA 02111-1307, USA.
19 */ 19 */
20 20
21 #include "config.h" 21 #include "config.h"
22 #include "V8TestOverloadedConstructors.h" 22 #include "V8TestOverloadedConstructors.h"
23 23
24 #include "BindingState.h" 24 #include "BindingState.h"
25 #include "ContextFeatures.h" 25 #include "ContextFeatures.h"
26 #include "ExceptionCode.h" 26 #include "ExceptionCode.h"
27 #include "Frame.h" 27 #include "Frame.h"
28 #include "RuntimeEnabledFeatures.h" 28 #include "RuntimeEnabledFeatures.h"
29 #include "ScriptController.h"
29 #include "V8ArrayBuffer.h" 30 #include "V8ArrayBuffer.h"
30 #include "V8ArrayBufferView.h" 31 #include "V8ArrayBufferView.h"
31 #include "V8Binding.h" 32 #include "V8Binding.h"
32 #include "V8Blob.h" 33 #include "V8Blob.h"
33 #include "V8DOMWrapper.h" 34 #include "V8DOMWrapper.h"
34 #include <wtf/ArrayBuffer.h> 35 #include <wtf/ArrayBuffer.h>
35 #include <wtf/ArrayBufferView.h> 36 #include <wtf/ArrayBufferView.h>
36 #include <wtf/UnusedParam.h> 37 #include <wtf/UnusedParam.h>
37 38
38 #if ENABLE(BINDING_INTEGRITY) 39 #if ENABLE(BINDING_INTEGRITY)
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestOverloadedConstructor sTemplate(v8::Persistent<v8::FunctionTemplate> desc, v8::Isolate* isolate, Wrapp erWorldType currentWorldType) 151 static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestOverloadedConstructor sTemplate(v8::Persistent<v8::FunctionTemplate> desc, v8::Isolate* isolate, Wrapp erWorldType currentWorldType)
151 { 152 {
152 desc->ReadOnlyPrototype(); 153 desc->ReadOnlyPrototype();
153 154
154 v8::Local<v8::Signature> defaultSignature; 155 v8::Local<v8::Signature> defaultSignature;
155 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestOverload edConstructors", v8::Persistent<v8::FunctionTemplate>(), V8TestOverloadedConstru ctors::internalFieldCount, 156 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestOverload edConstructors", v8::Persistent<v8::FunctionTemplate>(), V8TestOverloadedConstru ctors::internalFieldCount,
156 0, 0, 157 0, 0,
157 0, 0, isolate, currentWorldType); 158 0, 0, isolate, currentWorldType);
158 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used. 159 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used.
159 desc->SetCallHandler(V8TestOverloadedConstructors::constructorCallback); 160 desc->SetCallHandler(V8TestOverloadedConstructors::constructorCallback);
161 desc->SetLength(1);
160 162
161 // Custom toString template 163 // Custom toString template
162 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to StringTemplate()); 164 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to StringTemplate());
163 return desc; 165 return desc;
164 } 166 }
165 167
166 v8::Persistent<v8::FunctionTemplate> V8TestOverloadedConstructors::GetTemplate(v 8::Isolate* isolate, WrapperWorldType currentWorldType) 168 v8::Persistent<v8::FunctionTemplate> V8TestOverloadedConstructors::GetTemplate(v 8::Isolate* isolate, WrapperWorldType currentWorldType)
167 { 169 {
168 V8PerIsolateData* data = V8PerIsolateData::from(isolate); 170 V8PerIsolateData* data = V8PerIsolateData::from(isolate);
169 V8PerIsolateData::TemplateMap::iterator result = data->templateMap(currentWo rldType).find(&info); 171 V8PerIsolateData::TemplateMap::iterator result = data->templateMap(currentWo rldType).find(&info);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 installPerContextProperties(wrapper, impl.get(), isolate); 208 installPerContextProperties(wrapper, impl.get(), isolate);
207 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep endent); 209 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep endent);
208 return wrapper; 210 return wrapper;
209 } 211 }
210 void V8TestOverloadedConstructors::derefObject(void* object) 212 void V8TestOverloadedConstructors::derefObject(void* object)
211 { 213 {
212 static_cast<TestOverloadedConstructors*>(object)->deref(); 214 static_cast<TestOverloadedConstructors*>(object)->deref();
213 } 215 }
214 216
215 } // namespace WebCore 217 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestObj.cpp ('k') | Source/bindings/v8/V8DOMConfiguration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698