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 HEADLESS_PUBLIC_DOMAINS_{{domain.domain | camelcase_to_hacker_style | up
per}}_H_ | 7 #ifndef HEADLESS_PUBLIC_DEVTOOLS_DOMAINS_{{domain.domain | camelcase_to_hacker_s
tyle | upper}}_H_ |
8 #define HEADLESS_PUBLIC_DOMAINS_{{domain.domain | camelcase_to_hacker_style | up
per}}_H_ | 8 #define HEADLESS_PUBLIC_DEVTOOLS_DOMAINS_{{domain.domain | camelcase_to_hacker_s
tyle | upper}}_H_ |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/observer_list.h" | 11 #include "base/observer_list.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "headless/public/domains/types.h" | 13 {% for domain_name in domain.dependencies %} |
| 14 #include "headless/public/devtools/domains/types_{{domain_name | camelcase_to_ha
cker_style}}.h" |
| 15 {% endfor %} |
14 #include "headless/public/headless_export.h" | 16 #include "headless/public/headless_export.h" |
15 #include "headless/public/internal/message_dispatcher.h" | 17 #include "headless/public/internal/message_dispatcher.h" |
16 | 18 |
17 {# Macro for defining a member function for a given command. #} | 19 {# Macro for defining a member function for a given command. #} |
18 {% macro command_decl(command) %} | 20 {% macro command_decl(command) %} |
19 {% set method_name = command.name | to_title_case %} | 21 {% set method_name = command.name | to_title_case %} |
20 {% if command.description %} | 22 {% if command.description %} |
21 // {{ command.description }} | 23 // {{ command.description }} |
22 {% endif %} | 24 {% endif %} |
23 void {{method_name}}(std::unique_ptr<{{method_name}}Params> params, base::Call
back<void(std::unique_ptr<{{method_name}}Result>)> callback = base::Callback<voi
d(std::unique_ptr<{{method_name}}Result>)>()); | 25 void {{method_name}}(std::unique_ptr<{{method_name}}Params> params, base::Call
back<void(std::unique_ptr<{{method_name}}Result>)> callback = base::Callback<voi
d(std::unique_ptr<{{method_name}}Result>)>()); |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 {{ command_decl(command) }} | 147 {{ command_decl(command) }} |
146 {% endfor %} | 148 {% endfor %} |
147 | 149 |
148 private: | 150 private: |
149 DISALLOW_COPY_AND_ASSIGN(ExperimentalDomain); | 151 DISALLOW_COPY_AND_ASSIGN(ExperimentalDomain); |
150 }; | 152 }; |
151 | 153 |
152 } // namespace {{domain.domain | camelcase_to_hacker_style}} | 154 } // namespace {{domain.domain | camelcase_to_hacker_style}} |
153 } // namespace headless | 155 } // namespace headless |
154 | 156 |
155 #endif // HEADLESS_PUBLIC_DOMAINS_{{domain.domain | camelcase_to_hacker_style |
upper}}_H_ | 157 #endif // HEADLESS_PUBLIC_DEVTOOLS_DOMAINS_{{domain.domain | camelcase_to_hacke
r_style | upper}}_H_ |
OLD | NEW |