| OLD | NEW |
| 1 {% include 'copyright_block.txt' %} | 1 {% include 'copyright_block.txt' %} |
| 2 #ifndef {{v8_class_or_partial}}_h | 2 #ifndef {{v8_class_or_partial}}_h |
| 3 #define {{v8_class_or_partial}}_h | 3 #define {{v8_class_or_partial}}_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 |
| 11 class {{v8_class_or_partial}} { | 11 class {{v8_class_or_partial}} { |
| 12 STATIC_ONLY({{v8_class_or_partial}}); |
| 12 public: | 13 public: |
| 13 static void initialize(); | 14 static void initialize(); |
| 14 {% for method in methods if method.is_custom %} | 15 {% for method in methods if method.is_custom %} |
| 15 {% filter conditional(method.conditional_string) %} | 16 {% filter conditional(method.conditional_string) %} |
| 16 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::V
alue>&); | 17 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::V
alue>&); |
| 17 {% endfilter %} | 18 {% endfilter %} |
| 18 {% endfor %} | 19 {% endfor %} |
| 19 {% for attribute in attributes %} | 20 {% for attribute in attributes %} |
| 20 {% if attribute.has_custom_getter %}{# FIXME: and not attribute.implemented_
by #} | 21 {% if attribute.has_custom_getter %}{# FIXME: and not attribute.implemented_
by #} |
| 21 {% filter conditional(attribute.conditional_string) %} | 22 {% filter conditional(attribute.conditional_string) %} |
| 22 static void {{attribute.name}}AttributeGetterCustom(const v8::PropertyCallba
ckInfo<v8::Value>&); | 23 static void {{attribute.name}}AttributeGetterCustom(const v8::PropertyCallba
ckInfo<v8::Value>&); |
| 23 {% endfilter %} | 24 {% endfilter %} |
| 24 {% endif %} | 25 {% endif %} |
| 25 {% if attribute.has_custom_setter %}{# FIXME: and not attribute.implemented_
by #} | 26 {% if attribute.has_custom_setter %}{# FIXME: and not attribute.implemented_
by #} |
| 26 {% filter conditional(attribute.conditional_string) %} | 27 {% filter conditional(attribute.conditional_string) %} |
| 27 static void {{attribute.name}}AttributeSetterCustom(v8::Local<v8::Value>, co
nst v8::PropertyCallbackInfo<void>&); | 28 static void {{attribute.name}}AttributeSetterCustom(v8::Local<v8::Value>, co
nst v8::PropertyCallbackInfo<void>&); |
| 28 {% endfilter %} | 29 {% endfilter %} |
| 29 {% endif %} | 30 {% endif %} |
| 30 {% endfor %} | 31 {% endfor %} |
| 31 {# Custom internal fields #} | 32 {# Custom internal fields #} |
| 32 static void preparePrototypeObject(v8::Isolate*, v8::Local<v8::Object>, v8::
Local<v8::FunctionTemplate>); | 33 static void preparePrototypeObject(v8::Isolate*, v8::Local<v8::Object>, v8::
Local<v8::FunctionTemplate>); |
| 33 private: | 34 private: |
| 34 static void install{{v8_class}}Template(v8::Local<v8::FunctionTemplate>, v8:
:Isolate*); | 35 static void install{{v8_class}}Template(v8::Local<v8::FunctionTemplate>, v8:
:Isolate*); |
| 35 }; | 36 }; |
| 36 } | 37 } |
| 37 #endif // {{v8_class_or_partial}}_h | 38 #endif // {{v8_class_or_partial}}_h |
| OLD | NEW |