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: Source/bindings/templates/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}}_h 2 #ifndef {{v8_class}}_h
3 #define {{v8_class}}_h 3 #define {{v8_class}}_h
4 4
5 {% filter conditional(conditional_string) %} 5 {% filter conditional(conditional_string) %}
6 {% for filename in header_includes %} 6 {% for filename in header_includes %}
7 #include "{{filename}}" 7 #include "{{filename}}"
8 {% endfor %} 8 {% endfor %}
9 9
10 namespace blink { 10 namespace blink {
11 11
12 {% if has_event_constructor %} 12 {% if has_event_constructor %}
13 class Dictionary; 13 class Dictionary;
14 {% endif %} 14 {% endif %}
15 {% if named_constructor %} 15 {% if named_constructor %}
16 class {{v8_class}}Constructor { 16 class {{v8_class}}Constructor {
17 STATIC_ONLY({{v8_class}}Constructor);
17 public: 18 public:
18 static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*); 19 static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*);
19 static const WrapperTypeInfo wrapperTypeInfo; 20 static const WrapperTypeInfo wrapperTypeInfo;
20 }; 21 };
21 22
22 {% endif %} 23 {% endif %}
23 class {{v8_class}} { 24 class {{v8_class}} {
25 STATIC_ONLY({{v8_class}});
24 public: 26 public:
25 {% if has_private_script %} 27 {% if has_private_script %}
26 class PrivateScript { 28 class PrivateScript {
29 STATIC_ONLY(PrivateScript);
27 public: 30 public:
28 {% for method in methods if method.is_implemented_in_private_script %} 31 {% for method in methods if method.is_implemented_in_private_script %}
29 static bool {{method.name}}Method({{method.argument_declarations_for_pri vate_script | join(', ')}}); 32 static bool {{method.name}}Method({{method.argument_declarations_for_pri vate_script | join(', ')}});
30 {% endfor %} 33 {% endfor %}
31 {% for attribute in attributes if attribute.is_implemented_in_private_sc ript %} 34 {% for attribute in attributes if attribute.is_implemented_in_private_sc ript %}
32 static bool {{attribute.name}}AttributeGetter(LocalFrame* frame, {{cpp_c lass}}* holderImpl, {{attribute.cpp_type}}* result); 35 static bool {{attribute.name}}AttributeGetter(LocalFrame* frame, {{cpp_c lass}}* holderImpl, {{attribute.cpp_type}}* result);
33 {% if not attribute.is_read_only %} 36 {% if not attribute.is_read_only %}
34 static bool {{attribute.name}}AttributeSetter(LocalFrame* frame, {{cpp_c lass}}* holderImpl, {{attribute.argument_cpp_type}} cppValue); 37 static bool {{attribute.name}}AttributeSetter(LocalFrame* frame, {{cpp_c lass}}* holderImpl, {{attribute.argument_cpp_type}} cppValue);
35 {% endif %} 38 {% endif %}
36 {% endfor %} 39 {% endfor %}
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 {% endif %} 190 {% endif %}
188 template <> 191 template <>
189 struct V8TypeOf<{{cpp_class}}> { 192 struct V8TypeOf<{{cpp_class}}> {
190 typedef {{v8_class}} Type; 193 typedef {{v8_class}} Type;
191 }; 194 };
192 195
193 } // namespace blink 196 } // namespace blink
194 {% endfilter %} 197 {% endfilter %}
195 198
196 #endif // {{v8_class}}_h 199 #endif // {{v8_class}}_h
OLDNEW
« no previous file with comments | « Source/bindings/modules/v8/SerializedScriptValueForModulesFactory.h ('k') | Source/bindings/templates/partial_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698