OLD | NEW |
1 {% extends 'interface_base.cpp' %} | 1 {% extends 'interface_base.cpp' %} |
2 | 2 |
3 | 3 |
4 {##############################################################################} | 4 {##############################################################################} |
5 {% macro attribute_configuration(attribute) %} | 5 {% macro attribute_configuration(attribute) %} |
6 {% set getter_callback = | 6 {% set getter_callback = |
7 '%sV8Internal::%sAttributeGetterCallback' % | 7 '%sV8Internal::%sAttributeGetterCallback' % |
8 (cpp_class, attribute.name) | 8 (cpp_class, attribute.name) |
9 if not attribute.constructor_type else | 9 if not attribute.constructor_type else |
10 '{0}V8Internal::{0}ConstructorGetter'.format(interface_name) %} | 10 '{0}V8Internal::{0}ConstructorGetter'.format(interface_name) %} |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 return; | 114 return; |
115 } | 115 } |
116 | 116 |
117 info.This()->SetHiddenValue(name, jsValue); | 117 info.This()->SetHiddenValue(name, jsValue); |
118 } | 118 } |
119 | 119 |
120 static void {{cpp_class}}OriginSafeMethodSetterCallback(v8::Local<v8::String> na
me, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 120 static void {{cpp_class}}OriginSafeMethodSetterCallback(v8::Local<v8::String> na
me, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
121 { | 121 { |
122 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 122 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
123 {{cpp_class}}V8Internal::{{cpp_class}}OriginSafeMethodSetter(name, jsValue,
info); | 123 {{cpp_class}}V8Internal::{{cpp_class}}OriginSafeMethodSetter(name, jsValue,
info); |
124 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 124 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
125 } | 125 } |
126 | 126 |
127 {% endif %} | 127 {% endif %} |
128 {% endblock %} | 128 {% endblock %} |
129 | 129 |
130 | 130 |
131 {##############################################################################} | 131 {##############################################################################} |
132 {% from 'methods.cpp' import named_constructor_callback with context %} | 132 {% from 'methods.cpp' import named_constructor_callback with context %} |
133 {% block named_constructor %} | 133 {% block named_constructor %} |
134 {% if named_constructor %} | 134 {% if named_constructor %} |
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
749 fromInternalPointer(object)->deref(); | 749 fromInternalPointer(object)->deref(); |
750 } | 750 } |
751 | 751 |
752 template<> | 752 template<> |
753 v8::Handle<v8::Value> toV8NoInline({{cpp_class}}* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) | 753 v8::Handle<v8::Value> toV8NoInline({{cpp_class}}* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) |
754 { | 754 { |
755 return toV8(impl, creationContext, isolate); | 755 return toV8(impl, creationContext, isolate); |
756 } | 756 } |
757 | 757 |
758 {% endblock %} | 758 {% endblock %} |
OLD | NEW |