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 {% for filename in header_includes %} | 5 {% for filename in header_includes %} |
6 #include "{{filename}}" | 6 #include "{{filename}}" |
7 {% endfor %} | 7 {% endfor %} |
8 | 8 |
9 namespace blink { | 9 namespace blink { |
10 | 10 |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 {{exported}}static void preparePrototypeAndInterfaceObject(v8::Local<v8::Con
text>, const DOMWrapperWorld&, v8::Local<v8::Object> prototypeObject, v8::Local<
v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interfaceTemplate
){% if unscopeables or has_conditional_attributes_on_prototype or methods | cond
itionally_exposed(is_partial) %}; | 161 {{exported}}static void preparePrototypeAndInterfaceObject(v8::Local<v8::Con
text>, const DOMWrapperWorld&, v8::Local<v8::Object> prototypeObject, v8::Local<
v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interfaceTemplate
){% if unscopeables or has_conditional_attributes_on_prototype or methods | cond
itionally_exposed(is_partial) %}; |
162 {% else %} { } | 162 {% else %} { } |
163 {% endif %} | 163 {% endif %} |
164 {% if has_partial_interface %} | 164 {% if has_partial_interface %} |
165 {{exported}}static void updateWrapperTypeInfo(InstallTemplateFunction, Prepa
rePrototypeAndInterfaceObjectFunction); | 165 {{exported}}static void updateWrapperTypeInfo(InstallTemplateFunction, Prepa
rePrototypeAndInterfaceObjectFunction); |
166 {{exported}}static void install{{v8_class}}Template(v8::Isolate*, const DOMW
rapperWorld&, v8::Local<v8::FunctionTemplate> interfaceTemplate); | 166 {{exported}}static void install{{v8_class}}Template(v8::Isolate*, const DOMW
rapperWorld&, v8::Local<v8::FunctionTemplate> interfaceTemplate); |
167 {% for method in methods if method.overloads and method.overloads.has_partia
l_overloads %} | 167 {% for method in methods if method.overloads and method.overloads.has_partia
l_overloads %} |
168 {{exported}}static void register{{method.name | blink_capitalize}}MethodForP
artialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&)); | 168 {{exported}}static void register{{method.name | blink_capitalize}}MethodForP
artialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&)); |
169 {% endfor %} | 169 {% endfor %} |
170 {% endif %} | 170 {% endif %} |
171 {% for origin_trial_feature_name in origin_trial_feature_names %}{{newline}} | 171 {% for origin_trial_feature in origin_trial_features %}{{newline}} |
172 static void install{{origin_trial_feature_name}}(ScriptState*, v8::Local<v8:
:Object> instance); | 172 static void install{{origin_trial_feature.name}}(ScriptState*, v8::Local<v8:
:Object> instance); |
| 173 {% if not origin_trial_feature.needs_instance %} |
| 174 static void install{{origin_trial_feature.name}}(ScriptState*); |
| 175 {% endif %} |
173 {% endfor %} | 176 {% endfor %} |
174 {% if has_partial_interface %} | 177 {% if has_partial_interface %} |
175 | 178 |
176 private: | 179 private: |
177 static InstallTemplateFunction install{{v8_class}}TemplateFunction; | 180 static InstallTemplateFunction install{{v8_class}}TemplateFunction; |
178 {% endif %} | 181 {% endif %} |
179 }; | 182 }; |
180 | 183 |
181 {% if has_event_constructor %} | 184 {% if has_event_constructor %} |
182 {{exported}}bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&,
ExceptionState&, const v8::FunctionCallbackInfo<v8::Value>& info); | 185 {{exported}}bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&,
ExceptionState&, const v8::FunctionCallbackInfo<v8::Value>& info); |
183 | 186 |
184 {% endif %} | 187 {% endif %} |
185 template <> | 188 template <> |
186 struct V8TypeOf<{{cpp_class}}> { | 189 struct V8TypeOf<{{cpp_class}}> { |
187 typedef {{v8_class}} Type; | 190 typedef {{v8_class}} Type; |
188 }; | 191 }; |
189 | 192 |
190 } // namespace blink | 193 } // namespace blink |
191 | 194 |
192 #endif // {{v8_class}}_h | 195 #endif // {{v8_class}}_h |
OLD | NEW |