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

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

Issue 2805813004: bindings: Preprocess IDL types in native_value_traits_type_name(). (Closed)
Patch Set: Rebase after The Blink Rename Created 3 years, 8 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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 isArityError = true; 322 isArityError = true;
323 } 323 }
324 324
325 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::kExecutionCon text, "TestInterface", "partial2StaticVoidMethod"); 325 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::kExecutionCon text, "TestInterface", "partial2StaticVoidMethod");
326 326
327 if (isArityError) { 327 if (isArityError) {
328 } 328 }
329 exceptionState.ThrowTypeError("No function was found that matched the signatur e provided."); 329 exceptionState.ThrowTypeError("No function was found that matched the signatur e provided.");
330 } 330 }
331 331
332 static void partial2VoidTestEnumModulesRecordMethodMethod(const v8::FunctionCall backInfo<v8::Value>& info) {
333 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::kExecutionCon text, "TestInterface", "partial2VoidTestEnumModulesRecordMethod");
334
335 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
336
337 if (UNLIKELY(info.Length() < 1)) {
338 exceptionState.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info. Length()));
339 return;
340 }
341
342 Vector<std::pair<String, String>> arg;
343 arg = NativeValueTraits<IDLRecord<IDLString, IDLString>>::NativeValue(info.Get Isolate(), info[0], exceptionState);
344 if (exceptionState.HadException())
345 return;
346
347 TestInterfacePartial3Implementation::partial2VoidTestEnumModulesRecordMethod(* impl, arg);
348 }
349
332 static void unscopableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info) { 350 static void unscopableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info) {
333 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 351 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
334 352
335 TestInterfacePartial3Implementation::unscopableVoidMethod(*impl); 353 TestInterfacePartial3Implementation::unscopableVoidMethod(*impl);
336 } 354 }
337 355
338 static void unionWithTypedefMethodMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info) { 356 static void unionWithTypedefMethodMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info) {
339 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 357 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
340 358
341 UnsignedLongLongOrBooleanOrTestCallbackInterface result; 359 UnsignedLongLongOrBooleanOrTestCallbackInterface result;
(...skipping 30 matching lines...) Expand all
372 void V8TestInterfacePartial::partial4StaticLongAttributeAttributeSetterCallback( const v8::FunctionCallbackInfo<v8::Value>& info) { 390 void V8TestInterfacePartial::partial4StaticLongAttributeAttributeSetterCallback( const v8::FunctionCallbackInfo<v8::Value>& info) {
373 v8::Local<v8::Value> v8Value = info[0]; 391 v8::Local<v8::Value> v8Value = info[0];
374 392
375 TestInterfaceImplementationPartialV8Internal::partial4StaticLongAttributeAttri buteSetter(v8Value, info); 393 TestInterfaceImplementationPartialV8Internal::partial4StaticLongAttributeAttri buteSetter(v8Value, info);
376 } 394 }
377 395
378 void V8TestInterfacePartial::partialVoidTestEnumModulesArgMethodMethodCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info) { 396 void V8TestInterfacePartial::partialVoidTestEnumModulesArgMethodMethodCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info) {
379 TestInterfaceImplementationPartialV8Internal::partialVoidTestEnumModulesArgMet hodMethod(info); 397 TestInterfaceImplementationPartialV8Internal::partialVoidTestEnumModulesArgMet hodMethod(info);
380 } 398 }
381 399
400 void V8TestInterfacePartial::partial2VoidTestEnumModulesRecordMethodMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info) {
401 TestInterfaceImplementationPartialV8Internal::partial2VoidTestEnumModulesRecor dMethodMethod(info);
402 }
403
382 void V8TestInterfacePartial::unscopableVoidMethodMethodCallback(const v8::Functi onCallbackInfo<v8::Value>& info) { 404 void V8TestInterfacePartial::unscopableVoidMethodMethodCallback(const v8::Functi onCallbackInfo<v8::Value>& info) {
383 TestInterfaceImplementationPartialV8Internal::unscopableVoidMethodMethod(info) ; 405 TestInterfaceImplementationPartialV8Internal::unscopableVoidMethodMethod(info) ;
384 } 406 }
385 407
386 void V8TestInterfacePartial::unionWithTypedefMethodMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) { 408 void V8TestInterfacePartial::unionWithTypedefMethodMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) {
387 TestInterfaceImplementationPartialV8Internal::unionWithTypedefMethodMethod(inf o); 409 TestInterfaceImplementationPartialV8Internal::unionWithTypedefMethodMethod(inf o);
388 } 410 }
389 411
390 void V8TestInterfacePartial::partial4VoidMethodMethodCallback(const v8::Function CallbackInfo<v8::Value>& info) { 412 void V8TestInterfacePartial::partial4VoidMethodMethodCallback(const v8::Function CallbackInfo<v8::Value>& info) {
391 TestInterfaceImplementationPartialV8Internal::partial4VoidMethodMethod(info); 413 TestInterfaceImplementationPartialV8Internal::partial4VoidMethodMethod(info);
392 } 414 }
393 415
394 void V8TestInterfacePartial::partial4StaticVoidMethodMethodCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info) { 416 void V8TestInterfacePartial::partial4StaticVoidMethodMethodCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info) {
395 TestInterfaceImplementationPartialV8Internal::partial4StaticVoidMethodMethod(i nfo); 417 TestInterfaceImplementationPartialV8Internal::partial4StaticVoidMethodMethod(i nfo);
396 } 418 }
397 419
398 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = { 420 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = {
399 {"partialVoidTestEnumModulesArgMethod", V8TestInterfacePartial::partialVoidT estEnumModulesArgMethodMethodCallback, 1, v8::None, V8DOMConfiguration::kOnProto type, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V 8DOMConfiguration::kAllWorlds}, 421 {"partialVoidTestEnumModulesArgMethod", V8TestInterfacePartial::partialVoidT estEnumModulesArgMethodMethodCallback, 1, v8::None, V8DOMConfiguration::kOnProto type, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V 8DOMConfiguration::kAllWorlds},
422 {"partial2VoidTestEnumModulesRecordMethod", V8TestInterfacePartial::partial2 VoidTestEnumModulesRecordMethodMethodCallback, 1, v8::None, V8DOMConfiguration:: kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckA ccess, V8DOMConfiguration::kAllWorlds},
400 {"unscopableVoidMethod", V8TestInterfacePartial::unscopableVoidMethodMethodC allback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kChe ckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kAllWorlds} , 423 {"unscopableVoidMethod", V8TestInterfacePartial::unscopableVoidMethodMethodC allback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kChe ckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kAllWorlds} ,
401 {"unionWithTypedefMethod", V8TestInterfacePartial::unionWithTypedefMethodMet hodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration:: kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kAllWor lds}, 424 {"unionWithTypedefMethod", V8TestInterfacePartial::unionWithTypedefMethodMet hodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration:: kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kAllWor lds},
402 }; 425 };
403 426
404 void V8TestInterfacePartial::installV8TestInterfaceTemplate(v8::Isolate* isolate , const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplat e) { 427 void V8TestInterfacePartial::installV8TestInterfaceTemplate(v8::Isolate* isolate , const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplat e) {
405 // Initialize the interface object's template. 428 // Initialize the interface object's template.
406 V8TestInterface::installV8TestInterfaceTemplate(isolate, world, interfaceTempl ate); 429 V8TestInterface::installV8TestInterfaceTemplate(isolate, world, interfaceTempl ate);
407 430
408 if (!RuntimeEnabledFeatures::featureNameEnabled()) { 431 if (!RuntimeEnabledFeatures::featureNameEnabled()) {
409 return; 432 return;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); 510 V8TestInterfacePartial::preparePrototypeAndInterfaceObject);
488 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); 511 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod);
489 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo adMethod); 512 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo adMethod);
490 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface (&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth od); 513 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface (&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth od);
491 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial OverloadMethod); 514 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial OverloadMethod);
492 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte rfaceImplementationPartialV8Internal::partial2VoidMethodMethod); 515 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte rfaceImplementationPartialV8Internal::partial2VoidMethodMethod);
493 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); 516 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod);
494 } 517 }
495 518
496 } // namespace blink 519 } // 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