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

Unified Diff: third_party/inspector_protocol/CodeGenerator.py

Issue 2572643002: Roll third_party/inspector_protocol to 344219890fe40130571f5a5b17f261a654e3b8cc. (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
« no previous file with comments | « no previous file | third_party/inspector_protocol/README.chromium » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/inspector_protocol/CodeGenerator.py
diff --git a/third_party/inspector_protocol/CodeGenerator.py b/third_party/inspector_protocol/CodeGenerator.py
index 8b28d136097729b3d46573191c1a8adcc4f71fbf..1bc95351726c9e848bbe11db2c6e837d8e7b23b9 100644
--- a/third_party/inspector_protocol/CodeGenerator.py
+++ b/third_party/inspector_protocol/CodeGenerator.py
@@ -440,6 +440,12 @@ class Protocol(object):
return self.check_options(self.config.protocol.options, domain, event, "include_events", "exclude_events", True)
+ def generate_type(self, domain, typename):
+ if not self.config.protocol.options:
+ return domain in self.generate_domains
+ return self.check_options(self.config.protocol.options, domain, typename, "include_types", "exclude_types", True)
+
+
def is_async_command(self, domain, command):
if not self.config.protocol.options:
return False
@@ -473,6 +479,10 @@ class Protocol(object):
return True
+ def is_imported_dependency(self, domain):
+ return domain in self.generate_domains or domain in self.imported_domains
+
+
def main():
jinja_dir, config_file, config = read_config()
« no previous file with comments | « no previous file | third_party/inspector_protocol/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698