OLD | NEW |
1 {% extends 'interface_base.cpp.tmpl' %} | 1 {% extends 'interface_base.cpp.tmpl' %} |
2 | 2 |
3 {##############################################################################} | 3 {##############################################################################} |
4 {% block indexed_property_getter %} | 4 {% block indexed_property_getter %} |
5 {% if indexed_property_getter and not indexed_property_getter.is_custom %} | 5 {% if indexed_property_getter and not indexed_property_getter.is_custom %} |
6 {% set getter = indexed_property_getter %} | 6 {% set getter = indexed_property_getter %} |
7 static void indexedPropertyGetter(uint32_t index, const v8::PropertyCallbackInfo
<v8::Value>& info) { | 7 static void indexedPropertyGetter(uint32_t index, const v8::PropertyCallbackInfo
<v8::Value>& info) { |
8 {% if getter.is_raises_exception %} | 8 {% if getter.is_raises_exception %} |
9 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::kIndexedGette
rContext, "{{interface_name}}"); | 9 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::kIndexedGette
rContext, "{{interface_name}}"); |
10 {% endif %} | 10 {% endif %} |
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
913 } | 913 } |
914 | 914 |
915 {% endblock %} | 915 {% endblock %} |
916 | 916 |
917 | 917 |
918 {##############################################################################} | 918 {##############################################################################} |
919 {% block partial_interface %} | 919 {% block partial_interface %} |
920 {% if has_partial_interface %} | 920 {% if has_partial_interface %} |
921 {% if needs_runtime_enabled_installer %} | 921 {% if needs_runtime_enabled_installer %} |
922 InstallRuntimeEnabledFunction {{v8_class}}::install{{v8_class}}RuntimeEnabledFun
ction = | 922 InstallRuntimeEnabledFunction {{v8_class}}::install{{v8_class}}RuntimeEnabledFun
ction = |
923 &{{v8_class}}::installRuntimeEnabledFeatures; | 923 &{{v8_class}}::InstallRuntimeEnabledFeatures; |
924 {% endif %} | 924 {% endif %} |
925 | 925 |
926 InstallTemplateFunction {{v8_class}}::install{{v8_class}}TemplateFunction = | 926 InstallTemplateFunction {{v8_class}}::install{{v8_class}}TemplateFunction = |
927 &{{v8_class}}::install{{v8_class}}Template; | 927 &{{v8_class}}::install{{v8_class}}Template; |
928 | 928 |
929 void {{v8_class}}::updateWrapperTypeInfo( | 929 void {{v8_class}}::updateWrapperTypeInfo( |
930 InstallTemplateFunction installTemplateFunction, | 930 InstallTemplateFunction installTemplateFunction, |
931 InstallRuntimeEnabledFunction installRuntimeEnabledFunction, | 931 InstallRuntimeEnabledFunction installRuntimeEnabledFunction, |
932 PreparePrototypeAndInterfaceObjectFunction preparePrototypeAndInterfaceObjec
tFunction) { | 932 PreparePrototypeAndInterfaceObjectFunction preparePrototypeAndInterfaceObjec
tFunction) { |
933 ALLOW_UNUSED_LOCAL(installRuntimeEnabledFunction); | 933 ALLOW_UNUSED_LOCAL(installRuntimeEnabledFunction); |
(...skipping 12 matching lines...) Expand all Loading... |
946 } | 946 } |
947 | 947 |
948 {% for method in methods if method.overloads and method.overloads.has_partial_ov
erloads %} | 948 {% for method in methods if method.overloads and method.overloads.has_partial_ov
erloads %} |
949 void {{v8_class}}::register{{method.name | blink_capitalize}}MethodForPartialInt
erface(void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) { | 949 void {{v8_class}}::register{{method.name | blink_capitalize}}MethodForPartialInt
erface(void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) { |
950 {{cpp_class}}V8Internal::{{method.name}}MethodForPartialInterface = method; | 950 {{cpp_class}}V8Internal::{{method.name}}MethodForPartialInterface = method; |
951 } | 951 } |
952 | 952 |
953 {% endfor %} | 953 {% endfor %} |
954 {% endif %} | 954 {% endif %} |
955 {% endblock %} | 955 {% endblock %} |
OLD | NEW |