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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceOriginTrialEnabled.cpp

Issue 2717183002: Slim V8DOMConfiguration::MethodConfiguration by refactoring per-world bindings. (Closed)
Patch Set: haraken Created 3 years, 9 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. 5 // This file has been auto-generated by code_generator_v8.py.
6 // DO NOT MODIFY! 6 // DO NOT MODIFY!
7 7
8 // This file has been generated from the Jinja2 template in 8 // This file has been generated from the Jinja2 template in
9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl 9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl
10 10
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 void V8TestInterfaceOriginTrialEnabled::voidMethodPartialOverloadMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info) { 238 void V8TestInterfaceOriginTrialEnabled::voidMethodPartialOverloadMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info) {
239 TestInterfaceOriginTrialEnabledV8Internal::voidMethodPartialOverloadMethod(inf o); 239 TestInterfaceOriginTrialEnabledV8Internal::voidMethodPartialOverloadMethod(inf o);
240 } 240 }
241 241
242 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceOriginTrialEnable dAccessors[] = { 242 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceOriginTrialEnable dAccessors[] = {
243 {"doubleAttribute", V8TestInterfaceOriginTrialEnabled::doubleAttributeAttrib uteGetterCallback, V8TestInterfaceOriginTrialEnabled::doubleAttributeAttributeSe tterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttrib ute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder }, 243 {"doubleAttribute", V8TestInterfaceOriginTrialEnabled::doubleAttributeAttrib uteGetterCallback, V8TestInterfaceOriginTrialEnabled::doubleAttributeAttributeSe tterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttrib ute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder },
244 {"staticStringAttribute", V8TestInterfaceOriginTrialEnabled::staticStringAtt ributeAttributeGetterCallback, V8TestInterfaceOriginTrialEnabled::staticStringAt tributeAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast< v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnInterface, V8DOMConfigur ation::CheckHolder}, 244 {"staticStringAttribute", V8TestInterfaceOriginTrialEnabled::staticStringAtt ributeAttributeGetterCallback, V8TestInterfaceOriginTrialEnabled::staticStringAt tributeAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast< v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnInterface, V8DOMConfigur ation::CheckHolder},
245 }; 245 };
246 246
247 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceOriginTrialEnabledM ethods[] = { 247 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceOriginTrialEnabledM ethods[] = {
248 {"voidMethodDoubleArgFloatArg", V8TestInterfaceOriginTrialEnabled::voidMetho dDoubleArgFloatArgMethodCallback, nullptr, 2, v8::None, V8DOMConfiguration::OnPr ototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess}, 248 {"voidMethodDoubleArgFloatArg", V8TestInterfaceOriginTrialEnabled::voidMetho dDoubleArgFloatArgMethodCallback, 2, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConf iguration::AllWorlds},
249 {"voidMethodPartialOverload", V8TestInterfaceOriginTrialEnabled::voidMethodP artialOverloadMethodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnProtot ype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess}, 249 {"voidMethodPartialOverload", V8TestInterfaceOriginTrialEnabled::voidMethodP artialOverloadMethodCallback, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DO MConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfigur ation::AllWorlds},
250 }; 250 };
251 251
252 static void installV8TestInterfaceOriginTrialEnabledTemplate(v8::Isolate* isolat e, const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTempla te) { 252 static void installV8TestInterfaceOriginTrialEnabledTemplate(v8::Isolate* isolat e, const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTempla te) {
253 // Initialize the interface object's template. 253 // Initialize the interface object's template.
254 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate, V8TestInterfaceOriginTrialEnabled::wrapperTypeInfo.interfaceName, v8::Local<v8: :FunctionTemplate>(), V8TestInterfaceOriginTrialEnabled::internalFieldCount); 254 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate, V8TestInterfaceOriginTrialEnabled::wrapperTypeInfo.interfaceName, v8::Local<v8: :FunctionTemplate>(), V8TestInterfaceOriginTrialEnabled::internalFieldCount);
255 255
256 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late); 256 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late);
257 ALLOW_UNUSED_LOCAL(signature); 257 ALLOW_UNUSED_LOCAL(signature);
258 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe mplate(); 258 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe mplate();
259 ALLOW_UNUSED_LOCAL(instanceTemplate); 259 ALLOW_UNUSED_LOCAL(instanceTemplate);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 295
296 TestInterfaceOriginTrialEnabled* V8TestInterfaceOriginTrialEnabled::toImplWithTy peCheck(v8::Isolate* isolate, v8::Local<v8::Value> value) { 296 TestInterfaceOriginTrialEnabled* V8TestInterfaceOriginTrialEnabled::toImplWithTy peCheck(v8::Isolate* isolate, v8::Local<v8::Value> value) {
297 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value) ) : nullptr; 297 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value) ) : nullptr;
298 } 298 }
299 299
300 TestInterfaceOriginTrialEnabled* NativeValueTraits<TestInterfaceOriginTrialEnabl ed>::nativeValue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionStat e& exceptionState) { 300 TestInterfaceOriginTrialEnabled* NativeValueTraits<TestInterfaceOriginTrialEnabl ed>::nativeValue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionStat e& exceptionState) {
301 return V8TestInterfaceOriginTrialEnabled::toImplWithTypeCheck(isolate, value); 301 return V8TestInterfaceOriginTrialEnabled::toImplWithTypeCheck(isolate, value);
302 } 302 }
303 303
304 } // namespace blink 304 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698