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

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

Issue 2571063002: Remove Blink-in-JS (Closed)
Patch Set: Created 4 years 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 // clang-format off 8 // clang-format off
9 #include "V8TestInterfacePartial.h" 9 #include "V8TestInterfacePartial.h"
10 10
11 #include "bindings/core/v8/ExceptionState.h" 11 #include "bindings/core/v8/ExceptionState.h"
12 #include "bindings/core/v8/GeneratedCodeHelper.h" 12 #include "bindings/core/v8/GeneratedCodeHelper.h"
13 #include "bindings/core/v8/PrivateScriptRunner.h"
14 #include "bindings/core/v8/ScriptPromise.h" 13 #include "bindings/core/v8/ScriptPromise.h"
15 #include "bindings/core/v8/ScriptState.h" 14 #include "bindings/core/v8/ScriptState.h"
16 #include "bindings/core/v8/V8DOMConfiguration.h" 15 #include "bindings/core/v8/V8DOMConfiguration.h"
17 #include "bindings/core/v8/V8Document.h" 16 #include "bindings/core/v8/V8Document.h"
18 #include "bindings/core/v8/V8Node.h" 17 #include "bindings/core/v8/V8Node.h"
19 #include "bindings/core/v8/V8ObjectConstructor.h" 18 #include "bindings/core/v8/V8ObjectConstructor.h"
20 #include "bindings/core/v8/V8TestInterface.h" 19 #include "bindings/core/v8/V8TestInterface.h"
21 #include "bindings/tests/idls/modules/TestInterfacePartial3Implementation.h" 20 #include "bindings/tests/idls/modules/TestInterfacePartial3Implementation.h"
22 #include "bindings/tests/idls/modules/TestInterfacePartial4.h" 21 #include "bindings/tests/idls/modules/TestInterfacePartial4.h"
23 #include "core/dom/Document.h" 22 #include "core/dom/Document.h"
24 #include "core/frame/LocalFrame.h"
25 #include "core/origin_trials/OriginTrials.h" 23 #include "core/origin_trials/OriginTrials.h"
26 #include "platform/RuntimeEnabledFeatures.h" 24 #include "platform/RuntimeEnabledFeatures.h"
27 #include "platform/ScriptForbiddenScope.h"
28 #include "wtf/GetPtr.h" 25 #include "wtf/GetPtr.h"
29 #include "wtf/RefPtr.h" 26 #include "wtf/RefPtr.h"
30 27
31 namespace blink { 28 namespace blink {
32 29
33 namespace TestInterfaceImplementationPartialV8Internal { 30 namespace TestInterfaceImplementationPartialV8Internal {
34 31
35 static void partial4LongAttributeAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info) { 32 static void partial4LongAttributeAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info) {
36 v8::Local<v8::Object> holder = info.Holder(); 33 v8::Local<v8::Object> holder = info.Holder();
37 34
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 TestInterfacePartial4::partial4StaticVoidMethod(); 366 TestInterfacePartial4::partial4StaticVoidMethod();
370 } 367 }
371 368
372 void partial4StaticVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) { 369 void partial4StaticVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) {
373 TestInterfaceImplementationPartialV8Internal::partial4StaticVoidMethodMethod(i nfo); 370 TestInterfaceImplementationPartialV8Internal::partial4StaticVoidMethodMethod(i nfo);
374 } 371 }
375 372
376 } // namespace TestInterfaceImplementationPartialV8Internal 373 } // namespace TestInterfaceImplementationPartialV8Internal
377 374
378 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = { 375 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = {
379 {"partialVoidTestEnumModulesArgMethod", TestInterfaceImplementationPartialV8 Internal::partialVoidTestEnumModulesArgMethodMethodCallback, 0, 1, v8::None, V8D OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConf iguration::CheckHolder}, 376 {"partialVoidTestEnumModulesArgMethod", TestInterfaceImplementationPartialV8 Internal::partialVoidTestEnumModulesArgMethodMethodCallback, 0, 1, v8::None, V8D OMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
380 {"unscopableVoidMethod", TestInterfaceImplementationPartialV8Internal::unsco pableVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllS cripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 377 {"unscopableVoidMethod", TestInterfaceImplementationPartialV8Internal::unsco pableVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
381 }; 378 };
382 379
383 void V8TestInterfacePartial::installV8TestInterfaceTemplate(v8::Isolate* isolate , const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplat e) { 380 void V8TestInterfacePartial::installV8TestInterfaceTemplate(v8::Isolate* isolate , const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplat e) {
384 // Initialize the interface object's template. 381 // Initialize the interface object's template.
385 V8TestInterface::installV8TestInterfaceTemplate(isolate, world, interfaceTempl ate); 382 V8TestInterface::installV8TestInterfaceTemplate(isolate, world, interfaceTempl ate);
386 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late); 383 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late);
387 ALLOW_UNUSED_LOCAL(signature); 384 ALLOW_UNUSED_LOCAL(signature);
388 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe mplate(); 385 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe mplate();
389 ALLOW_UNUSED_LOCAL(instanceTemplate); 386 ALLOW_UNUSED_LOCAL(instanceTemplate);
390 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype Template(); 387 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype Template();
391 ALLOW_UNUSED_LOCAL(prototypeTemplate); 388 ALLOW_UNUSED_LOCAL(prototypeTemplate);
392 389
393 // Register DOM constants, attributes and operations. 390 // Register DOM constants, attributes and operations.
394 if (RuntimeEnabledFeatures::featureNameEnabled()) { 391 if (RuntimeEnabledFeatures::featureNameEnabled()) {
395 const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceConstants[] = { 392 const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceConstants[] = {
396 {"PARTIAL3_UNSIGNED_SHORT", 0, 0, V8DOMConfiguration::ConstantTypeUnsi gnedShort}, 393 {"PARTIAL3_UNSIGNED_SHORT", 0, 0, V8DOMConfiguration::ConstantTypeUnsi gnedShort},
397 }; 394 };
398 V8DOMConfiguration::installConstants(isolate, interfaceTemplate, prototype Template, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants)); 395 V8DOMConfiguration::installConstants(isolate, interfaceTemplate, prototype Template, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants));
399 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, proto typeTemplate, interfaceTemplate, signature, V8TestInterfaceMethods, WTF_ARRAY_LE NGTH(V8TestInterfaceMethods)); 396 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, proto typeTemplate, interfaceTemplate, signature, V8TestInterfaceMethods, WTF_ARRAY_LE NGTH(V8TestInterfaceMethods));
400 } 397 }
401 } 398 }
402 399
403 void V8TestInterfacePartial::installOriginTrialPartialFeature(v8::Isolate* isola te, const DOMWrapperWorld& world, v8::Local<v8::Object> instance, v8::Local<v8:: Object> prototype, v8::Local<v8::Function> interface) { 400 void V8TestInterfacePartial::installOriginTrialPartialFeature(v8::Isolate* isola te, const DOMWrapperWorld& world, v8::Local<v8::Object> instance, v8::Local<v8:: Object> prototype, v8::Local<v8::Function> interface) {
404 v8::Local<v8::FunctionTemplate> interfaceTemplate = V8TestInterface::wrapperTy peInfo.domTemplate(isolate, world); 401 v8::Local<v8::FunctionTemplate> interfaceTemplate = V8TestInterface::wrapperTy peInfo.domTemplate(isolate, world);
405 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late); 402 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late);
406 ALLOW_UNUSED_LOCAL(signature); 403 ALLOW_UNUSED_LOCAL(signature);
407 const V8DOMConfiguration::AccessorConfiguration accessorpartial4LongAttributeC onfiguration = {"partial4LongAttribute", TestInterfaceImplementationPartialV8Int ernal::partial4LongAttributeAttributeGetterCallback, TestInterfaceImplementation PartialV8Internal::partial4LongAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration ::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Chec kHolder}; 404 const V8DOMConfiguration::AccessorConfiguration accessorpartial4LongAttributeC onfiguration = {"partial4LongAttribute", TestInterfaceImplementationPartialV8Int ernal::partial4LongAttributeAttributeGetterCallback, TestInterfaceImplementation PartialV8Internal::partial4LongAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration ::OnPrototype, V8DOMConfiguration::CheckHolder};
408 V8DOMConfiguration::installAccessor(isolate, world, instance, prototype, inter face, signature, accessorpartial4LongAttributeConfiguration); 405 V8DOMConfiguration::installAccessor(isolate, world, instance, prototype, inter face, signature, accessorpartial4LongAttributeConfiguration);
409 const V8DOMConfiguration::AccessorConfiguration accessorpartial4StaticLongAttr ibuteConfiguration = {"partial4StaticLongAttribute", TestInterfaceImplementation PartialV8Internal::partial4StaticLongAttributeAttributeGetterCallback, TestInter faceImplementationPartialV8Internal::partial4StaticLongAttributeAttributeSetterC allback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::N one), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder}; 406 const V8DOMConfiguration::AccessorConfiguration accessorpartial4StaticLongAttr ibuteConfiguration = {"partial4StaticLongAttribute", TestInterfaceImplementation PartialV8Internal::partial4StaticLongAttributeAttributeGetterCallback, TestInter faceImplementationPartialV8Internal::partial4StaticLongAttributeAttributeSetterC allback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::N one), V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder};
410 V8DOMConfiguration::installAccessor(isolate, world, instance, prototype, inter face, signature, accessorpartial4StaticLongAttributeConfiguration); 407 V8DOMConfiguration::installAccessor(isolate, world, instance, prototype, inter face, signature, accessorpartial4StaticLongAttributeConfiguration);
411 const V8DOMConfiguration::ConstantConfiguration constantPartial4UnsignedShortC onfiguration = {"PARTIAL4_UNSIGNED_SHORT", 4, 0, V8DOMConfiguration::ConstantTyp eUnsignedShort}; 408 const V8DOMConfiguration::ConstantConfiguration constantPartial4UnsignedShortC onfiguration = {"PARTIAL4_UNSIGNED_SHORT", 4, 0, V8DOMConfiguration::ConstantTyp eUnsignedShort};
412 V8DOMConfiguration::installConstant(isolate, interface, prototype, constantPar tial4UnsignedShortConfiguration); 409 V8DOMConfiguration::installConstant(isolate, interface, prototype, constantPar tial4UnsignedShortConfiguration);
413 const V8DOMConfiguration::MethodConfiguration methodPartial4StaticvoidmethodCo nfiguration = {"partial4StaticVoidMethod", TestInterfaceImplementationPartialV8I nternal::partial4StaticVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfigurat ion::ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::C heckHolder}; 410 const V8DOMConfiguration::MethodConfiguration methodPartial4StaticvoidmethodCo nfiguration = {"partial4StaticVoidMethod", TestInterfaceImplementationPartialV8I nternal::partial4StaticVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfigurat ion::OnInterface, V8DOMConfiguration::CheckHolder};
414 V8DOMConfiguration::installMethod(isolate, world, instance, prototype, interfa ce, signature, methodPartial4StaticvoidmethodConfiguration); 411 V8DOMConfiguration::installMethod(isolate, world, instance, prototype, interfa ce, signature, methodPartial4StaticvoidmethodConfiguration);
415 const V8DOMConfiguration::MethodConfiguration methodPartial4VoidmethodConfigur ation = {"partial4VoidMethod", TestInterfaceImplementationPartialV8Internal::par tial4VoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllS cripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; 412 const V8DOMConfiguration::MethodConfiguration methodPartial4VoidmethodConfigur ation = {"partial4VoidMethod", TestInterfaceImplementationPartialV8Internal::par tial4VoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder};
416 V8DOMConfiguration::installMethod(isolate, world, instance, prototype, interfa ce, signature, methodPartial4VoidmethodConfiguration); 413 V8DOMConfiguration::installMethod(isolate, world, instance, prototype, interfa ce, signature, methodPartial4VoidmethodConfiguration);
417 } 414 }
418 415
419 void V8TestInterfacePartial::installOriginTrialPartialFeature(ScriptState* scrip tState, v8::Local<v8::Object> instance) { 416 void V8TestInterfacePartial::installOriginTrialPartialFeature(ScriptState* scrip tState, v8::Local<v8::Object> instance) {
420 V8PerContextData* perContextData = V8PerContextData::from(scriptState->context ()); 417 V8PerContextData* perContextData = V8PerContextData::from(scriptState->context ());
421 v8::Local<v8::Object> prototype = perContextData->prototypeForType(&V8TestInte rface::wrapperTypeInfo); 418 v8::Local<v8::Object> prototype = perContextData->prototypeForType(&V8TestInte rface::wrapperTypeInfo);
422 v8::Local<v8::Function> interface = perContextData->constructorForType(&V8Test Interface::wrapperTypeInfo); 419 v8::Local<v8::Function> interface = perContextData->constructorForType(&V8Test Interface::wrapperTypeInfo);
423 ALLOW_UNUSED_LOCAL(interface); 420 ALLOW_UNUSED_LOCAL(interface);
424 installOriginTrialPartialFeature(scriptState->isolate(), scriptState->world(), instance, prototype, interface); 421 installOriginTrialPartialFeature(scriptState->isolate(), scriptState->world(), instance, prototype, interface);
425 } 422 }
(...skipping 23 matching lines...) Expand all
449 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); 446 V8TestInterfacePartial::preparePrototypeAndInterfaceObject);
450 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); 447 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod);
451 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo adMethod); 448 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo adMethod);
452 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface (&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth od); 449 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface (&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth od);
453 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial OverloadMethod); 450 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial OverloadMethod);
454 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte rfaceImplementationPartialV8Internal::partial2VoidMethodMethod); 451 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte rfaceImplementationPartialV8Internal::partial2VoidMethodMethod);
455 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); 452 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod);
456 } 453 }
457 454
458 } // namespace blink 455 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698