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

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

Issue 2653883006: [bindings] Move callback functions from V8FooInternal namespace to V8Foo class (Closed)
Patch Set: Revert expose change Created 3 years, 10 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 | « third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterfacePartial.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/partial_interface.cpp.tmpl 9 // third_party/WebKit/Source/bindings/templates/partial_interface.cpp.tmpl
10 10
(...skipping 22 matching lines...) Expand all
33 namespace TestInterfaceImplementationPartialV8Internal { 33 namespace TestInterfaceImplementationPartialV8Internal {
34 34
35 static void partial4LongAttributeAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info) { 35 static void partial4LongAttributeAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info) {
36 v8::Local<v8::Object> holder = info.Holder(); 36 v8::Local<v8::Object> holder = info.Holder();
37 37
38 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 38 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
39 39
40 v8SetReturnValueInt(info, TestInterfacePartial4::partial4LongAttribute(*impl)) ; 40 v8SetReturnValueInt(info, TestInterfacePartial4::partial4LongAttribute(*impl)) ;
41 } 41 }
42 42
43 void partial4LongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info) {
44 TestInterfaceImplementationPartialV8Internal::partial4LongAttributeAttributeGe tter(info);
45 }
46
47 static void partial4LongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::FunctionCallbackInfo<v8::Value>& info) { 43 static void partial4LongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::FunctionCallbackInfo<v8::Value>& info) {
48 v8::Local<v8::Object> holder = info.Holder(); 44 v8::Local<v8::Object> holder = info.Holder();
49 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 45 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
50 46
51 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext , "TestInterface", "partial4LongAttribute"); 47 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext , "TestInterface", "partial4LongAttribute");
52 48
53 // Prepare the value to be set. 49 // Prepare the value to be set.
54 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, exception State); 50 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, exception State);
55 if (exceptionState.hadException()) 51 if (exceptionState.hadException())
56 return; 52 return;
57 53
58 TestInterfacePartial4::setPartial4LongAttribute(*impl, cppValue); 54 TestInterfacePartial4::setPartial4LongAttribute(*impl, cppValue);
59 } 55 }
60 56
61 void partial4LongAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info) {
62 v8::Local<v8::Value> v8Value = info[0];
63
64 TestInterfaceImplementationPartialV8Internal::partial4LongAttributeAttributeSe tter(v8Value, info);
65 }
66
67 static void partial4StaticLongAttributeAttributeGetter(const v8::FunctionCallbac kInfo<v8::Value>& info) { 57 static void partial4StaticLongAttributeAttributeGetter(const v8::FunctionCallbac kInfo<v8::Value>& info) {
68 v8SetReturnValueInt(info, TestInterfacePartial4::partial4StaticLongAttribute() ); 58 v8SetReturnValueInt(info, TestInterfacePartial4::partial4StaticLongAttribute() );
69 } 59 }
70 60
71 void partial4StaticLongAttributeAttributeGetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) {
72 TestInterfaceImplementationPartialV8Internal::partial4StaticLongAttributeAttri buteGetter(info);
73 }
74
75 static void partial4StaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::FunctionCallbackInfo<v8::Value>& info) { 61 static void partial4StaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::FunctionCallbackInfo<v8::Value>& info) {
76 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext , "TestInterface", "partial4StaticLongAttribute"); 62 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext , "TestInterface", "partial4StaticLongAttribute");
77 63
78 // Prepare the value to be set. 64 // Prepare the value to be set.
79 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, exception State); 65 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, exception State);
80 if (exceptionState.hadException()) 66 if (exceptionState.hadException())
81 return; 67 return;
82 68
83 TestInterfacePartial4::setPartial4StaticLongAttribute(cppValue); 69 TestInterfacePartial4::setPartial4StaticLongAttribute(cppValue);
84 } 70 }
85 71
86 void partial4StaticLongAttributeAttributeSetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) {
87 v8::Local<v8::Value> v8Value = info[0];
88
89 TestInterfaceImplementationPartialV8Internal::partial4StaticLongAttributeAttri buteSetter(v8Value, info);
90 }
91
92 static void voidMethodPartialOverload3Method(const v8::FunctionCallbackInfo<v8:: Value>& info) { 72 static void voidMethodPartialOverload3Method(const v8::FunctionCallbackInfo<v8:: Value>& info) {
93 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 73 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
94 74
95 V8StringResource<> value; 75 V8StringResource<> value;
96 value = info[0]; 76 value = info[0];
97 if (!value.prepare()) 77 if (!value.prepare())
98 return; 78 return;
99 79
100 TestInterfacePartial3Implementation::voidMethodPartialOverload(*impl, value); 80 TestInterfacePartial3Implementation::voidMethodPartialOverload(*impl, value);
101 } 81 }
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 "EnumModulesValue1", 283 "EnumModulesValue1",
304 "EnumModulesValue2", 284 "EnumModulesValue2",
305 }; 285 };
306 if (!isValidEnum(arg, validArgValues, WTF_ARRAY_LENGTH(validArgValues), "TestE numModules", exceptionState)) { 286 if (!isValidEnum(arg, validArgValues, WTF_ARRAY_LENGTH(validArgValues), "TestE numModules", exceptionState)) {
307 return; 287 return;
308 } 288 }
309 289
310 TestInterfacePartial3Implementation::partialVoidTestEnumModulesArgMethod(*impl , arg); 290 TestInterfacePartial3Implementation::partialVoidTestEnumModulesArgMethod(*impl , arg);
311 } 291 }
312 292
313 void partialVoidTestEnumModulesArgMethodMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) {
314 TestInterfaceImplementationPartialV8Internal::partialVoidTestEnumModulesArgMet hodMethod(info);
315 }
316
317 static void partial2StaticVoidMethod2Method(const v8::FunctionCallbackInfo<v8::V alue>& info) { 293 static void partial2StaticVoidMethod2Method(const v8::FunctionCallbackInfo<v8::V alue>& info) {
318 V8StringResource<> value; 294 V8StringResource<> value;
319 value = info[0]; 295 value = info[0];
320 if (!value.prepare()) 296 if (!value.prepare())
321 return; 297 return;
322 298
323 TestInterfacePartial3Implementation::partial2StaticVoidMethod(value); 299 TestInterfacePartial3Implementation::partial2StaticVoidMethod(value);
324 } 300 }
325 301
326 static void partial2StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) { 302 static void partial2StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) {
(...skipping 17 matching lines...) Expand all
344 } 320 }
345 exceptionState.throwTypeError("No function was found that matched the signatur e provided."); 321 exceptionState.throwTypeError("No function was found that matched the signatur e provided.");
346 } 322 }
347 323
348 static void unscopableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info) { 324 static void unscopableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info) {
349 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 325 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
350 326
351 TestInterfacePartial3Implementation::unscopableVoidMethod(*impl); 327 TestInterfacePartial3Implementation::unscopableVoidMethod(*impl);
352 } 328 }
353 329
354 void unscopableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info) {
355 TestInterfaceImplementationPartialV8Internal::unscopableVoidMethodMethod(info) ;
356 }
357
358 static void partial4VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { 330 static void partial4VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
359 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 331 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
360 332
361 TestInterfacePartial4::partial4VoidMethod(*impl); 333 TestInterfacePartial4::partial4VoidMethod(*impl);
362 } 334 }
363 335
364 void partial4VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value> & info) {
365 TestInterfaceImplementationPartialV8Internal::partial4VoidMethodMethod(info);
366 }
367
368 static void partial4StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) { 336 static void partial4StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) {
369 TestInterfacePartial4::partial4StaticVoidMethod(); 337 TestInterfacePartial4::partial4StaticVoidMethod();
370 } 338 }
371 339
372 void partial4StaticVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) { 340 } // namespace TestInterfaceImplementationPartialV8Internal
341
342 void V8TestInterfacePartial::partial4LongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
343 TestInterfaceImplementationPartialV8Internal::partial4LongAttributeAttributeGe tter(info);
344 }
345
346 void V8TestInterfacePartial::partial4LongAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
347 v8::Local<v8::Value> v8Value = info[0];
348
349 TestInterfaceImplementationPartialV8Internal::partial4LongAttributeAttributeSe tter(v8Value, info);
350 }
351
352 void V8TestInterfacePartial::partial4StaticLongAttributeAttributeGetterCallback( const v8::FunctionCallbackInfo<v8::Value>& info) {
353 TestInterfaceImplementationPartialV8Internal::partial4StaticLongAttributeAttri buteGetter(info);
354 }
355
356 void V8TestInterfacePartial::partial4StaticLongAttributeAttributeSetterCallback( const v8::FunctionCallbackInfo<v8::Value>& info) {
357 v8::Local<v8::Value> v8Value = info[0];
358
359 TestInterfaceImplementationPartialV8Internal::partial4StaticLongAttributeAttri buteSetter(v8Value, info);
360 }
361
362 void V8TestInterfacePartial::partialVoidTestEnumModulesArgMethodMethodCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info) {
363 TestInterfaceImplementationPartialV8Internal::partialVoidTestEnumModulesArgMet hodMethod(info);
364 }
365
366 void V8TestInterfacePartial::unscopableVoidMethodMethodCallback(const v8::Functi onCallbackInfo<v8::Value>& info) {
367 TestInterfaceImplementationPartialV8Internal::unscopableVoidMethodMethod(info) ;
368 }
369
370 void V8TestInterfacePartial::partial4VoidMethodMethodCallback(const v8::Function CallbackInfo<v8::Value>& info) {
371 TestInterfaceImplementationPartialV8Internal::partial4VoidMethodMethod(info);
372 }
373
374 void V8TestInterfacePartial::partial4StaticVoidMethodMethodCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info) {
373 TestInterfaceImplementationPartialV8Internal::partial4StaticVoidMethodMethod(i nfo); 375 TestInterfaceImplementationPartialV8Internal::partial4StaticVoidMethodMethod(i nfo);
374 } 376 }
375 377
376 } // namespace TestInterfaceImplementationPartialV8Internal
377
378 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = { 378 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = {
379 {"partialVoidTestEnumModulesArgMethod", TestInterfaceImplementationPartialV8 Internal::partialVoidTestEnumModulesArgMethodMethodCallback, 0, 1, v8::None, V8D OMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 379 {"partialVoidTestEnumModulesArgMethod", V8TestInterfacePartial::partialVoidT estEnumModulesArgMethodMethodCallback, nullptr, 1, v8::None, V8DOMConfiguration: :OnPrototype, V8DOMConfiguration::CheckHolder},
380 {"unscopableVoidMethod", TestInterfaceImplementationPartialV8Internal::unsco pableVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 380 {"unscopableVoidMethod", V8TestInterfacePartial::unscopableVoidMethodMethodC allback, nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfigurati on::CheckHolder},
381 }; 381 };
382 382
383 void V8TestInterfacePartial::installV8TestInterfaceTemplate(v8::Isolate* isolate , const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplat e) { 383 void V8TestInterfacePartial::installV8TestInterfaceTemplate(v8::Isolate* isolate , const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplat e) {
384 // Initialize the interface object's template. 384 // Initialize the interface object's template.
385 V8TestInterface::installV8TestInterfaceTemplate(isolate, world, interfaceTempl ate); 385 V8TestInterface::installV8TestInterfaceTemplate(isolate, world, interfaceTempl ate);
386 386
387 if (!RuntimeEnabledFeatures::featureNameEnabled()) { 387 if (!RuntimeEnabledFeatures::featureNameEnabled()) {
388 return; 388 return;
389 } 389 }
390 390
391 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late); 391 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late);
392 ALLOW_UNUSED_LOCAL(signature); 392 ALLOW_UNUSED_LOCAL(signature);
393 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe mplate(); 393 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe mplate();
394 ALLOW_UNUSED_LOCAL(instanceTemplate); 394 ALLOW_UNUSED_LOCAL(instanceTemplate);
395 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype Template(); 395 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype Template();
396 ALLOW_UNUSED_LOCAL(prototypeTemplate); 396 ALLOW_UNUSED_LOCAL(prototypeTemplate);
397 397
398 // Register DOM constants, attributes and operations. 398 // Register DOM constants, attributes and operations.
399 const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceConstants[] = { 399 const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceConstants[] = {
400 {"PARTIAL3_UNSIGNED_SHORT", 0, 0, V8DOMConfiguration::ConstantTypeUnsigned Short}, 400 {"PARTIAL3_UNSIGNED_SHORT", 0, 0, V8DOMConfiguration::ConstantTypeUnsigned Short},
401 }; 401 };
402 V8DOMConfiguration::installConstants(isolate, interfaceTemplate, prototypeTemp late, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants)); 402 V8DOMConfiguration::installConstants(isolate, interfaceTemplate, prototypeTemp late, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants));
403 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototype Template, interfaceTemplate, signature, V8TestInterfaceMethods, WTF_ARRAY_LENGTH (V8TestInterfaceMethods)); 403 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototype Template, interfaceTemplate, signature, V8TestInterfaceMethods, WTF_ARRAY_LENGTH (V8TestInterfaceMethods));
404 } 404 }
405 405
406 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) { 406 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) {
407 v8::Local<v8::FunctionTemplate> interfaceTemplate = V8TestInterface::wrapperTy peInfo.domTemplate(isolate, world); 407 v8::Local<v8::FunctionTemplate> interfaceTemplate = V8TestInterface::wrapperTy peInfo.domTemplate(isolate, world);
408 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late); 408 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late);
409 ALLOW_UNUSED_LOCAL(signature); 409 ALLOW_UNUSED_LOCAL(signature);
410 const V8DOMConfiguration::AccessorConfiguration accessorpartial4LongAttributeC onfiguration = {"partial4LongAttribute", TestInterfaceImplementationPartialV8Int ernal::partial4LongAttributeAttributeGetterCallback, TestInterfaceImplementation PartialV8Internal::partial4LongAttributeAttributeSetterCallback, 0, 0, nullptr, 0, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype , V8DOMConfiguration::CheckHolder}; 410 const V8DOMConfiguration::AccessorConfiguration accessorpartial4LongAttributeC onfiguration = {"partial4LongAttribute", V8TestInterfacePartial::partial4LongAtt ributeAttributeGetterCallback, V8TestInterfacePartial::partial4LongAttributeAttr ibuteSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Chec kHolder};
411 V8DOMConfiguration::installAccessor(isolate, world, instance, prototype, inter face, signature, accessorpartial4LongAttributeConfiguration); 411 V8DOMConfiguration::installAccessor(isolate, world, instance, prototype, inter face, signature, accessorpartial4LongAttributeConfiguration);
412 const V8DOMConfiguration::AccessorConfiguration accessorpartial4StaticLongAttr ibuteConfiguration = {"partial4StaticLongAttribute", TestInterfaceImplementation PartialV8Internal::partial4StaticLongAttributeAttributeGetterCallback, TestInter faceImplementationPartialV8Internal::partial4StaticLongAttributeAttributeSetterC allback, 0, 0, nullptr, 0, static_cast<v8::PropertyAttribute>(v8::None), V8DOMCo nfiguration::OnInterface, V8DOMConfiguration::CheckHolder}; 412 const V8DOMConfiguration::AccessorConfiguration accessorpartial4StaticLongAttr ibuteConfiguration = {"partial4StaticLongAttribute", V8TestInterfacePartial::par tial4StaticLongAttributeAttributeGetterCallback, V8TestInterfacePartial::partial 4StaticLongAttributeAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder};
413 V8DOMConfiguration::installAccessor(isolate, world, instance, prototype, inter face, signature, accessorpartial4StaticLongAttributeConfiguration); 413 V8DOMConfiguration::installAccessor(isolate, world, instance, prototype, inter face, signature, accessorpartial4StaticLongAttributeConfiguration);
414 const V8DOMConfiguration::ConstantConfiguration constantPartial4UnsignedShortC onfiguration = {"PARTIAL4_UNSIGNED_SHORT", 4, 0, V8DOMConfiguration::ConstantTyp eUnsignedShort}; 414 const V8DOMConfiguration::ConstantConfiguration constantPartial4UnsignedShortC onfiguration = {"PARTIAL4_UNSIGNED_SHORT", 4, 0, V8DOMConfiguration::ConstantTyp eUnsignedShort};
415 V8DOMConfiguration::installConstant(isolate, interface, prototype, constantPar tial4UnsignedShortConfiguration); 415 V8DOMConfiguration::installConstant(isolate, interface, prototype, constantPar tial4UnsignedShortConfiguration);
416 const V8DOMConfiguration::MethodConfiguration methodPartial4StaticvoidmethodCo nfiguration = {"partial4StaticVoidMethod", TestInterfaceImplementationPartialV8I nternal::partial4StaticVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfigurat ion::OnInterface, V8DOMConfiguration::CheckHolder}; 416 const V8DOMConfiguration::MethodConfiguration methodPartial4StaticvoidmethodCo nfiguration = {"partial4StaticVoidMethod", V8TestInterfacePartial::partial4Stati cVoidMethodMethodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnInterface , V8DOMConfiguration::CheckHolder};
417 V8DOMConfiguration::installMethod(isolate, world, instance, prototype, interfa ce, signature, methodPartial4StaticvoidmethodConfiguration); 417 V8DOMConfiguration::installMethod(isolate, world, instance, prototype, interfa ce, signature, methodPartial4StaticvoidmethodConfiguration);
418 const V8DOMConfiguration::MethodConfiguration methodPartial4VoidmethodConfigur ation = {"partial4VoidMethod", TestInterfaceImplementationPartialV8Internal::par tial4VoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; 418 const V8DOMConfiguration::MethodConfiguration methodPartial4VoidmethodConfigur ation = {"partial4VoidMethod", V8TestInterfacePartial::partial4VoidMethodMethodC allback, nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfigurati on::CheckHolder};
419 V8DOMConfiguration::installMethod(isolate, world, instance, prototype, interfa ce, signature, methodPartial4VoidmethodConfiguration); 419 V8DOMConfiguration::installMethod(isolate, world, instance, prototype, interfa ce, signature, methodPartial4VoidmethodConfiguration);
420 } 420 }
421 421
422 void V8TestInterfacePartial::installOriginTrialPartialFeature(ScriptState* scrip tState, v8::Local<v8::Object> instance) { 422 void V8TestInterfacePartial::installOriginTrialPartialFeature(ScriptState* scrip tState, v8::Local<v8::Object> instance) {
423 V8PerContextData* perContextData = V8PerContextData::from(scriptState->context ()); 423 V8PerContextData* perContextData = V8PerContextData::from(scriptState->context ());
424 v8::Local<v8::Object> prototype = perContextData->prototypeForType(&V8TestInte rface::wrapperTypeInfo); 424 v8::Local<v8::Object> prototype = perContextData->prototypeForType(&V8TestInte rface::wrapperTypeInfo);
425 v8::Local<v8::Function> interface = perContextData->constructorForType(&V8Test Interface::wrapperTypeInfo); 425 v8::Local<v8::Function> interface = perContextData->constructorForType(&V8Test Interface::wrapperTypeInfo);
426 ALLOW_UNUSED_LOCAL(interface); 426 ALLOW_UNUSED_LOCAL(interface);
427 installOriginTrialPartialFeature(scriptState->isolate(), scriptState->world(), instance, prototype, interface); 427 installOriginTrialPartialFeature(scriptState->isolate(), scriptState->world(), instance, prototype, interface);
428 } 428 }
(...skipping 22 matching lines...) Expand all
451 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); 451 V8TestInterfacePartial::preparePrototypeAndInterfaceObject);
452 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); 452 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod);
453 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo adMethod); 453 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo adMethod);
454 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface (&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth od); 454 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface (&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth od);
455 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial OverloadMethod); 455 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial OverloadMethod);
456 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte rfaceImplementationPartialV8Internal::partial2VoidMethodMethod); 456 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte rfaceImplementationPartialV8Internal::partial2VoidMethodMethod);
457 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); 457 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod);
458 } 458 }
459 459
460 } // namespace blink 460 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterfacePartial.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698