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

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

Issue 2341673004: [Binding] Replace 'Unscopeable' with 'Unscopable' (Closed)
Patch Set: . Created 4 years, 3 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/GeneratedCodeHelper.h" 10 #include "bindings/core/v8/GeneratedCodeHelper.h"
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 isArityError = true; 347 isArityError = true;
348 } 348 }
349 349
350 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestInterface", "partial2StaticVoidMethod"); 350 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestInterface", "partial2StaticVoidMethod");
351 351
352 if (isArityError) { 352 if (isArityError) {
353 } 353 }
354 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 354 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
355 } 355 }
356 356
357 static void unscopeableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 357 static void unscopableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
358 { 358 {
359 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 359 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
360 360
361 TestInterfacePartial3Implementation::unscopeableVoidMethod(*impl); 361 TestInterfacePartial3Implementation::unscopableVoidMethod(*impl);
362 } 362 }
363 363
364 static void unscopeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 364 static void unscopableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
365 { 365 {
366 TestInterfaceImplementationPartialV8Internal::unscopeableVoidMethodMethod(in fo); 366 TestInterfaceImplementationPartialV8Internal::unscopableVoidMethodMethod(inf o);
367 } 367 }
368 368
369 static void partial4VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 369 static void partial4VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
370 { 370 {
371 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 371 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
372 372
373 TestInterfacePartial4::partial4VoidMethod(*impl); 373 TestInterfacePartial4::partial4VoidMethod(*impl);
374 } 374 }
375 375
376 static void partial4VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 376 static void partial4VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
377 { 377 {
378 TestInterfaceImplementationPartialV8Internal::partial4VoidMethodMethod(info) ; 378 TestInterfaceImplementationPartialV8Internal::partial4VoidMethodMethod(info) ;
379 } 379 }
380 380
381 static void partial4StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 381 static void partial4StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
382 { 382 {
383 TestInterfacePartial4::partial4StaticVoidMethod(); 383 TestInterfacePartial4::partial4StaticVoidMethod();
384 } 384 }
385 385
386 static void partial4StaticVoidMethodMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 386 static void partial4StaticVoidMethodMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
387 { 387 {
388 TestInterfaceImplementationPartialV8Internal::partial4StaticVoidMethodMethod (info); 388 TestInterfaceImplementationPartialV8Internal::partial4StaticVoidMethodMethod (info);
389 } 389 }
390 390
391 } // namespace TestInterfaceImplementationPartialV8Internal 391 } // namespace TestInterfaceImplementationPartialV8Internal
392 392
393 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = { 393 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = {
394 {"partialVoidTestEnumModulesArgMethod", TestInterfaceImplementationPartialV8 Internal::partialVoidTestEnumModulesArgMethodMethodCallback, 0, 1, v8::None, V8D OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, 394 {"partialVoidTestEnumModulesArgMethod", TestInterfaceImplementationPartialV8 Internal::partialVoidTestEnumModulesArgMethodMethodCallback, 0, 1, v8::None, V8D OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype},
395 {"unscopeableVoidMethod", TestInterfaceImplementationPartialV8Internal::unsc opeableVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAl lScripts, V8DOMConfiguration::OnPrototype}, 395 {"unscopableVoidMethod", TestInterfaceImplementationPartialV8Internal::unsco pableVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllS cripts, V8DOMConfiguration::OnPrototype},
396 }; 396 };
397 397
398 void V8TestInterfacePartial::installV8TestInterfaceTemplate(v8::Isolate* isolate , const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplat e) 398 void V8TestInterfacePartial::installV8TestInterfaceTemplate(v8::Isolate* isolate , const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplat e)
399 { 399 {
400 // Initialize the interface object's template. 400 // Initialize the interface object's template.
401 V8TestInterface::installV8TestInterfaceTemplate(isolate, world, interfaceTem plate); 401 V8TestInterface::installV8TestInterfaceTemplate(isolate, world, interfaceTem plate);
402 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTe mplate); 402 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTe mplate);
403 ALLOW_UNUSED_LOCAL(signature); 403 ALLOW_UNUSED_LOCAL(signature);
404 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->Instance Template(); 404 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->Instance Template();
405 ALLOW_UNUSED_LOCAL(instanceTemplate); 405 ALLOW_UNUSED_LOCAL(instanceTemplate);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 void V8TestInterfacePartial::installOriginTrialPartialFeature(ScriptState* scrip tState) 441 void V8TestInterfacePartial::installOriginTrialPartialFeature(ScriptState* scrip tState)
442 { 442 {
443 installOriginTrialPartialFeature(scriptState, v8::Local<v8::Object>()); 443 installOriginTrialPartialFeature(scriptState, v8::Local<v8::Object>());
444 } 444 }
445 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) 445 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)
446 { 446 {
447 #error No one is currently using a partial interface with context-dependent prop erties. If you\'re planning to use it, please consult with the binding team: <b link-reviews-bindings@chromium.org> 447 #error No one is currently using a partial interface with context-dependent prop erties. If you\'re planning to use it, please consult with the binding team: <b link-reviews-bindings@chromium.org>
448 V8TestInterface::preparePrototypeAndInterfaceObject(context, world, prototyp eObject, interfaceObject, interfaceTemplate); 448 V8TestInterface::preparePrototypeAndInterfaceObject(context, world, prototyp eObject, interfaceObject, interfaceTemplate);
449 v8::Isolate* isolate = context->GetIsolate(); 449 v8::Isolate* isolate = context->GetIsolate();
450 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate)); 450 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate));
451 v8::Local<v8::Object> unscopeables; 451 v8::Local<v8::Object> unscopables;
452 if (v8CallBoolean(prototypeObject->HasOwnProperty(context, unscopablesSymbol ))) 452 if (v8CallBoolean(prototypeObject->HasOwnProperty(context, unscopablesSymbol )))
453 unscopeables = prototypeObject->Get(context, unscopablesSymbol).ToLocalC hecked().As<v8::Object>(); 453 unscopables = prototypeObject->Get(context, unscopablesSymbol).ToLocalCh ecked().As<v8::Object>();
454 else 454 else
455 unscopeables = v8::Object::New(isolate); 455 unscopables = v8::Object::New(isolate);
456 unscopeables->CreateDataProperty(context, v8AtomicString(isolate, "unscopeab leVoidMethod"), v8::True(isolate)).FromJust(); 456 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopable VoidMethod"), v8::True(isolate)).FromJust();
457 prototypeObject->CreateDataProperty(context, unscopablesSymbol, unscopeables ).FromJust(); 457 prototypeObject->CreateDataProperty(context, unscopablesSymbol, unscopables) .FromJust();
458 } 458 }
459 459
460 void V8TestInterfacePartial::initialize() 460 void V8TestInterfacePartial::initialize()
461 { 461 {
462 // Should be invoked from ModulesInitializer. 462 // Should be invoked from ModulesInitializer.
463 V8TestInterface::updateWrapperTypeInfo( 463 V8TestInterface::updateWrapperTypeInfo(
464 &V8TestInterfacePartial::installV8TestInterfaceTemplate, 464 &V8TestInterfacePartial::installV8TestInterfaceTemplate,
465 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); 465 V8TestInterfacePartial::preparePrototypeAndInterfaceObject);
466 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface( &TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); 466 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface( &TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod);
467 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver loadMethod); 467 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver loadMethod);
468 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe thod); 468 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe thod);
469 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti alOverloadMethod); 469 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti alOverloadMethod);
470 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); 470 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn terfaceImplementationPartialV8Internal::partial2VoidMethodMethod);
471 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(& TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); 471 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(& TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod);
472 } 472 }
473 473
474 } // namespace blink 474 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698