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 #include "config.h" |
| 8 #include "{{cpp_class}}.h" |
| 9 |
| 10 {% for filename in cpp_includes %} |
| 11 #include "{{filename}}" |
| 12 {% endfor %} |
| 13 |
| 14 namespace blink { |
| 15 |
| 16 {# Constructor #} |
| 17 {{cpp_class}}::{{cpp_class}}() |
| 18 { |
| 19 } |
| 20 |
| 21 {# Setters #} |
| 22 {% for member in members %} |
| 23 void {{cpp_class}}::{{member.setter_name}}({{member.argument_cpp_type}} value) |
| 24 { |
| 25 m_{{member.name}} = value; |
| 26 } |
| 27 |
| 28 {% endfor %} |
| 29 void {{cpp_class}}::trace(Visitor* visitor) |
| 30 { |
| 31 {% for member in members if member.is_traceable %} |
| 32 visitor->trace(m_{{member.name}}); |
| 33 {% endfor %} |
| 34 } |
| 35 |
| 36 } // namespace blink |
OLD | NEW |