Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY! | |
| 6 | |
| 7 #ifndef {{cpp_name}}_h | |
|
Nils Barth (inactive)
2014/07/18 21:52:35
cpp_name => dict_class? cpp_class? class?
(compare
bashi
2014/07/22 02:33:58
cpp_class looks more consistent with v8_class. Ren
| |
| 8 #define {{cpp_name}}_h | |
| 9 | |
| 10 {% filter conditional(conditional_string) %} | |
|
haraken
2014/07/21 16:11:59
Remove the support of [Conditional]. [Conditional]
bashi
2014/07/22 02:33:58
Done.
| |
| 11 {% for filename in header_includes %} | |
| 12 #include "{{filename}}" | |
| 13 {% endfor %} | |
| 14 | |
| 15 namespace WebCore { | |
| 16 | |
| 17 class {{cpp_name}} : public GarbageCollectedFinalized<{{cpp_name}}> { | |
| 18 public: | |
| 19 static {{cpp_name}}* create() | |
| 20 { | |
| 21 return new {{cpp_name}}; | |
| 22 } | |
| 23 {{cpp_name}}(); | |
| 24 | |
| 25 {% for member in members %} | |
| 26 bool {{member.has_name}}() const { return m_{{member.has_name}}; } | |
| 27 {{member.getter_cpp_type}} {{member.name}}() const { return m_{{member.name} }; } | |
| 28 void {{member.setter_name}}({{member.argument_cpp_type}}); | |
| 29 {% endfor %} | |
| 30 | |
| 31 void trace(Visitor*); | |
| 32 | |
| 33 private: | |
| 34 {% for member in members %} | |
| 35 {{member.member_cpp_type}} m_{{member.name}}; | |
| 36 bool m_{{member.has_name}}; | |
| 37 {% endfor %} | |
| 38 | |
| 39 friend class V8{{cpp_name}}; | |
| 40 }; | |
| 41 | |
| 42 } // namespace WebCore | |
| 43 | |
| 44 {% endfilter %} | |
| 45 #endif // {{cpp_name}}_h | |
| OLD | NEW |