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 {% if attributes|origin_trial_enabled_attributes %} | 10 {% if attributes|origin_trial_enabled_attributes %} |
(...skipping 10 matching lines...) Expand all Loading... |
21 {% for attribute in attributes %} | 21 {% for attribute in attributes %} |
22 {% if attribute.has_custom_getter %}{# FIXME: and not attribute.implemented_
by #} | 22 {% if attribute.has_custom_getter %}{# FIXME: and not attribute.implemented_
by #} |
23 static void {{attribute.name}}AttributeGetterCustom(const v8::PropertyCallba
ckInfo<v8::Value>&); | 23 static void {{attribute.name}}AttributeGetterCustom(const v8::PropertyCallba
ckInfo<v8::Value>&); |
24 {% endif %} | 24 {% endif %} |
25 {% if attribute.has_custom_setter %}{# FIXME: and not attribute.implemented_
by #} | 25 {% if attribute.has_custom_setter %}{# FIXME: and not attribute.implemented_
by #} |
26 static void {{attribute.name}}AttributeSetterCustom(v8::Local<v8::Value>, co
nst v8::PropertyCallbackInfo<void>&); | 26 static void {{attribute.name}}AttributeSetterCustom(v8::Local<v8::Value>, co
nst v8::PropertyCallbackInfo<void>&); |
27 {% endif %} | 27 {% endif %} |
28 {% endfor %} | 28 {% endfor %} |
29 {# Custom internal fields #} | 29 {# Custom internal fields #} |
30 static void preparePrototypeAndInterfaceObject(v8::Local<v8::Context>, const
DOMWrapperWorld&, v8::Local<v8::Object>, v8::Local<v8::Function>, v8::Local<v8:
:FunctionTemplate>); | 30 static void preparePrototypeAndInterfaceObject(v8::Local<v8::Context>, const
DOMWrapperWorld&, v8::Local<v8::Object>, v8::Local<v8::Function>, v8::Local<v8:
:FunctionTemplate>); |
31 {% for origin_trial_feature_name in origin_trial_feature_names %}{{newline}} | 31 {% for origin_trial_feature in origin_trial_features %}{{newline}} |
32 static void install{{origin_trial_feature_name}}(ScriptState*, v8::Local<v8:
:Object> instance); | 32 static void install{{origin_trial_feature.name}}(ScriptState*, v8::Local<v8:
:Object> instance); |
| 33 {% if not origin_trial_feature.needs_instance %} |
| 34 static void install{{origin_trial_feature.name}}(ScriptState*); |
| 35 {% endif %} |
33 {% endfor %} | 36 {% endfor %} |
34 private: | 37 private: |
35 static void install{{v8_class}}Template(v8::Isolate*, const DOMWrapperWorld&
, v8::Local<v8::FunctionTemplate> interfaceTemplate); | 38 static void install{{v8_class}}Template(v8::Isolate*, const DOMWrapperWorld&
, v8::Local<v8::FunctionTemplate> interfaceTemplate); |
36 }; | 39 }; |
37 } | 40 } |
38 #endif // {{v8_class_or_partial}}_h | 41 #endif // {{v8_class_or_partial}}_h |
OLD | NEW |