| OLD | NEW |
| 1 {# http://www.chromium.org/blink/coding-style#TOC-License #} | 1 {# http://www.chromium.org/blink/coding-style#TOC-License #} |
| 2 /* | 2 /* |
| 3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 {% endif %} | 104 {% endif %} |
| 105 {% if indexed_property_deleter and indexed_property_deleter.is_custom %} | 105 {% if indexed_property_deleter and indexed_property_deleter.is_custom %} |
| 106 static void indexedPropertyDeleterCustom(uint32_t, const v8::PropertyCallbac
kInfo<v8::Boolean>&); | 106 static void indexedPropertyDeleterCustom(uint32_t, const v8::PropertyCallbac
kInfo<v8::Boolean>&); |
| 107 {% endif %} | 107 {% endif %} |
| 108 {% if named_property_getter and named_property_getter.is_custom %} | 108 {% if named_property_getter and named_property_getter.is_custom %} |
| 109 static void namedPropertyGetterCustom(v8::Local<v8::String>, const v8::Prope
rtyCallbackInfo<v8::Value>&); | 109 static void namedPropertyGetterCustom(v8::Local<v8::String>, const v8::Prope
rtyCallbackInfo<v8::Value>&); |
| 110 {% endif %} | 110 {% endif %} |
| 111 {% if named_property_setter and named_property_setter.is_custom %} | 111 {% if named_property_setter and named_property_setter.is_custom %} |
| 112 static void namedPropertySetterCustom(v8::Local<v8::String>, v8::Local<v8::V
alue>, const v8::PropertyCallbackInfo<v8::Value>&); | 112 static void namedPropertySetterCustom(v8::Local<v8::String>, v8::Local<v8::V
alue>, const v8::PropertyCallbackInfo<v8::Value>&); |
| 113 {% endif %} | 113 {% endif %} |
| 114 {% if named_property_getter and |
| 115 named_property_getter.is_custom_property_query %} |
| 116 static void namedPropertyQueryCustom(v8::Local<v8::String>, const v8::Proper
tyCallbackInfo<v8::Integer>&); |
| 117 {% endif %} |
| 114 {% if named_property_deleter and named_property_deleter.is_custom %} | 118 {% if named_property_deleter and named_property_deleter.is_custom %} |
| 115 static void namedPropertyDeleterCustom(v8::Local<v8::String>, const v8::Prop
ertyCallbackInfo<v8::Boolean>&); | 119 static void namedPropertyDeleterCustom(v8::Local<v8::String>, const v8::Prop
ertyCallbackInfo<v8::Boolean>&); |
| 116 {% endif %} | 120 {% endif %} |
| 121 {% if named_property_getter and |
| 122 named_property_getter.is_custom_property_enumerator %} |
| 123 static void namedPropertyEnumeratorCustom(const v8::PropertyCallbackInfo<v8:
:Array>&); |
| 124 {% endif %} |
| 125 {# END custom special operations #} |
| 117 {% if has_custom_legacy_call_as_function %} | 126 {% if has_custom_legacy_call_as_function %} |
| 118 static void legacyCallCustom(const v8::FunctionCallbackInfo<v8::Value>&); | 127 static void legacyCallCustom(const v8::FunctionCallbackInfo<v8::Value>&); |
| 119 {% endif %} | 128 {% endif %} |
| 120 {% set custom_internal_field_counter = 0 %} | 129 {% set custom_internal_field_counter = 0 %} |
| 121 {% if is_event_target and not is_node %} | 130 {% if is_event_target and not is_node %} |
| 122 {# Event listeners on DOM nodes are explicitly supported in the GC controlle
r. #} | 131 {# Event listeners on DOM nodes are explicitly supported in the GC controlle
r. #} |
| 123 static const int eventListenerCacheIndex = v8DefaultWrapperInternalFieldCoun
t + 0; | 132 static const int eventListenerCacheIndex = v8DefaultWrapperInternalFieldCoun
t + 0; |
| 124 {% set custom_internal_field_counter = custom_internal_field_counter + 1 %} | 133 {% set custom_internal_field_counter = custom_internal_field_counter + 1 %} |
| 125 {% endif %} | 134 {% endif %} |
| 126 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + {
{custom_internal_field_counter}}; | 135 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + {
{custom_internal_field_counter}}; |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 277 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
| 269 } | 278 } |
| 270 | 279 |
| 271 {% if has_event_constructor %} | 280 {% if has_event_constructor %} |
| 272 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta
te&, const String& = ""); | 281 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta
te&, const String& = ""); |
| 273 | 282 |
| 274 {% endif %} | 283 {% endif %} |
| 275 } | 284 } |
| 276 {% endfilter %} | 285 {% endfilter %} |
| 277 #endif // {{v8_class}}_h | 286 #endif // {{v8_class}}_h |
| OLD | NEW |