Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: third_party/WebKit/Source/bindings/templates/partial_interface.h.tmpl

Issue 2717283002: [Bindings][Refactoring] Move logics of preparePrototypeAndInterfaceObject from .tmpl to .py (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_or_partial}}_h 4 #ifndef {{v8_class_or_partial}}_h
5 #define {{v8_class_or_partial}}_h 5 #define {{v8_class_or_partial}}_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 11 matching lines...) Expand all
22 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::Val ue>&); 22 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::Val ue>&);
23 {% endfor %} 23 {% endfor %}
24 {% for attribute in attributes %} 24 {% for attribute in attributes %}
25 {% if attribute.has_custom_getter %}{# FIXME: and not attribute.implemented_by #} 25 {% if attribute.has_custom_getter %}{# FIXME: and not attribute.implemented_by #}
26 static void {{attribute.name}}AttributeGetterCustom(const v8::PropertyCallback Info<v8::Value>&); 26 static void {{attribute.name}}AttributeGetterCustom(const v8::PropertyCallback Info<v8::Value>&);
27 {% endif %} 27 {% endif %}
28 {% if attribute.has_custom_setter %}{# FIXME: and not attribute.implemented_by #} 28 {% if attribute.has_custom_setter %}{# FIXME: and not attribute.implemented_by #}
29 static void {{attribute.name}}AttributeSetterCustom(v8::Local<v8::Value>, cons t v8::PropertyCallbackInfo<void>&); 29 static void {{attribute.name}}AttributeSetterCustom(v8::Local<v8::Value>, cons t v8::PropertyCallbackInfo<void>&);
30 {% endif %} 30 {% endif %}
31 {% endfor %} 31 {% endfor %}
32 {% if unscopables or has_conditional_attributes_on_prototype or 32 {% if prepare_prototype_and_interface_object_func %}
33 methods | conditionally_exposed(is_partial) %}
34 static void preparePrototypeAndInterfaceObject(v8::Local<v8::Context>, const D OMWrapperWorld&, v8::Local<v8::Object>, v8::Local<v8::Function>, v8::Local<v8::F unctionTemplate>); 33 static void preparePrototypeAndInterfaceObject(v8::Local<v8::Context>, const D OMWrapperWorld&, v8::Local<v8::Object>, v8::Local<v8::Function>, v8::Local<v8::F unctionTemplate>);
35 {% endif %} 34 {% endif %}
36 35
37 {% for feature in origin_trial_features %} 36 {% for feature in origin_trial_features %}
38 static void install{{feature.name}}(ScriptState*, v8::Local<v8::Object> instan ce); 37 static void install{{feature.name}}(ScriptState*, v8::Local<v8::Object> instan ce);
39 static void install{{feature.name}}(v8::Isolate*, const DOMWrapperWorld&, v8:: Local<v8::Object> instance, v8::Local<v8::Object> prototype, v8::Local<v8::Funct ion> interface); 38 static void install{{feature.name}}(v8::Isolate*, const DOMWrapperWorld&, v8:: Local<v8::Object> instance, v8::Local<v8::Object> prototype, v8::Local<v8::Funct ion> interface);
40 {% if not feature.needs_instance %} 39 {% if not feature.needs_instance %}
41 static void install{{feature.name}}(ScriptState*); 40 static void install{{feature.name}}(ScriptState*);
42 {% endif %} 41 {% endif %}
43 {% endfor %} 42 {% endfor %}
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 104
106 private: 105 private:
107 static void install{{v8_class}}Template(v8::Isolate*, const DOMWrapperWorld&, v8::Local<v8::FunctionTemplate> interfaceTemplate); 106 static void install{{v8_class}}Template(v8::Isolate*, const DOMWrapperWorld&, v8::Local<v8::FunctionTemplate> interfaceTemplate);
108 }; 107 };
109 108
110 } // namespace blink 109 } // namespace blink
111 110
112 #endif // {{v8_class_or_partial}}_h 111 #endif // {{v8_class_or_partial}}_h
113 112
114 {% endfilter %}{# format_blink_cpp_source_code #} 113 {% endfilter %}{# format_blink_cpp_source_code #}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698