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}}_h | 4 #ifndef {{v8_class}}_h |
5 #define {{v8_class}}_h | 5 #define {{v8_class}}_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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 {{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
); | 162 {{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
); |
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 in origin_trial_features %}{{newline}} | 171 {% for origin_trial_feature in origin_trial_features %}{{newline}} |
| 172 static void install{{origin_trial_feature.name}}(v8::Isolate*, const DOMWrap
perWorld&, v8::Local<v8::Object> instance, v8::Local<v8::Object> prototype, v8::
Local<v8::Function> interface); |
172 static void install{{origin_trial_feature.name}}(ScriptState*, v8::Local<v8:
:Object> instance); | 173 static void install{{origin_trial_feature.name}}(ScriptState*, v8::Local<v8:
:Object> instance); |
173 {% if not origin_trial_feature.needs_instance %} | 174 {% if not origin_trial_feature.needs_instance %} |
174 static void install{{origin_trial_feature.name}}(ScriptState*); | 175 static void install{{origin_trial_feature.name}}(ScriptState*); |
175 {% endif %} | 176 {% endif %} |
176 {% endfor %} | 177 {% endfor %} |
177 {% if has_partial_interface %} | 178 {% if has_partial_interface %} |
178 | 179 |
179 private: | 180 private: |
180 static InstallTemplateFunction install{{v8_class}}TemplateFunction; | 181 static InstallTemplateFunction install{{v8_class}}TemplateFunction; |
181 {% endif %} | 182 {% endif %} |
182 }; | 183 }; |
183 | 184 |
184 {% if has_event_constructor %} | 185 {% if has_event_constructor %} |
185 {{exported}}bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&,
ExceptionState&, const v8::FunctionCallbackInfo<v8::Value>& info); | 186 {{exported}}bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&,
ExceptionState&, const v8::FunctionCallbackInfo<v8::Value>& info); |
186 | 187 |
187 {% endif %} | 188 {% endif %} |
188 template <> | 189 template <> |
189 struct V8TypeOf<{{cpp_class}}> { | 190 struct V8TypeOf<{{cpp_class}}> { |
190 typedef {{v8_class}} Type; | 191 typedef {{v8_class}} Type; |
191 }; | 192 }; |
192 | 193 |
193 } // namespace blink | 194 } // namespace blink |
194 | 195 |
195 #endif // {{v8_class}}_h | 196 #endif // {{v8_class}}_h |
196 | 197 |
197 {% endfilter %}{# format_blink_cpp_source_code #} | 198 {% endfilter %}{# format_blink_cpp_source_code #} |
OLD | NEW |