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_or_partial}}_h | 4 #ifndef {{v8_class_or_partial}}_h |
5 #define {{v8_class_or_partial}}_h | 5 #define {{v8_class_or_partial}}_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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 v8::Isolate* isolate, | 46 v8::Isolate* isolate, |
47 const DOMWrapperWorld& world, | 47 const DOMWrapperWorld& world, |
48 v8::Local<v8::Object> instance, | 48 v8::Local<v8::Object> instance, |
49 v8::Local<v8::Object> prototype, | 49 v8::Local<v8::Object> prototype, |
50 v8::Local<v8::Function> interface); | 50 v8::Local<v8::Function> interface); |
51 {% endif %} | 51 {% endif %} |
52 | 52 |
53 // Callback functions | 53 // Callback functions |
54 {% for attribute in attributes %} | 54 {% for attribute in attributes %} |
55 {% if attribute.is_cached_accessor %} | 55 {% if attribute.is_cached_accessor %} |
56 {{exported}}static v8::Local<v8::Private> {{attribute.name}}CachedAccessorCall
back(v8::Isolate* isolate); | 56 {{exported}}static v8::Local<v8::Private> {{attribute.name}}CachedPropertyKey(
v8::Isolate* isolate); |
57 {% endif %} | 57 {% endif %} |
58 {% for world_suffix in attribute.world_suffixes %} | 58 {% for world_suffix in attribute.world_suffixes %} |
59 {% if not attribute.constructor_type %} | 59 {% if not attribute.constructor_type %} |
60 {{exported}}static void {{attribute.name}}AttributeGetterCallback{{world_suffi
x}}( | 60 {{exported}}static void {{attribute.name}}AttributeGetterCallback{{world_suffi
x}}( |
61 {%- if attribute.is_data_type_property %} | 61 {%- if attribute.is_data_type_property %} |
62 v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info | 62 v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info |
63 {%- else %} | 63 {%- else %} |
64 const v8::FunctionCallbackInfo<v8::Value>& info | 64 const v8::FunctionCallbackInfo<v8::Value>& info |
65 {%- endif %}); | 65 {%- endif %}); |
66 {% elif attribute.needs_constructor_getter_callback %} | 66 {% elif attribute.needs_constructor_getter_callback %} |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 104 |
105 private: | 105 private: |
106 static void install{{v8_class}}Template(v8::Isolate*, const DOMWrapperWorld&,
v8::Local<v8::FunctionTemplate> interfaceTemplate); | 106 static void install{{v8_class}}Template(v8::Isolate*, const DOMWrapperWorld&,
v8::Local<v8::FunctionTemplate> interfaceTemplate); |
107 }; | 107 }; |
108 | 108 |
109 } // namespace blink | 109 } // namespace blink |
110 | 110 |
111 #endif // {{v8_class_or_partial}}_h | 111 #endif // {{v8_class_or_partial}}_h |
112 | 112 |
113 {% endfilter %}{# format_blink_cpp_source_code #} | 113 {% endfilter %}{# format_blink_cpp_source_code #} |
OLD | NEW |