| 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 STATIC_ONLY({{v8_class_or_partial}}); |
| 13 public: | 13 public: |
| 14 static void initialize(); | 14 static void initialize(); |
| 15 {% for method in methods if method.is_custom %} | 15 {% for method in methods if method.is_custom %} |
| 16 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::V
alue>&); | 16 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::V
alue>&); |
| 17 {% endfor %} | 17 {% endfor %} |
| 18 {% for attribute in attributes %} | 18 {% for attribute in attributes %} |
| 19 {% if attribute.has_custom_getter %}{# FIXME: and not attribute.implemented_
by #} | 19 {% if attribute.has_custom_getter %}{# FIXME: and not attribute.implemented_
by #} |
| 20 static void {{attribute.name}}AttributeGetterCustom(const v8::PropertyCallba
ckInfo<v8::Value>&); | 20 static void {{attribute.name}}AttributeGetterCustom(const v8::PropertyCallba
ckInfo<v8::Value>&); |
| 21 {% endif %} | 21 {% endif %} |
| 22 {% if attribute.has_custom_setter %}{# FIXME: and not attribute.implemented_
by #} | 22 {% if attribute.has_custom_setter %}{# FIXME: and not attribute.implemented_
by #} |
| 23 static void {{attribute.name}}AttributeSetterCustom(v8::Local<v8::Value>, co
nst v8::PropertyCallbackInfo<void>&); | 23 static void {{attribute.name}}AttributeSetterCustom(v8::Local<v8::Value>, co
nst v8::PropertyCallbackInfo<void>&); |
| 24 {% endif %} | 24 {% endif %} |
| 25 {% endfor %} | 25 {% endfor %} |
| 26 {# Custom internal fields #} | 26 {# Custom internal fields #} |
| 27 static void preparePrototypeAndInterfaceObject(v8::Local<v8::Context>, const
DOMWrapperWorld&, v8::Local<v8::Object>, v8::Local<v8::Function>, v8::Local<v8:
:FunctionTemplate>); | 27 static void preparePrototypeAndInterfaceObject(v8::Local<v8::Context>, const
DOMWrapperWorld&, v8::Local<v8::Object>, v8::Local<v8::Function>, v8::Local<v8:
:FunctionTemplate>); |
| 28 {% for group in attributes|origin_trial_enabled_attributes|groupby('origin_t
rial_feature_name') %}{{newline}} |
| 29 static void install{{group.grouper}}(v8::Isolate*, const DOMWrapperWorld&, v
8::Local<v8::Object> instance, v8::Local<v8::Function> interface); |
| 30 {% endfor %} |
| 28 private: | 31 private: |
| 29 static void install{{v8_class}}Template(v8::Isolate*, const DOMWrapperWorld&
, v8::Local<v8::FunctionTemplate> interfaceTemplate); | 32 static void install{{v8_class}}Template(v8::Isolate*, const DOMWrapperWorld&
, v8::Local<v8::FunctionTemplate> interfaceTemplate); |
| 30 }; | 33 }; |
| 31 } | 34 } |
| 32 #endif // {{v8_class_or_partial}}_h | 35 #endif // {{v8_class_or_partial}}_h |
| OLD | NEW |