OLD | NEW |
1 // This file is generated | 1 // This file is generated |
2 | 2 |
3 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 3 // Copyright (c) 2016 The Chromium Authors. All rights reserved. |
4 // Use of this source code is governed by a BSD-style license that can be | 4 // Use of this source code is governed by a BSD-style license that can be |
5 // found in the LICENSE file. | 5 // found in the LICENSE file. |
6 | 6 |
7 #ifndef {{class_name}}_h | 7 #ifndef {{class_name}}_h |
8 #define {{class_name}}_h | 8 #define {{class_name}}_h |
9 | 9 |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 {%- for parameter in event.parameters -%} | 31 {%- for parameter in event.parameters -%} |
32 {%- if "optional" in parameter -%} | 32 {%- if "optional" in parameter -%} |
33 const Maybe<{{resolve_type(parameter).raw_type}}>& {{parameter.name}
} = Maybe<{{resolve_type(parameter).raw_type}}>() | 33 const Maybe<{{resolve_type(parameter).raw_type}}>& {{parameter.name}
} = Maybe<{{resolve_type(parameter).raw_type}}>() |
34 {%- else -%} | 34 {%- else -%} |
35 {{resolve_type(parameter).pass_type}} {{parameter.name}} | 35 {{resolve_type(parameter).pass_type}} {{parameter.name}} |
36 {%- endif -%}{%- if not loop.last -%}, {% endif -%} | 36 {%- endif -%}{%- if not loop.last -%}, {% endif -%} |
37 {%- endfor -%} | 37 {%- endfor -%} |
38 ); | 38 ); |
39 {% endfor %} | 39 {% endfor %} |
40 | 40 |
41 void flush() { m_frontendChannel->flush(); } | 41 void flush() { m_frontendChannel->flushProtocolNotifications(); } |
42 private: | 42 private: |
43 FrontendChannel* m_frontendChannel; | 43 FrontendChannel* m_frontendChannel; |
44 }; | 44 }; |
45 {% endfor %} | 45 {% endfor %} |
46 | 46 |
47 private: | 47 private: |
48 FrontendChannel* m_frontendChannel; | 48 FrontendChannel* m_frontendChannel; |
49 {% for domain in api.domains %} | 49 {% for domain in api.domains %} |
50 {{domain.domain}} m_{{domain.domain | lower}}; | 50 {{domain.domain}} m_{{domain.domain | lower}}; |
51 {% endfor %} | 51 {% endfor %} |
52 }; | 52 }; |
53 | 53 |
54 } // namespace protocol | 54 } // namespace protocol |
55 } // namespace blink | 55 } // namespace blink |
56 | 56 |
57 #endif // !defined({{class_name}}_h) | 57 #endif // !defined({{class_name}}_h) |
OLD | NEW |