| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 154 {{ command_decl(command) }} | 156 {{ command_decl(command) }} | 
| 155   {% endfor %} | 157   {% endfor %} | 
| 156 | 158 | 
| 157  private: | 159  private: | 
| 158   DISALLOW_COPY_AND_ASSIGN(ExperimentalDomain); | 160   DISALLOW_COPY_AND_ASSIGN(ExperimentalDomain); | 
| 159 }; | 161 }; | 
| 160 | 162 | 
| 161 }  // namespace {{domain.domain | camelcase_to_hacker_style}} | 163 }  // namespace {{domain.domain | camelcase_to_hacker_style}} | 
| 162 }  // namespace headless | 164 }  // namespace headless | 
| 163 | 165 | 
| 164 #endif  // HEADLESS_PUBLIC_DOMAINS_{{domain.domain | camelcase_to_hacker_style |
      upper}}_H_ | 166 #endif  // HEADLESS_PUBLIC_DEVTOOLS_DOMAINS_{{domain.domain | camelcase_to_hacke
     r_style | upper}}_H_ | 
| OLD | NEW | 
|---|