Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Side by Side Diff: headless/lib/browser/devtools_api/domain_types_forward_declaration_h.template

Issue 2473073003: [headless] Refactor headless devtools client API. (Closed)
Patch Set: Address nits Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // This file is generated
2
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
5 // found in the LICENSE file.
6
7 #ifndef HEADLESS_PUBLIC_DEVTOOLS_INTERNAL_TYPES_FORWARD_DECLARATION_{{domain.dom ain | camelcase_to_hacker_style | upper}}_H_
8 #define HEADLESS_PUBLIC_DEVTOOLS_INTERNAL_TYPES_FORWARD_DECLARATION_{{domain.dom ain | camelcase_to_hacker_style | upper}}_H_
9
10 #include "base/optional.h"
11 #include "base/values.h"
12 #include "headless/public/headless_export.h"
13 #include "headless/public/util/error_reporter.h"
14
15 #include "base/memory/ptr_util.h"
16
17 namespace headless {
18
19 namespace {{domain.domain | camelcase_to_hacker_style}} {
20 {% for type in domain.types %}
21 {% if type.type == "object" %}
22 {% if "properties" in type %}
23 class {{type.id}};
24 {% else %}
25 using {{type.id}} = base::Value;
26 {% endif %}
27 {% endif %}
28 {% endfor %}
29
30 {% for type in domain.types %}
31 {% if "enum" in type %}
32 enum class {{type.id}} {
33 {% for literal in type.enum %}
34 {{ literal | sanitize_literal | dash_to_camelcase | camelcase_to_hacker_style | upper }}{{',' if not loop.last}}
35 {% endfor %}
36 };
37
38 {% endif %}
39 {% endfor %}
40 } // namespace {{domain.domain | camelcase_to_hacker_style}}
41
42 } // namespace headless
43
44 #endif // HEADLESS_PUBLIC_DEVTOOLS_INTERNAL_TYPES_FORWARD_DECLARATION_{{domain. domain | camelcase_to_hacker_style | upper}}_H_
OLDNEW
« no previous file with comments | « headless/lib/browser/devtools_api/domain_types_cc.template ('k') | headless/lib/browser/devtools_api/domain_types_h.template » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698