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

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

Issue 1278983003: Adding allocator annotations to blink classes and structs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed patch conflict Created 5 years, 4 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
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
OLDNEW
« no previous file with comments | « Source/bindings/templates/interface.h ('k') | Source/bindings/tests/results/core/V8ArrayBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698