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

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

Issue 1406923009: Rename DISALLOW_ALLOCATION and ALLOW_ONLY_INLINE_ALLOCATION (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 {{cpp_class}}_h 2 #ifndef {{cpp_class}}_h
3 #define {{cpp_class}}_h 3 #define {{cpp_class}}_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 {# FIXME: Add "final" if this class doesn't have subclasses #} 11 {# FIXME: Add "final" if this class doesn't have subclasses #}
12 class {{exported}}{{cpp_class}}{% if parent_cpp_class %} : public {{parent_cpp_c lass}}{% endif %} { 12 class {{exported}}{{cpp_class}}{% if parent_cpp_class %} : public {{parent_cpp_c lass}}{% endif %} {
13 ALLOW_ONLY_INLINE_ALLOCATION(); 13 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
14 public: 14 public:
15 {{cpp_class}}(); 15 {{cpp_class}}();
16 16
17 {% for member in members %} 17 {% for member in members %}
18 bool {{member.has_method_name}}() const { return {{member.has_method_express ion}}; } 18 bool {{member.has_method_name}}() const { return {{member.has_method_express ion}}; }
19 {{member.rvalue_cpp_type}} {{member.cpp_name}}() const { return {{member.get ter_expression}}; } 19 {{member.rvalue_cpp_type}} {{member.cpp_name}}() const { return {{member.get ter_expression}}; }
20 void {{member.setter_name}}({{member.rvalue_cpp_type}} value) { m_{{member.c pp_name}} = value; } 20 void {{member.setter_name}}({{member.rvalue_cpp_type}} value) { m_{{member.c pp_name}} = value; }
21 {% if member.null_setter_name %} 21 {% if member.null_setter_name %}
22 void {{member.null_setter_name}}() { m_{{member.cpp_name}} = {{member.member _cpp_type}}(); } 22 void {{member.null_setter_name}}() { m_{{member.cpp_name}} = {{member.member _cpp_type}}(); }
23 {% endif %} 23 {% endif %}
24 24
25 {% endfor %} 25 {% endfor %}
26 DECLARE_VIRTUAL_TRACE(); 26 DECLARE_VIRTUAL_TRACE();
27 27
28 private: 28 private:
29 {% for member in members %} 29 {% for member in members %}
30 {{member.member_cpp_type}} m_{{member.cpp_name}}; 30 {{member.member_cpp_type}} m_{{member.cpp_name}};
31 {% endfor %} 31 {% endfor %}
32 32
33 friend class V8{{cpp_class}}; 33 friend class V8{{cpp_class}};
34 }; 34 };
35 35
36 } // namespace blink 36 } // namespace blink
37 37
38 #endif // {{cpp_class}}_h 38 #endif // {{cpp_class}}_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/WrapperTypeInfo.h ('k') | third_party/WebKit/Source/bindings/templates/union.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698