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

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

Issue 2749253002: bindings: Expand typedefs before generating union files. (Closed)
Patch Set: Created 3 years, 9 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. 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
11 // clang-format off 11 // clang-format off
12 #include "V8TestInterfacePartial.h" 12 #include "V8TestInterfacePartial.h"
13 13
14 #include "bindings/core/v8/ExceptionState.h" 14 #include "bindings/core/v8/ExceptionState.h"
15 #include "bindings/core/v8/IDLTypes.h" 15 #include "bindings/core/v8/IDLTypes.h"
16 #include "bindings/core/v8/NativeValueTraitsImpl.h" 16 #include "bindings/core/v8/NativeValueTraitsImpl.h"
17 #include "bindings/core/v8/ScriptPromise.h" 17 #include "bindings/core/v8/ScriptPromise.h"
18 #include "bindings/core/v8/ScriptState.h" 18 #include "bindings/core/v8/ScriptState.h"
19 #include "bindings/core/v8/V8DOMConfiguration.h" 19 #include "bindings/core/v8/V8DOMConfiguration.h"
20 #include "bindings/core/v8/V8Document.h" 20 #include "bindings/core/v8/V8Document.h"
21 #include "bindings/core/v8/V8Node.h" 21 #include "bindings/core/v8/V8Node.h"
22 #include "bindings/core/v8/V8ObjectConstructor.h" 22 #include "bindings/core/v8/V8ObjectConstructor.h"
23 #include "bindings/core/v8/V8TestCallbackInterface.h"
23 #include "bindings/core/v8/V8TestInterface.h" 24 #include "bindings/core/v8/V8TestInterface.h"
24 #include "bindings/tests/idls/modules/TestInterfacePartial3Implementation.h" 25 #include "bindings/tests/idls/modules/TestInterfacePartial3Implementation.h"
25 #include "bindings/tests/idls/modules/TestInterfacePartial4.h" 26 #include "bindings/tests/idls/modules/TestInterfacePartial4.h"
26 #include "core/dom/Document.h" 27 #include "core/dom/Document.h"
27 #include "core/origin_trials/OriginTrials.h" 28 #include "core/origin_trials/OriginTrials.h"
28 #include "platform/RuntimeEnabledFeatures.h" 29 #include "platform/RuntimeEnabledFeatures.h"
29 #include "wtf/GetPtr.h" 30 #include "wtf/GetPtr.h"
30 #include "wtf/RefPtr.h" 31 #include "wtf/RefPtr.h"
31 32
32 namespace blink { 33 namespace blink {
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 } 322 }
322 exceptionState.throwTypeError("No function was found that matched the signatur e provided."); 323 exceptionState.throwTypeError("No function was found that matched the signatur e provided.");
323 } 324 }
324 325
325 static void unscopableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info) { 326 static void unscopableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info) {
326 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 327 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
327 328
328 TestInterfacePartial3Implementation::unscopableVoidMethod(*impl); 329 TestInterfacePartial3Implementation::unscopableVoidMethod(*impl);
329 } 330 }
330 331
332 static void unionWithTypedefMethodMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info) {
333 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
334
335 UnsignedLongLongOrBooleanOrTestCallbackInterface result;
336 TestInterfacePartial3Implementation::unionWithTypedefMethod(*impl, result);
337 v8SetReturnValue(info, result);
338 }
339
331 static void partial4VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { 340 static void partial4VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
332 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 341 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
333 342
334 TestInterfacePartial4::partial4VoidMethod(*impl); 343 TestInterfacePartial4::partial4VoidMethod(*impl);
335 } 344 }
336 345
337 static void partial4StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) { 346 static void partial4StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) {
338 TestInterfacePartial4::partial4StaticVoidMethod(); 347 TestInterfacePartial4::partial4StaticVoidMethod();
339 } 348 }
340 349
(...skipping 20 matching lines...) Expand all
361 } 370 }
362 371
363 void V8TestInterfacePartial::partialVoidTestEnumModulesArgMethodMethodCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info) { 372 void V8TestInterfacePartial::partialVoidTestEnumModulesArgMethodMethodCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info) {
364 TestInterfaceImplementationPartialV8Internal::partialVoidTestEnumModulesArgMet hodMethod(info); 373 TestInterfaceImplementationPartialV8Internal::partialVoidTestEnumModulesArgMet hodMethod(info);
365 } 374 }
366 375
367 void V8TestInterfacePartial::unscopableVoidMethodMethodCallback(const v8::Functi onCallbackInfo<v8::Value>& info) { 376 void V8TestInterfacePartial::unscopableVoidMethodMethodCallback(const v8::Functi onCallbackInfo<v8::Value>& info) {
368 TestInterfaceImplementationPartialV8Internal::unscopableVoidMethodMethod(info) ; 377 TestInterfaceImplementationPartialV8Internal::unscopableVoidMethodMethod(info) ;
369 } 378 }
370 379
380 void V8TestInterfacePartial::unionWithTypedefMethodMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) {
381 TestInterfaceImplementationPartialV8Internal::unionWithTypedefMethodMethod(inf o);
382 }
383
371 void V8TestInterfacePartial::partial4VoidMethodMethodCallback(const v8::Function CallbackInfo<v8::Value>& info) { 384 void V8TestInterfacePartial::partial4VoidMethodMethodCallback(const v8::Function CallbackInfo<v8::Value>& info) {
372 TestInterfaceImplementationPartialV8Internal::partial4VoidMethodMethod(info); 385 TestInterfaceImplementationPartialV8Internal::partial4VoidMethodMethod(info);
373 } 386 }
374 387
375 void V8TestInterfacePartial::partial4StaticVoidMethodMethodCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info) { 388 void V8TestInterfacePartial::partial4StaticVoidMethodMethodCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info) {
376 TestInterfaceImplementationPartialV8Internal::partial4StaticVoidMethodMethod(i nfo); 389 TestInterfaceImplementationPartialV8Internal::partial4StaticVoidMethodMethod(i nfo);
377 } 390 }
378 391
379 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = { 392 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = {
380 {"partialVoidTestEnumModulesArgMethod", V8TestInterfacePartial::partialVoidT estEnumModulesArgMethodMethodCallback, nullptr, 1, v8::None, V8DOMConfiguration: :OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAcc ess}, 393 {"partialVoidTestEnumModulesArgMethod", V8TestInterfacePartial::partialVoidT estEnumModulesArgMethodMethodCallback, nullptr, 1, v8::None, V8DOMConfiguration: :OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAcc ess},
381 {"unscopableVoidMethod", V8TestInterfacePartial::unscopableVoidMethodMethodC allback, nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfigurati on::CheckHolder, V8DOMConfiguration::DoNotCheckAccess}, 394 {"unscopableVoidMethod", V8TestInterfacePartial::unscopableVoidMethodMethodC allback, nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfigurati on::CheckHolder, V8DOMConfiguration::DoNotCheckAccess},
395 {"unionWithTypedefMethod", V8TestInterfacePartial::unionWithTypedefMethodMet hodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfigu ration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess},
382 }; 396 };
383 397
384 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) {
385 // Initialize the interface object's template. 399 // Initialize the interface object's template.
386 V8TestInterface::installV8TestInterfaceTemplate(isolate, world, interfaceTempl ate); 400 V8TestInterface::installV8TestInterfaceTemplate(isolate, world, interfaceTempl ate);
387 401
388 if (!RuntimeEnabledFeatures::featureNameEnabled()) { 402 if (!RuntimeEnabledFeatures::featureNameEnabled()) {
389 return; 403 return;
390 } 404 }
391 405
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); 469 V8TestInterfacePartial::preparePrototypeAndInterfaceObject);
456 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); 470 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod);
457 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo adMethod); 471 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo adMethod);
458 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface (&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth od); 472 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface (&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth od);
459 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial OverloadMethod); 473 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial OverloadMethod);
460 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte rfaceImplementationPartialV8Internal::partial2VoidMethodMethod); 474 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte rfaceImplementationPartialV8Internal::partial2VoidMethodMethod);
461 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); 475 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod);
462 } 476 }
463 477
464 } // namespace blink 478 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698