| OLD | NEW |
| 1 {% from 'utilities.cpp' import declare_enum_validation_variable, v8_value_to_loc
al_cpp_value %} | 1 {% from 'utilities.cpp' import declare_enum_validation_variable, v8_value_to_loc
al_cpp_value %} |
| 2 | 2 |
| 3 {##############################################################################} | 3 {##############################################################################} |
| 4 {% macro generate_method(method, world_suffix) %} | 4 {% macro generate_method(method, world_suffix) %} |
| 5 {% if method.returns_promise and method.has_exception_state %} | 5 {% if method.returns_promise and method.has_exception_state %} |
| 6 static void {{method.name}}{{method.overload_index}}Method{{world_suffix}}Promis
e(const v8::FunctionCallbackInfo<v8::Value>& info, ExceptionState& exceptionStat
e) | 6 static void {{method.name}}{{method.overload_index}}Method{{world_suffix}}Promis
e(const v8::FunctionCallbackInfo<v8::Value>& info, ExceptionState& exceptionStat
e) |
| 7 {% else %} | 7 {% else %} |
| 8 static void {{method.name}}{{method.overload_index}}Method{{world_suffix}}(const
v8::FunctionCallbackInfo<v8::Value>& info) | 8 static void {{method.name}}{{method.overload_index}}Method{{world_suffix}}(const
v8::FunctionCallbackInfo<v8::Value>& info) |
| 9 {% endif %} | 9 {% endif %} |
| 10 { | 10 { |
| (...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 680 {%- endmacro %} | 680 {%- endmacro %} |
| 681 | 681 |
| 682 {######################################} | 682 {######################################} |
| 683 {% macro install_conditionally_enabled_methods() %} | 683 {% macro install_conditionally_enabled_methods() %} |
| 684 {% if methods | conditionally_exposed(is_partial) %} | 684 {% if methods | conditionally_exposed(is_partial) %} |
| 685 {# Define operations with limited exposure #} | 685 {# Define operations with limited exposure #} |
| 686 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTempla
te); | 686 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTempla
te); |
| 687 ExecutionContext* executionContext = toExecutionContext(prototypeObject->Creatio
nContext()); | 687 ExecutionContext* executionContext = toExecutionContext(prototypeObject->Creatio
nContext()); |
| 688 ASSERT(executionContext); | 688 ASSERT(executionContext); |
| 689 {% for method in methods | conditionally_exposed(is_partial) %} | 689 {% for method in methods | conditionally_exposed(is_partial) %} |
| 690 {% filter secure_context(method.overloads.secure_context_test_all |
| 691 if method.overloads else |
| 692 method.secure_context_test) %} |
| 690 {% filter exposed(method.overloads.exposed_test_all | 693 {% filter exposed(method.overloads.exposed_test_all |
| 691 if method.overloads else | 694 if method.overloads else |
| 692 method.exposed_test) %} | 695 method.exposed_test) %} |
| 693 {% filter runtime_enabled(method.overloads.runtime_enabled_function_all | 696 {% filter runtime_enabled(method.overloads.runtime_enabled_function_all |
| 694 if method.overloads else | 697 if method.overloads else |
| 695 method.runtime_enabled_function) %} | 698 method.runtime_enabled_function) %} |
| 696 const V8DOMConfiguration::MethodConfiguration {{method.name}}MethodConfiguration
= {{method_configuration(method)}}; | 699 const V8DOMConfiguration::MethodConfiguration {{method.name}}MethodConfiguration
= {{method_configuration(method)}}; |
| 697 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), proto
typeObject, interfaceObject, signature, {{method.name}}MethodConfiguration); | 700 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), proto
typeObject, interfaceObject, signature, {{method.name}}MethodConfiguration); |
| 698 {% endfilter %}{# runtime_enabled() #} | 701 {% endfilter %}{# runtime_enabled() #} |
| 699 {% endfilter %}{# exposed() #} | 702 {% endfilter %}{# exposed() #} |
| 703 {% endfilter %}{# secure_context() #} |
| 700 {% endfor %} | 704 {% endfor %} |
| 701 {% endif %} | 705 {% endif %} |
| 702 {%- endmacro %} | 706 {%- endmacro %} |
| OLD | NEW |