| OLD | NEW | 
|---|
| 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 "config.h" | 7 #include "config.h" | 
| 8 #if ENABLE(CONDITION) | 8 #if ENABLE(CONDITION) | 
| 9 #include "V8TestInterface5.h" | 9 #include "V8TestInterface5.h" | 
| 10 | 10 | 
| (...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 574     impl->voidMethodDoubleOrDOMStringArg(arg); | 574     impl->voidMethodDoubleOrDOMStringArg(arg); | 
| 575 } | 575 } | 
| 576 | 576 | 
| 577 static void voidMethodDoubleOrDOMStringArgMethodCallback(const v8::FunctionCallb
     ackInfo<v8::Value>& info) | 577 static void voidMethodDoubleOrDOMStringArgMethodCallback(const v8::FunctionCallb
     ackInfo<v8::Value>& info) | 
| 578 { | 578 { | 
| 579     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 579     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 
| 580     TestInterface5ImplementationV8Internal::voidMethodDoubleOrDOMStringArgMethod
     (info); | 580     TestInterface5ImplementationV8Internal::voidMethodDoubleOrDOMStringArgMethod
     (info); | 
| 581     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 581     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 
| 582 } | 582 } | 
| 583 | 583 | 
|  | 584 static void keysMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 
|  | 585 { | 
|  | 586     ExceptionState exceptionState(ExceptionState::ExecutionContext, "keys", "Tes
     tInterface5", info.Holder(), info.GetIsolate()); | 
|  | 587     TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
     ; | 
|  | 588     ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 
|  | 589     RawPtr<Iterator> result = impl->keys(scriptState, exceptionState); | 
|  | 590     if (exceptionState.hadException()) { | 
|  | 591         exceptionState.throwIfNeeded(); | 
|  | 592         return; | 
|  | 593     } | 
|  | 594     v8SetReturnValue(info, result.release()); | 
|  | 595 } | 
|  | 596 | 
|  | 597 static void keysMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 
|  | 598 { | 
|  | 599     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 
|  | 600     TestInterface5ImplementationV8Internal::keysMethod(info); | 
|  | 601     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 
|  | 602 } | 
|  | 603 | 
|  | 604 static void valuesMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 
|  | 605 { | 
|  | 606     ExceptionState exceptionState(ExceptionState::ExecutionContext, "values", "T
     estInterface5", info.Holder(), info.GetIsolate()); | 
|  | 607     TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
     ; | 
|  | 608     ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 
|  | 609     RawPtr<Iterator> result = impl->values(scriptState, exceptionState); | 
|  | 610     if (exceptionState.hadException()) { | 
|  | 611         exceptionState.throwIfNeeded(); | 
|  | 612         return; | 
|  | 613     } | 
|  | 614     v8SetReturnValue(info, result.release()); | 
|  | 615 } | 
|  | 616 | 
|  | 617 static void valuesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info
     ) | 
|  | 618 { | 
|  | 619     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 
|  | 620     TestInterface5ImplementationV8Internal::valuesMethod(info); | 
|  | 621     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 
|  | 622 } | 
|  | 623 | 
|  | 624 static void entriesMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 
|  | 625 { | 
|  | 626     ExceptionState exceptionState(ExceptionState::ExecutionContext, "entries", "
     TestInterface5", info.Holder(), info.GetIsolate()); | 
|  | 627     TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
     ; | 
|  | 628     ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 
|  | 629     RawPtr<Iterator> result = impl->entries(scriptState, exceptionState); | 
|  | 630     if (exceptionState.hadException()) { | 
|  | 631         exceptionState.throwIfNeeded(); | 
|  | 632         return; | 
|  | 633     } | 
|  | 634     v8SetReturnValue(info, result.release()); | 
|  | 635 } | 
|  | 636 | 
|  | 637 static void entriesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& inf
     o) | 
|  | 638 { | 
|  | 639     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 
|  | 640     TestInterface5ImplementationV8Internal::entriesMethod(info); | 
|  | 641     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 
|  | 642 } | 
|  | 643 | 
| 584 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 644 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 
| 585 { | 645 { | 
| 586     TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
     ; | 646     TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
     ; | 
| 587     v8SetReturnValueString(info, impl->toString(), info.GetIsolate()); | 647     v8SetReturnValueString(info, impl->toString(), info.GetIsolate()); | 
| 588 } | 648 } | 
| 589 | 649 | 
| 590 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in
     fo) | 650 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in
     fo) | 
| 591 { | 651 { | 
| 592     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 652     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 
| 593     TestInterface5ImplementationV8Internal::toStringMethod(info); | 653     TestInterface5ImplementationV8Internal::toStringMethod(info); | 
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 802 }; | 862 }; | 
| 803 | 863 | 
| 804 static const V8DOMConfiguration::MethodConfiguration V8TestInterface5Methods[] =
      { | 864 static const V8DOMConfiguration::MethodConfiguration V8TestInterface5Methods[] =
      { | 
| 805     {"voidMethodTestInterfaceEmptyArg", TestInterface5ImplementationV8Internal::
     voidMethodTestInterfaceEmptyArgMethodCallback, 0, 1, V8DOMConfiguration::Exposed
     ToAllScripts}, | 865     {"voidMethodTestInterfaceEmptyArg", TestInterface5ImplementationV8Internal::
     voidMethodTestInterfaceEmptyArgMethodCallback, 0, 1, V8DOMConfiguration::Exposed
     ToAllScripts}, | 
| 806     {"voidMethodDoubleArgFloatArg", TestInterface5ImplementationV8Internal::void
     MethodDoubleArgFloatArgMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAllScr
     ipts}, | 866     {"voidMethodDoubleArgFloatArg", TestInterface5ImplementationV8Internal::void
     MethodDoubleArgFloatArgMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAllScr
     ipts}, | 
| 807     {"voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg", TestInterface5Implem
     entationV8Internal::voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCal
     lback, 0, 2, V8DOMConfiguration::ExposedToAllScripts}, | 867     {"voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg", TestInterface5Implem
     entationV8Internal::voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCal
     lback, 0, 2, V8DOMConfiguration::ExposedToAllScripts}, | 
| 808     {"voidMethod", TestInterface5ImplementationV8Internal::voidMethodMethodCallb
     ack, TestInterface5ImplementationV8Internal::voidMethodMethodCallbackForMainWorl
     d, 0, V8DOMConfiguration::ExposedToAllScripts}, | 868     {"voidMethod", TestInterface5ImplementationV8Internal::voidMethodMethodCallb
     ack, TestInterface5ImplementationV8Internal::voidMethodMethodCallbackForMainWorl
     d, 0, V8DOMConfiguration::ExposedToAllScripts}, | 
| 809     {"alwaysExposedMethod", TestInterface5ImplementationV8Internal::alwaysExpose
     dMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 869     {"alwaysExposedMethod", TestInterface5ImplementationV8Internal::alwaysExpose
     dMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 
| 810     {"voidMethodBooleanOrDOMStringArg", TestInterface5ImplementationV8Internal::
     voidMethodBooleanOrDOMStringArgMethodCallback, 0, 1, V8DOMConfiguration::Exposed
     ToAllScripts}, | 870     {"voidMethodBooleanOrDOMStringArg", TestInterface5ImplementationV8Internal::
     voidMethodBooleanOrDOMStringArgMethodCallback, 0, 1, V8DOMConfiguration::Exposed
     ToAllScripts}, | 
| 811     {"voidMethodDoubleOrDOMStringArg", TestInterface5ImplementationV8Internal::v
     oidMethodDoubleOrDOMStringArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedTo
     AllScripts}, | 871     {"voidMethodDoubleOrDOMStringArg", TestInterface5ImplementationV8Internal::v
     oidMethodDoubleOrDOMStringArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedTo
     AllScripts}, | 
|  | 872     {"keys", TestInterface5ImplementationV8Internal::keysMethodCallback, 0, 0, V
     8DOMConfiguration::ExposedToAllScripts}, | 
|  | 873     {"values", TestInterface5ImplementationV8Internal::valuesMethodCallback, 0, 
     0, V8DOMConfiguration::ExposedToAllScripts}, | 
|  | 874     {"entries", TestInterface5ImplementationV8Internal::entriesMethodCallback, 0
     , 0, V8DOMConfiguration::ExposedToAllScripts}, | 
| 812 }; | 875 }; | 
| 813 | 876 | 
| 814 static void installV8TestInterface5Template(v8::Local<v8::FunctionTemplate> func
     tionTemplate, v8::Isolate* isolate) | 877 static void installV8TestInterface5Template(v8::Local<v8::FunctionTemplate> func
     tionTemplate, v8::Isolate* isolate) | 
| 815 { | 878 { | 
| 816     functionTemplate->ReadOnlyPrototype(); | 879     functionTemplate->ReadOnlyPrototype(); | 
| 817 | 880 | 
| 818     v8::Local<v8::Signature> defaultSignature; | 881     v8::Local<v8::Signature> defaultSignature; | 
| 819     if (!RuntimeEnabledFeatures::featureNameEnabled()) | 882     if (!RuntimeEnabledFeatures::featureNameEnabled()) | 
| 820         defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, 
     functionTemplate, "", V8TestInterfaceEmpty::domTemplate(isolate), V8TestInterfac
     e5::internalFieldCount, 0, 0, 0, 0, 0, 0); | 883         defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, 
     functionTemplate, "", V8TestInterfaceEmpty::domTemplate(isolate), V8TestInterfac
     e5::internalFieldCount, 0, 0, 0, 0, 0, 0); | 
| 821     else | 884     else | 
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 927     scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); | 990     scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); | 
| 928 } | 991 } | 
| 929 | 992 | 
| 930 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) | 993 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) | 
| 931 { | 994 { | 
| 932     scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); | 995     scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); | 
| 933 } | 996 } | 
| 934 | 997 | 
| 935 } // namespace blink | 998 } // namespace blink | 
| 936 #endif // ENABLE(CONDITION) | 999 #endif // ENABLE(CONDITION) | 
| OLD | NEW | 
|---|