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

Unified Diff: third_party/inspector_protocol/templates/Exported_h.template

Issue 2553513002: [inspector] Roll inspector_protocol to c65b17da8a32bc6ab25b4ebbef1008f23c69e7d1. (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: third_party/inspector_protocol/templates/Exported_h.template
diff --git a/third_party/inspector_protocol/templates/Exported_h.template b/third_party/inspector_protocol/templates/Exported_h.template
index 3357f95b5ef1597049b157f55ba6978bebad22c1..3d36ecffae3ca3db733b807661222a067a0801c7 100644
--- a/third_party/inspector_protocol/templates/Exported_h.template
+++ b/third_party/inspector_protocol/templates/Exported_h.template
@@ -20,7 +20,7 @@ namespace API {
// ------------- Enums.
{% for type in domain.types %}
- {% if ("enum" in type) and type.exported %}
+ {% if ("enum" in type) and protocol.is_exported(domain.domain, type.id) %}
namespace {{type.id}}Enum {
{% for literal in type.enum %}
@@ -31,7 +31,7 @@ namespace {{type.id}}Enum {
{% endfor %}
{% for command in join_arrays(domain, ["commands", "events"]) %}
{% for param in join_arrays(command, ["parameters", "returns"]) %}
- {% if ("enum" in param) and (param.exported) %}
+ {% if ("enum" in param) and protocol.is_exported(domain.domain, command.name + "." + param.name) %}
namespace {{command.name | to_title_case}} {
namespace {{param.name | to_title_case}}Enum {
@@ -46,7 +46,7 @@ namespace {{param.name | to_title_case}}Enum {
// ------------- Types.
{% for type in domain.types %}
- {% if not (type.type == "object") or not ("properties" in type) or not (type.exported) %}{% continue %}{% endif %}
+ {% if not (type.type == "object") or not ("properties" in type) or not protocol.is_exported(domain.domain, type.id) %}{% continue %}{% endif %}
class {{config.exported.export_macro}} {{type.id}} {
public:
« no previous file with comments | « third_party/inspector_protocol/CodeGenerator.py ('k') | third_party/inspector_protocol/templates/Imported_h.template » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698