| 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 methods | conditionally_exposed(is_partial) %} | 156 methods | conditionally_exposed(is_partial) %} |
| 157 {{exported}}static void preparePrototypeAndInterfaceObject(v8::Local<v8::Conte
xt>, const DOMWrapperWorld&, v8::Local<v8::Object> prototypeObject, v8::Local<v8
::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interfaceTemplate); | 157 {{exported}}static void preparePrototypeAndInterfaceObject(v8::Local<v8::Conte
xt>, const DOMWrapperWorld&, v8::Local<v8::Object> prototypeObject, v8::Local<v8
::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interfaceTemplate); |
| 158 {% endif %} | 158 {% endif %} |
| 159 {% if has_partial_interface %} | 159 {% if has_partial_interface %} |
| 160 {{exported}}static void updateWrapperTypeInfo(InstallTemplateFunction, Prepare
PrototypeAndInterfaceObjectFunction); | 160 {{exported}}static void updateWrapperTypeInfo(InstallTemplateFunction, Prepare
PrototypeAndInterfaceObjectFunction); |
| 161 {{exported}}static void install{{v8_class}}Template(v8::Isolate*, const DOMWra
pperWorld&, v8::Local<v8::FunctionTemplate> interfaceTemplate); | 161 {{exported}}static void install{{v8_class}}Template(v8::Isolate*, const DOMWra
pperWorld&, v8::Local<v8::FunctionTemplate> interfaceTemplate); |
| 162 {% for method in methods if method.overloads and method.overloads.has_partial_
overloads %} | 162 {% for method in methods if method.overloads and method.overloads.has_partial_
overloads %} |
| 163 {{exported}}static void register{{method.name | blink_capitalize}}MethodForPar
tialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&)); | 163 {{exported}}static void register{{method.name | blink_capitalize}}MethodForPar
tialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&)); |
| 164 {% endfor %} | 164 {% endfor %} |
| 165 {% endif %} | 165 {% endif %} |
| 166 {% for origin_trial_feature in origin_trial_features %}{{newline}} | 166 |
| 167 {% for origin_trial_feature in origin_trial_features %} |
| 168 |
| 167 static void install{{origin_trial_feature.name}}(v8::Isolate*, const DOMWrappe
rWorld&, v8::Local<v8::Object> instance, v8::Local<v8::Object> prototype, v8::Lo
cal<v8::Function> interface); | 169 static void install{{origin_trial_feature.name}}(v8::Isolate*, const DOMWrappe
rWorld&, v8::Local<v8::Object> instance, v8::Local<v8::Object> prototype, v8::Lo
cal<v8::Function> interface); |
| 168 static void install{{origin_trial_feature.name}}(ScriptState*, v8::Local<v8::O
bject> instance); | 170 static void install{{origin_trial_feature.name}}(ScriptState*, v8::Local<v8::O
bject> instance); |
| 169 {% if not origin_trial_feature.needs_instance %} | 171 {% if not origin_trial_feature.needs_instance %} |
| 170 static void install{{origin_trial_feature.name}}(ScriptState*); | 172 static void install{{origin_trial_feature.name}}(ScriptState*); |
| 171 {% endif %} | 173 {% endif %} |
| 172 {% endfor %} | 174 {% endfor %} |
| 173 {% if has_partial_interface %} | 175 {% if has_partial_interface %} |
| 174 | 176 |
| 175 private: | 177 private: |
| 176 static InstallTemplateFunction install{{v8_class}}TemplateFunction; | 178 static InstallTemplateFunction install{{v8_class}}TemplateFunction; |
| 177 {% endif %} | 179 {% endif %} |
| 178 }; | 180 }; |
| 179 | 181 |
| 180 {% if has_event_constructor %} | 182 {% if has_event_constructor %} |
| 181 {{exported}}bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&,
ExceptionState&, const v8::FunctionCallbackInfo<v8::Value>& info); | 183 {{exported}}bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&,
ExceptionState&, const v8::FunctionCallbackInfo<v8::Value>& info); |
| 182 | 184 |
| 183 {% endif %} | 185 {% endif %} |
| 184 template <> | 186 template <> |
| 185 struct V8TypeOf<{{cpp_class}}> { | 187 struct V8TypeOf<{{cpp_class}}> { |
| 186 typedef {{v8_class}} Type; | 188 typedef {{v8_class}} Type; |
| 187 }; | 189 }; |
| 188 | 190 |
| 189 } // namespace blink | 191 } // namespace blink |
| 190 | 192 |
| 191 #endif // {{v8_class}}_h | 193 #endif // {{v8_class}}_h |
| 192 | 194 |
| 193 {% endfilter %}{# format_blink_cpp_source_code #} | 195 {% endfilter %}{# format_blink_cpp_source_code #} |
| OLD | NEW |