| 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 {% filter conditional(conditional_string) %} | 5 {% filter conditional(conditional_string) %} |
| 6 {% for filename in header_includes %} | 6 {% for filename in header_includes %} |
| 7 #include "{{filename}}" | 7 #include "{{filename}}" |
| 8 {% endfor %} | 8 {% endfor %} |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 * a C++ pointer to the DOM object (if the object is not in oilpan) #} | 151 * a C++ pointer to the DOM object (if the object is not in oilpan) #} |
| 152 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + {
{custom_internal_field_counter}}; | 152 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + {
{custom_internal_field_counter}}; |
| 153 {# End custom internal fields #} | 153 {# End custom internal fields #} |
| 154 {% if interface_name == 'Window' %} | 154 {% if interface_name == 'Window' %} |
| 155 static bool namedSecurityCheckCustom(v8::Local<v8::Object> host, v8::Local<v
8::Value> key, v8::AccessType, v8::Local<v8::Value> data); | 155 static bool namedSecurityCheckCustom(v8::Local<v8::Object> host, v8::Local<v
8::Value> key, v8::AccessType, v8::Local<v8::Value> data); |
| 156 static bool indexedSecurityCheckCustom(v8::Local<v8::Object> host, uint32_t
index, v8::AccessType, v8::Local<v8::Value> data); | 156 static bool indexedSecurityCheckCustom(v8::Local<v8::Object> host, uint32_t
index, v8::AccessType, v8::Local<v8::Value> data); |
| 157 {% endif %} | 157 {% endif %} |
| 158 static void installConditionallyEnabledProperties(v8::Local<v8::Object>, v8:
:Isolate*){% if has_conditional_attributes %}; | 158 static void installConditionallyEnabledProperties(v8::Local<v8::Object>, v8:
:Isolate*){% if has_conditional_attributes %}; |
| 159 {% else %} { } | 159 {% else %} { } |
| 160 {% endif %} | 160 {% endif %} |
| 161 static void installConditionallyEnabledMethods(v8::Local<v8::Object>, v8::Is
olate*){% if conditionally_enabled_methods %}; | 161 static void preparePrototypeObject(v8::Isolate*, v8::Local<v8::Object>){% if
unscopeables or conditionally_enabled_methods %}; |
| 162 {% else %} { } | 162 {% else %} { } |
| 163 {% endif %} | 163 {% endif %} |
| 164 {% if has_partial_interface %} | 164 {% if has_partial_interface %} |
| 165 {{exported}}static void updateWrapperTypeInfo(InstallTemplateFunction, Insta
llConditionallyEnabledMethodsFunction); | 165 {{exported}}static void updateWrapperTypeInfo(InstallTemplateFunction, Prepa
rePrototypeObjectFunction); |
| 166 {{exported}}static void install{{v8_class}}Template(v8::Local<v8::FunctionTe
mplate>, v8::Isolate*); | 166 {{exported}}static void install{{v8_class}}Template(v8::Local<v8::FunctionTe
mplate>, v8::Isolate*); |
| 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 {% if has_partial_interface %} | 171 {% if has_partial_interface %} |
| 172 | 172 |
| 173 private: | 173 private: |
| 174 static InstallTemplateFunction install{{v8_class}}TemplateFunction; | 174 static InstallTemplateFunction install{{v8_class}}TemplateFunction; |
| 175 {% endif %} | 175 {% endif %} |
| (...skipping 25 matching lines...) Expand all Loading... |
| 201 {% endif %} | 201 {% endif %} |
| 202 template <> | 202 template <> |
| 203 struct V8TypeOf<{{cpp_class}}> { | 203 struct V8TypeOf<{{cpp_class}}> { |
| 204 typedef {{v8_class}} Type; | 204 typedef {{v8_class}} Type; |
| 205 }; | 205 }; |
| 206 | 206 |
| 207 } // namespace blink | 207 } // namespace blink |
| 208 {% endfilter %} | 208 {% endfilter %} |
| 209 | 209 |
| 210 #endif // {{v8_class}}_h | 210 #endif // {{v8_class}}_h |
| OLD | NEW |