OLD | NEW |
1 {% filter format_blink_cpp_source_code %} | 1 {% filter format_blink_cpp_source_code %} |
2 | 2 |
3 {% include 'copyright_block.txt' %} | 3 {% include 'copyright_block.txt' %} |
4 #ifndef {{v8_class}}_h | 4 #ifndef {{v8_class}}_h |
5 #define {{v8_class}}_h | 5 #define {{v8_class}}_h |
6 | 6 |
7 {% for filename in header_includes %} | 7 {% for filename in header_includes %} |
8 #include "{{filename}}" | 8 #include "{{filename}}" |
9 {% endfor %} | 9 {% endfor %} |
10 | 10 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 static const int eventListenerCacheIndex = v8DefaultWrapperInternalFieldCoun
t + {{custom_internal_field_counter}}; | 150 static const int eventListenerCacheIndex = v8DefaultWrapperInternalFieldCoun
t + {{custom_internal_field_counter}}; |
151 {% set custom_internal_field_counter = custom_internal_field_counter + 1 %} | 151 {% set custom_internal_field_counter = custom_internal_field_counter + 1 %} |
152 {% endif %} | 152 {% endif %} |
153 {# persistentHandleIndex must be the last field, if it is present. | 153 {# persistentHandleIndex must be the last field, if it is present. |
154 Detailed explanation: https://codereview.chromium.org/139173012 | 154 Detailed explanation: https://codereview.chromium.org/139173012 |
155 FIXME: Remove this internal field, and share one field for either: | 155 FIXME: Remove this internal field, and share one field for either: |
156 * a persistent handle (if the object is in oilpan) or | 156 * a persistent handle (if the object is in oilpan) or |
157 * a C++ pointer to the DOM object (if the object is not in oilpan) #} | 157 * a C++ pointer to the DOM object (if the object is not in oilpan) #} |
158 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + {
{custom_internal_field_counter}}; | 158 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + {
{custom_internal_field_counter}}; |
159 {# End custom internal fields #} | 159 {# End custom internal fields #} |
160 {% if unscopeables or has_conditional_attributes_on_prototype or | 160 {% if unscopables or has_conditional_attributes_on_prototype or |
161 methods | conditionally_exposed(is_partial) %} | 161 methods | conditionally_exposed(is_partial) %} |
162 {{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
); | 162 {{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
); |
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 %} |
(...skipping 17 matching lines...) Expand all Loading... |
188 template <> | 188 template <> |
189 struct V8TypeOf<{{cpp_class}}> { | 189 struct V8TypeOf<{{cpp_class}}> { |
190 typedef {{v8_class}} Type; | 190 typedef {{v8_class}} Type; |
191 }; | 191 }; |
192 | 192 |
193 } // namespace blink | 193 } // namespace blink |
194 | 194 |
195 #endif // {{v8_class}}_h | 195 #endif // {{v8_class}}_h |
196 | 196 |
197 {% endfilter %}{# format_blink_cpp_source_code #} | 197 {% endfilter %}{# format_blink_cpp_source_code #} |
OLD | NEW |