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

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

Issue 1372373002: bindings: Reduces the custom registration of methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 {% 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
(...skipping 12 matching lines...) Expand all
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 {% endfilter %} 24 {% endfilter %}
25 {% endif %} 25 {% endif %}
26 {% if attribute.has_custom_setter %}{# FIXME: and not attribute.implemented_ by #} 26 {% if attribute.has_custom_setter %}{# FIXME: and not attribute.implemented_ by #}
27 {% filter conditional(attribute.conditional_string) %} 27 {% filter conditional(attribute.conditional_string) %}
28 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>&);
29 {% endfilter %} 29 {% endfilter %}
30 {% endif %} 30 {% endif %}
31 {% endfor %} 31 {% endfor %}
32 {# Custom internal fields #} 32 {# Custom internal fields #}
33 static void preparePrototypeObject(v8::Isolate*, v8::Local<v8::Object>, v8:: Local<v8::FunctionTemplate>); 33 static void preparePrototypeAndInterfaceObject(v8::Isolate*, v8::Local<v8::O bject>, v8::Local<v8::Function>, v8::Local<v8::FunctionTemplate>);
34 private: 34 private:
35 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*);
36 }; 36 };
37 } 37 }
38 #endif // {{v8_class_or_partial}}_h 38 #endif // {{v8_class_or_partial}}_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698