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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp

Issue 2181233004: [Origin Trials] Add tests for static methods on partial interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "V8TestInterfacePartial.h" 7 #include "V8TestInterfacePartial.h"
8 8
9 #include "bindings/core/v8/ExceptionState.h" 9 #include "bindings/core/v8/ExceptionState.h"
10 #include "bindings/core/v8/PrivateScriptRunner.h" 10 #include "bindings/core/v8/PrivateScriptRunner.h"
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 { 347 {
348 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 348 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
349 TestInterfacePartial4::partial4VoidMethod(*impl); 349 TestInterfacePartial4::partial4VoidMethod(*impl);
350 } 350 }
351 351
352 static void partial4VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 352 static void partial4VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
353 { 353 {
354 TestInterfaceImplementationPartialV8Internal::partial4VoidMethodMethod(info) ; 354 TestInterfaceImplementationPartialV8Internal::partial4VoidMethodMethod(info) ;
355 } 355 }
356 356
357 static void partial4StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
358 {
359 TestInterfacePartial4::partial4StaticVoidMethod();
360 }
361
362 static void partial4StaticVoidMethodMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
363 {
364 TestInterfaceImplementationPartialV8Internal::partial4StaticVoidMethodMethod (info);
365 }
366
357 } // namespace TestInterfaceImplementationPartialV8Internal 367 } // namespace TestInterfaceImplementationPartialV8Internal
358 368
359 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = { 369 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = {
360 {"partialVoidTestEnumModulesArgMethod", TestInterfaceImplementationPartialV8 Internal::partialVoidTestEnumModulesArgMethodMethodCallback, 0, 1, v8::None, V8D OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, 370 {"partialVoidTestEnumModulesArgMethod", TestInterfaceImplementationPartialV8 Internal::partialVoidTestEnumModulesArgMethodMethodCallback, 0, 1, v8::None, V8D OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype},
361 {"unscopeableVoidMethod", TestInterfaceImplementationPartialV8Internal::unsc opeableVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAl lScripts, V8DOMConfiguration::OnPrototype}, 371 {"unscopeableVoidMethod", TestInterfaceImplementationPartialV8Internal::unsc opeableVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAl lScripts, V8DOMConfiguration::OnPrototype},
362 }; 372 };
363 373
364 void V8TestInterfacePartial::installV8TestInterfaceTemplate(v8::Isolate* isolate , const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplat e) 374 void V8TestInterfacePartial::installV8TestInterfaceTemplate(v8::Isolate* isolate , const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplat e)
365 { 375 {
366 // Initialize the interface object's template. 376 // Initialize the interface object's template.
(...skipping 25 matching lines...) Expand all
392 v8::Local<v8::Function> interface = perContextData->constructorForType(&V8Te stInterface::wrapperTypeInfo); 402 v8::Local<v8::Function> interface = perContextData->constructorForType(&V8Te stInterface::wrapperTypeInfo);
393 ALLOW_UNUSED_LOCAL(interface); 403 ALLOW_UNUSED_LOCAL(interface);
394 const V8DOMConfiguration::AccessorConfiguration accessorpartial4LongAttribut eConfiguration = \ 404 const V8DOMConfiguration::AccessorConfiguration accessorpartial4LongAttribut eConfiguration = \
395 {"partial4LongAttribute", TestInterfaceImplementationPartialV8Internal:: partial4LongAttributeAttributeGetterCallback, TestInterfaceImplementationPartial V8Internal::partial4LongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllSc ripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; 405 {"partial4LongAttribute", TestInterfaceImplementationPartialV8Internal:: partial4LongAttributeAttributeGetterCallback, TestInterfaceImplementationPartial V8Internal::partial4LongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllSc ripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder};
396 V8DOMConfiguration::installAccessor(scriptState->isolate(), scriptState->wor ld(), instance, prototype, interface, signature, accessorpartial4LongAttributeCo nfiguration); 406 V8DOMConfiguration::installAccessor(scriptState->isolate(), scriptState->wor ld(), instance, prototype, interface, signature, accessorpartial4LongAttributeCo nfiguration);
397 const V8DOMConfiguration::AccessorConfiguration accessorpartial4StaticLongAt tributeConfiguration = \ 407 const V8DOMConfiguration::AccessorConfiguration accessorpartial4StaticLongAt tributeConfiguration = \
398 {"partial4StaticLongAttribute", TestInterfaceImplementationPartialV8Inte rnal::partial4StaticLongAttributeAttributeGetterCallback, TestInterfaceImplement ationPartialV8Internal::partial4StaticLongAttributeAttributeSetterCallback, 0, 0 , 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurati on::ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::Ch eckHolder}; 408 {"partial4StaticLongAttribute", TestInterfaceImplementationPartialV8Inte rnal::partial4StaticLongAttributeAttributeGetterCallback, TestInterfaceImplement ationPartialV8Internal::partial4StaticLongAttributeAttributeSetterCallback, 0, 0 , 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurati on::ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::Ch eckHolder};
399 V8DOMConfiguration::installAccessor(scriptState->isolate(), scriptState->wor ld(), instance, prototype, interface, signature, accessorpartial4StaticLongAttri buteConfiguration); 409 V8DOMConfiguration::installAccessor(scriptState->isolate(), scriptState->wor ld(), instance, prototype, interface, signature, accessorpartial4StaticLongAttri buteConfiguration);
400 const V8DOMConfiguration::ConstantConfiguration constantPartial4UnsignedShor tConfiguration = {"PARTIAL4_UNSIGNED_SHORT", 4, 0, V8DOMConfiguration::ConstantT ypeUnsignedShort}; 410 const V8DOMConfiguration::ConstantConfiguration constantPartial4UnsignedShor tConfiguration = {"PARTIAL4_UNSIGNED_SHORT", 4, 0, V8DOMConfiguration::ConstantT ypeUnsignedShort};
401 V8DOMConfiguration::installConstant(scriptState->isolate(), interface, proto type, constantPartial4UnsignedShortConfiguration); 411 V8DOMConfiguration::installConstant(scriptState->isolate(), interface, proto type, constantPartial4UnsignedShortConfiguration);
412 const V8DOMConfiguration::MethodConfiguration methodPartial4Staticvoidmethod Configuration = {"partial4StaticVoidMethod", TestInterfaceImplementationPartialV 8Internal::partial4StaticVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfigur ation::ExposedToAllScripts, V8DOMConfiguration::OnInterface};
413 V8DOMConfiguration::installMethod(scriptState->isolate(), scriptState->world (), instance, prototype, interface, signature, methodPartial4StaticvoidmethodCon figuration);
402 const V8DOMConfiguration::MethodConfiguration methodPartial4VoidmethodConfig uration = {"partial4VoidMethod", TestInterfaceImplementationPartialV8Internal::p artial4VoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAl lScripts, V8DOMConfiguration::OnPrototype}; 414 const V8DOMConfiguration::MethodConfiguration methodPartial4VoidmethodConfig uration = {"partial4VoidMethod", TestInterfaceImplementationPartialV8Internal::p artial4VoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAl lScripts, V8DOMConfiguration::OnPrototype};
403 V8DOMConfiguration::installMethod(scriptState->isolate(), scriptState->world (), instance, prototype, interface, signature, methodPartial4VoidmethodConfigura tion); 415 V8DOMConfiguration::installMethod(scriptState->isolate(), scriptState->world (), instance, prototype, interface, signature, methodPartial4VoidmethodConfigura tion);
404 } 416 }
405 417
406 void V8TestInterfacePartial::installOriginTrialPartialFeature(ScriptState* scrip tState) 418 void V8TestInterfacePartial::installOriginTrialPartialFeature(ScriptState* scrip tState)
407 { 419 {
408 installOriginTrialPartialFeature(scriptState, v8::Local<v8::Object>()); 420 installOriginTrialPartialFeature(scriptState, v8::Local<v8::Object>());
409 } 421 }
410 void V8TestInterfacePartial::preparePrototypeAndInterfaceObject(v8::Local<v8::Co ntext> context, const DOMWrapperWorld& world, v8::Local<v8::Object> prototypeObj ect, v8::Local<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> in terfaceTemplate) 422 void V8TestInterfacePartial::preparePrototypeAndInterfaceObject(v8::Local<v8::Co ntext> context, const DOMWrapperWorld& world, v8::Local<v8::Object> prototypeObj ect, v8::Local<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> in terfaceTemplate)
411 { 423 {
(...skipping 17 matching lines...) Expand all
429 &V8TestInterfacePartial::preparePrototypeAndInterfaceObject); 441 &V8TestInterfacePartial::preparePrototypeAndInterfaceObject);
430 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface( &TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); 442 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface( &TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod);
431 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver loadMethod); 443 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver loadMethod);
432 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe thod); 444 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe thod);
433 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti alOverloadMethod); 445 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti alOverloadMethod);
434 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); 446 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn terfaceImplementationPartialV8Internal::partial2VoidMethodMethod);
435 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(& TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); 447 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(& TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod);
436 } 448 }
437 449
438 } // namespace blink 450 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698