OLD | NEW |
1 {% include 'copyright_block.txt' %} | 1 {% include 'copyright_block.txt' %} |
2 #ifndef {{v8_class}}_h | 2 #ifndef {{v8_class}}_h |
3 #define {{v8_class}}_h | 3 #define {{v8_class}}_h |
4 | 4 |
5 {% filter conditional(conditional_string) %} | 5 {% filter conditional(conditional_string) %} |
6 {% for filename in header_includes %} | 6 {% for filename in header_includes %} |
7 #include "{{filename}}" | 7 #include "{{filename}}" |
8 {% endfor %} | 8 {% endfor %} |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 * a C++ pointer to the DOM object (if the object is not in oilpan) #} | 160 * a C++ pointer to the DOM object (if the object is not in oilpan) #} |
161 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + {
{custom_internal_field_counter}}; | 161 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + {
{custom_internal_field_counter}}; |
162 {# End custom internal fields #} | 162 {# End custom internal fields #} |
163 {% if interface_name == 'Window' %} | 163 {% if interface_name == 'Window' %} |
164 static bool namedSecurityCheckCustom(v8::Local<v8::Object> host, v8::Local<v
8::Value> key, v8::AccessType, v8::Local<v8::Value> data); | 164 static bool namedSecurityCheckCustom(v8::Local<v8::Object> host, v8::Local<v
8::Value> key, v8::AccessType, v8::Local<v8::Value> data); |
165 static bool indexedSecurityCheckCustom(v8::Local<v8::Object> host, uint32_t
index, v8::AccessType, v8::Local<v8::Value> data); | 165 static bool indexedSecurityCheckCustom(v8::Local<v8::Object> host, uint32_t
index, v8::AccessType, v8::Local<v8::Value> data); |
166 {% endif %} | 166 {% endif %} |
167 static void installConditionallyEnabledProperties(v8::Local<v8::Object>, v8:
:Isolate*){% if has_conditional_attributes %}; | 167 static void installConditionallyEnabledProperties(v8::Local<v8::Object>, v8:
:Isolate*){% if has_conditional_attributes %}; |
168 {% else %} { } | 168 {% else %} { } |
169 {% endif %} | 169 {% endif %} |
170 static void preparePrototypeObject(v8::Isolate*, v8::Local<v8::Object> proto
typeObject, v8::Local<v8::FunctionTemplate> interfaceTemplate){% if unscopeables
or has_conditional_attributes_on_prototype or conditionally_enabled_methods %}; | 170 static void preparePrototypeAndInterfaceObject(v8::Isolate*, v8::Local<v8::O
bject> prototypeObject, v8::Local<v8::Function> interfaceObject, v8::Local<v8::F
unctionTemplate> interfaceTemplate){% if unscopeables or has_conditional_attribu
tes_on_prototype or conditionally_enabled_methods %}; |
171 {% else %} { } | 171 {% else %} { } |
172 {% endif %} | 172 {% endif %} |
173 {% if has_partial_interface %} | 173 {% if has_partial_interface %} |
174 {{exported}}static void updateWrapperTypeInfo(InstallTemplateFunction, Prepa
rePrototypeObjectFunction); | 174 {{exported}}static void updateWrapperTypeInfo(InstallTemplateFunction, Prepa
rePrototypeAndInterfaceObjectFunction); |
175 {{exported}}static void install{{v8_class}}Template(v8::Local<v8::FunctionTe
mplate>, v8::Isolate*); | 175 {{exported}}static void install{{v8_class}}Template(v8::Local<v8::FunctionTe
mplate>, v8::Isolate*); |
176 {% for method in methods if method.overloads and method.overloads.has_partia
l_overloads %} | 176 {% for method in methods if method.overloads and method.overloads.has_partia
l_overloads %} |
177 {{exported}}static void register{{method.name | blink_capitalize}}MethodForP
artialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&)); | 177 {{exported}}static void register{{method.name | blink_capitalize}}MethodForP
artialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&)); |
178 {% endfor %} | 178 {% endfor %} |
179 {% endif %} | 179 {% endif %} |
180 {% if has_partial_interface %} | 180 {% if has_partial_interface %} |
181 | 181 |
182 private: | 182 private: |
183 static InstallTemplateFunction install{{v8_class}}TemplateFunction; | 183 static InstallTemplateFunction install{{v8_class}}TemplateFunction; |
184 {% endif %} | 184 {% endif %} |
185 }; | 185 }; |
186 | 186 |
187 {% if has_event_constructor %} | 187 {% if has_event_constructor %} |
188 {{exported}}bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&,
ExceptionState&, const v8::FunctionCallbackInfo<v8::Value>& info); | 188 {{exported}}bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&,
ExceptionState&, const v8::FunctionCallbackInfo<v8::Value>& info); |
189 | 189 |
190 {% endif %} | 190 {% endif %} |
191 template <> | 191 template <> |
192 struct V8TypeOf<{{cpp_class}}> { | 192 struct V8TypeOf<{{cpp_class}}> { |
193 typedef {{v8_class}} Type; | 193 typedef {{v8_class}} Type; |
194 }; | 194 }; |
195 | 195 |
196 } // namespace blink | 196 } // namespace blink |
197 {% endfilter %} | 197 {% endfilter %} |
198 | 198 |
199 #endif // {{v8_class}}_h | 199 #endif // {{v8_class}}_h |
OLD | NEW |