| 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 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_DEVTOOLS_DOMAINS_TYPES_{{domain.domain | camelcase_to_ha
cker_style | upper}}_H_ | 7 #ifndef HEADLESS_PUBLIC_DEVTOOLS_DOMAINS_TYPES_{{domain.domain | camelcase_to_ha
cker_style | upper}}_H_ |
| 8 #define HEADLESS_PUBLIC_DEVTOOLS_DOMAINS_TYPES_{{domain.domain | camelcase_to_ha
cker_style | upper}}_H_ | 8 #define HEADLESS_PUBLIC_DEVTOOLS_DOMAINS_TYPES_{{domain.domain | camelcase_to_ha
cker_style | upper}}_H_ |
| 9 | 9 |
| 10 #include "base/optional.h" | 10 #include "base/optional.h" |
| 11 #include "base/values.h" | 11 #include "base/values.h" |
| 12 {% for domain_name in domain.dependencies %} | 12 {% for domain_name in domain.dependencies %} |
| 13 #include "headless/public/devtools/internal/types_forward_declarations_{{domain_
name | camelcase_to_hacker_style}}.h" | 13 #include "headless/public/devtools/internal/types_forward_declarations_{{domain_
name | camelcase_to_hacker_style}}.h" |
| 14 {% endfor %} | 14 {% endfor %} |
| 15 #include "headless/public/headless_export.h" | 15 #include "headless/public/headless_export.h" |
| 16 #include "headless/public/util/error_reporter.h" | |
| 17 | |
| 18 #include "base/memory/ptr_util.h" | |
| 19 | 16 |
| 20 namespace headless { | 17 namespace headless { |
| 21 | 18 |
| 19 class ErrorReporter; |
| 20 |
| 22 namespace {{domain.domain | camelcase_to_hacker_style}} { | 21 namespace {{domain.domain | camelcase_to_hacker_style}} { |
| 23 {% for type in domain.types %} | 22 {% for type in domain.types %} |
| 24 {% if not (type.type == "object") or not ("properties" in type) %}{% continue
%}{% endif %} | 23 {% if not (type.type == "object") or not ("properties" in type) %}{% continue
%}{% endif %} |
| 25 | 24 |
| 26 {% if type.description %} | 25 {% if type.description %} |
| 27 // {{type.description}} | 26 // {{type.description}} |
| 28 {% endif %} | 27 {% endif %} |
| 29 class HEADLESS_EXPORT {{type.id}} { | 28 class HEADLESS_EXPORT {{type.id}} { |
| 30 public: | 29 public: |
| 31 static {{resolve_type(type).pass_type}} Parse(const base::Value& value, ErrorR
eporter* errors); | 30 static {{resolve_type(type).pass_type}} Parse(const base::Value& value, ErrorR
eporter* errors); |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 DISALLOW_COPY_AND_ASSIGN({{type.id}}); | 114 DISALLOW_COPY_AND_ASSIGN({{type.id}}); |
| 116 }; | 115 }; |
| 117 | 116 |
| 118 {% endfor %} | 117 {% endfor %} |
| 119 | 118 |
| 120 } // namespace {{domain.domain | camelcase_to_hacker_style}} | 119 } // namespace {{domain.domain | camelcase_to_hacker_style}} |
| 121 | 120 |
| 122 } // namespace headless | 121 } // namespace headless |
| 123 | 122 |
| 124 #endif // HEADLESS_PUBLIC_DEVTOOLS_DOMAINS_TYPES_{{domain.domain | camelcase_to
_hacker_style | upper}}_H_ | 123 #endif // HEADLESS_PUBLIC_DEVTOOLS_DOMAINS_TYPES_{{domain.domain | camelcase_to
_hacker_style | upper}}_H_ |
| OLD | NEW |