OLD | NEW |
1 {% extends 'interface_base.cpp' %} | 1 {% extends 'interface_base.cpp' %} |
2 | 2 |
3 | 3 |
4 {##############################################################################} | 4 {##############################################################################} |
5 {% block indexed_property_getter %} | 5 {% block indexed_property_getter %} |
6 {% if indexed_property_getter and not indexed_property_getter.is_custom %} | 6 {% if indexed_property_getter and not indexed_property_getter.is_custom %} |
7 {% set getter = indexed_property_getter %} | 7 {% set getter = indexed_property_getter %} |
8 static void indexedPropertyGetter(uint32_t index, const v8::PropertyCallbackInfo
<v8::Value>& info) | 8 static void indexedPropertyGetter(uint32_t index, const v8::PropertyCallbackInfo
<v8::Value>& info) |
9 { | 9 { |
10 {{cpp_class}}* impl = {{v8_class}}::toImpl(info.Holder()); | 10 {{cpp_class}}* impl = {{v8_class}}::toImpl(info.Holder()); |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 {% endif %} | 94 {% endif %} |
95 {% endblock %} | 95 {% endblock %} |
96 | 96 |
97 | 97 |
98 {##############################################################################} | 98 {##############################################################################} |
99 {% block indexed_property_setter_callback %} | 99 {% block indexed_property_setter_callback %} |
100 {% if indexed_property_setter %} | 100 {% if indexed_property_setter %} |
101 {% set setter = indexed_property_setter %} | 101 {% set setter = indexed_property_setter %} |
102 static void indexedPropertySetterCallback(uint32_t index, v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<v8::Value>& info) | 102 static void indexedPropertySetterCallback(uint32_t index, v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<v8::Value>& info) |
103 { | 103 { |
| 104 {% if setter.is_ce_reactions %} |
| 105 CEReactionsScope ceReactionsScope; |
| 106 {% endif %} |
104 {% if setter.is_custom %} | 107 {% if setter.is_custom %} |
105 {{v8_class}}::indexedPropertySetterCustom(index, v8Value, info); | 108 {{v8_class}}::indexedPropertySetterCustom(index, v8Value, info); |
106 {% else %} | 109 {% else %} |
107 {{cpp_class}}V8Internal::indexedPropertySetter(index, v8Value, info); | 110 {{cpp_class}}V8Internal::indexedPropertySetter(index, v8Value, info); |
108 {% endif %} | 111 {% endif %} |
109 } | 112 } |
110 | 113 |
111 {% endif %} | 114 {% endif %} |
112 {% endblock %} | 115 {% endblock %} |
113 | 116 |
(...skipping 29 matching lines...) Expand all Loading... |
143 {% endif %} | 146 {% endif %} |
144 {% endblock %} | 147 {% endblock %} |
145 | 148 |
146 | 149 |
147 {##############################################################################} | 150 {##############################################################################} |
148 {% block indexed_property_deleter_callback %} | 151 {% block indexed_property_deleter_callback %} |
149 {% if indexed_property_deleter %} | 152 {% if indexed_property_deleter %} |
150 {% set deleter = indexed_property_deleter %} | 153 {% set deleter = indexed_property_deleter %} |
151 static void indexedPropertyDeleterCallback(uint32_t index, const v8::PropertyCal
lbackInfo<v8::Boolean>& info) | 154 static void indexedPropertyDeleterCallback(uint32_t index, const v8::PropertyCal
lbackInfo<v8::Boolean>& info) |
152 { | 155 { |
| 156 {% if deleter.is_ce_reactions %} |
| 157 CEReactionsScope ceReactionsScope; |
| 158 {% endif %} |
153 {% if deleter.is_custom %} | 159 {% if deleter.is_custom %} |
154 {{v8_class}}::indexedPropertyDeleterCustom(index, info); | 160 {{v8_class}}::indexedPropertyDeleterCustom(index, info); |
155 {% else %} | 161 {% else %} |
156 {{cpp_class}}V8Internal::indexedPropertyDeleter(index, info); | 162 {{cpp_class}}V8Internal::indexedPropertyDeleter(index, info); |
157 {% endif %} | 163 {% endif %} |
158 } | 164 } |
159 | 165 |
160 {% endif %} | 166 {% endif %} |
161 {% endblock %} | 167 {% endblock %} |
162 | 168 |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 | 274 |
269 | 275 |
270 {##############################################################################} | 276 {##############################################################################} |
271 {% block named_property_setter_callback %} | 277 {% block named_property_setter_callback %} |
272 {% if named_property_setter %} | 278 {% if named_property_setter %} |
273 {% set setter = named_property_setter %} | 279 {% set setter = named_property_setter %} |
274 static void namedPropertySetterCallback(v8::Local<v8::Name> name, v8::Local<v8::
Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) | 280 static void namedPropertySetterCallback(v8::Local<v8::Name> name, v8::Local<v8::
Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) |
275 { | 281 { |
276 if (!name->IsString()) | 282 if (!name->IsString()) |
277 return; | 283 return; |
| 284 {% if setter.is_ce_reactions %} |
| 285 CEReactionsScope ceReactionsScope; |
| 286 {% endif %} |
278 {% if setter.is_custom %} | 287 {% if setter.is_custom %} |
279 {{v8_class}}::namedPropertySetterCustom(name, v8Value, info); | 288 {{v8_class}}::namedPropertySetterCustom(name, v8Value, info); |
280 {% else %} | 289 {% else %} |
281 {{cpp_class}}V8Internal::namedPropertySetter(name, v8Value, info); | 290 {{cpp_class}}V8Internal::namedPropertySetter(name, v8Value, info); |
282 {% endif %} | 291 {% endif %} |
283 } | 292 } |
284 | 293 |
285 {% endif %} | 294 {% endif %} |
286 {% endblock %} | 295 {% endblock %} |
287 | 296 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 | 381 |
373 | 382 |
374 {##############################################################################} | 383 {##############################################################################} |
375 {% block named_property_deleter_callback %} | 384 {% block named_property_deleter_callback %} |
376 {% if named_property_deleter %} | 385 {% if named_property_deleter %} |
377 {% set deleter = named_property_deleter %} | 386 {% set deleter = named_property_deleter %} |
378 static void namedPropertyDeleterCallback(v8::Local<v8::Name> name, const v8::Pro
pertyCallbackInfo<v8::Boolean>& info) | 387 static void namedPropertyDeleterCallback(v8::Local<v8::Name> name, const v8::Pro
pertyCallbackInfo<v8::Boolean>& info) |
379 { | 388 { |
380 if (!name->IsString()) | 389 if (!name->IsString()) |
381 return; | 390 return; |
| 391 {% if deleter.is_ce_reactions %} |
| 392 CEReactionsScope ceReactionsScope; |
| 393 {% endif %} |
382 {% if deleter.is_custom %} | 394 {% if deleter.is_custom %} |
383 {{v8_class}}::namedPropertyDeleterCustom(name, info); | 395 {{v8_class}}::namedPropertyDeleterCustom(name, info); |
384 {% else %} | 396 {% else %} |
385 {{cpp_class}}V8Internal::namedPropertyDeleter(name, info); | 397 {{cpp_class}}V8Internal::namedPropertyDeleter(name, info); |
386 {% endif %} | 398 {% endif %} |
387 } | 399 } |
388 | 400 |
389 {% endif %} | 401 {% endif %} |
390 {% endblock %} | 402 {% endblock %} |
391 | 403 |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
934 | 946 |
935 {% for method in methods if method.overloads and method.overloads.has_partial_ov
erloads %} | 947 {% for method in methods if method.overloads and method.overloads.has_partial_ov
erloads %} |
936 void {{v8_class}}::register{{method.name | blink_capitalize}}MethodForPartialInt
erface(void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 948 void {{v8_class}}::register{{method.name | blink_capitalize}}MethodForPartialInt
erface(void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
937 { | 949 { |
938 {{cpp_class}}V8Internal::{{method.name}}MethodForPartialInterface = method; | 950 {{cpp_class}}V8Internal::{{method.name}}MethodForPartialInterface = method; |
939 } | 951 } |
940 | 952 |
941 {% endfor %} | 953 {% endfor %} |
942 {% endif %} | 954 {% endif %} |
943 {% endblock %} | 955 {% endblock %} |
OLD | NEW |