| OLD | NEW |
| 1 {% include 'copyright_block.txt' %} | 1 {% include 'copyright_block.txt' %} |
| 2 #ifndef {{v8_class}}_h | 2 #ifndef {{v8_class}}_h |
| 3 #define {{v8_class}}_h | 3 #define {{v8_class}}_h |
| 4 | 4 |
| 5 {% for filename in header_includes %} | 5 {% for filename in header_includes %} |
| 6 #include "{{filename}}" | 6 #include "{{filename}}" |
| 7 {% endfor %} | 7 {% endfor %} |
| 8 | 8 |
| 9 namespace blink { | 9 namespace blink { |
| 10 | 10 |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 {# persistentHandleIndex must be the last field, if it is present. | 151 {# persistentHandleIndex must be the last field, if it is present. |
| 152 Detailed explanation: https://codereview.chromium.org/139173012 | 152 Detailed explanation: https://codereview.chromium.org/139173012 |
| 153 FIXME: Remove this internal field, and share one field for either: | 153 FIXME: Remove this internal field, and share one field for either: |
| 154 * a persistent handle (if the object is in oilpan) or | 154 * a persistent handle (if the object is in oilpan) or |
| 155 * a C++ pointer to the DOM object (if the object is not in oilpan) #} | 155 * a C++ pointer to the DOM object (if the object is not in oilpan) #} |
| 156 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + {
{custom_internal_field_counter}}; | 156 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + {
{custom_internal_field_counter}}; |
| 157 {# End custom internal fields #} | 157 {# End custom internal fields #} |
| 158 {% if has_conditional_attributes %} | 158 {% if has_conditional_attributes %} |
| 159 static void installConditionallyEnabledProperties(v8::Local<v8::Object>, v8:
:Isolate*); | 159 static void installConditionallyEnabledProperties(v8::Local<v8::Object>, v8:
:Isolate*); |
| 160 {% endif %} | 160 {% endif %} |
| 161 {{exported}}static void preparePrototypeAndInterfaceObject(v8::Local<v8::Con
text>, const DOMWrapperWorld&, v8::Local<v8::Object> prototypeObject, v8::Local<
v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interfaceTemplate
){% if unscopeables or has_conditional_attributes_on_prototype or conditionally_
enabled_methods %}; | 161 {{exported}}static void preparePrototypeAndInterfaceObject(v8::Local<v8::Con
text>, const DOMWrapperWorld&, v8::Local<v8::Object> prototypeObject, v8::Local<
v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interfaceTemplate
){% if unscopeables or has_conditional_attributes_on_prototype or methods | cond
itionally_exposed(is_partial) %}; |
| 162 {% else %} { } | 162 {% else %} { } |
| 163 {% endif %} | 163 {% endif %} |
| 164 {% if has_partial_interface %} | 164 {% if has_partial_interface %} |
| 165 {{exported}}static void updateWrapperTypeInfo(InstallTemplateFunction, Prepa
rePrototypeAndInterfaceObjectFunction); | 165 {{exported}}static void updateWrapperTypeInfo(InstallTemplateFunction, Prepa
rePrototypeAndInterfaceObjectFunction); |
| 166 {{exported}}static void install{{v8_class}}Template(v8::Isolate*, const DOMW
rapperWorld&, v8::Local<v8::FunctionTemplate> interfaceTemplate); | 166 {{exported}}static void install{{v8_class}}Template(v8::Isolate*, const DOMW
rapperWorld&, v8::Local<v8::FunctionTemplate> interfaceTemplate); |
| 167 {% for method in methods if method.overloads and method.overloads.has_partia
l_overloads %} | 167 {% for method in methods if method.overloads and method.overloads.has_partia
l_overloads %} |
| 168 {{exported}}static void register{{method.name | blink_capitalize}}MethodForP
artialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&)); | 168 {{exported}}static void register{{method.name | blink_capitalize}}MethodForP
artialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&)); |
| 169 {% endfor %} | 169 {% endfor %} |
| 170 {% endif %} | 170 {% endif %} |
| 171 {% for origin_trial_feature_name in origin_trial_feature_names %}{{newline}} | 171 {% for origin_trial_feature_name in origin_trial_feature_names %}{{newline}} |
| (...skipping 11 matching lines...) Expand all Loading... |
| 183 | 183 |
| 184 {% endif %} | 184 {% endif %} |
| 185 template <> | 185 template <> |
| 186 struct V8TypeOf<{{cpp_class}}> { | 186 struct V8TypeOf<{{cpp_class}}> { |
| 187 typedef {{v8_class}} Type; | 187 typedef {{v8_class}} Type; |
| 188 }; | 188 }; |
| 189 | 189 |
| 190 } // namespace blink | 190 } // namespace blink |
| 191 | 191 |
| 192 #endif // {{v8_class}}_h | 192 #endif // {{v8_class}}_h |
| OLD | NEW |