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

Side by Side Diff: third_party/WebKit/Source/devtools/scripts/build/generate_protocol_externs.py

Issue 2903473002: DevTools: Promisify Target domain (Closed)
Patch Set: Created 3 years, 7 months 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
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2011 Google Inc. All rights reserved. 2 # Copyright (c) 2011 Google Inc. All rights reserved.
3 # 3 #
4 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are 5 # modification, are permitted provided that the following conditions are
6 # met: 6 # met:
7 # 7 #
8 # * Redistributions of source code must retain the above copyright 8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer. 9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above 10 # * Redistributions in binary form must reproduce the above
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 "CacheStorage", 53 "CacheStorage",
54 "CSS", 54 "CSS",
55 "Debugger", 55 "Debugger",
56 "DOM", 56 "DOM",
57 "DOMDebugger", 57 "DOMDebugger",
58 "IndexedDB", 58 "IndexedDB",
59 "LayerTree", 59 "LayerTree",
60 "Network", 60 "Network",
61 "Page", 61 "Page",
62 "Runtime", 62 "Runtime",
63 "Target",
pfeldman 2017/05/23 19:10:25 What does it mean?
64 ]) 63 ])
65 64
66 65
67 def full_qualified_type_id(domain_name, type_id): 66 def full_qualified_type_id(domain_name, type_id):
68 if type_id.find(".") == -1: 67 if type_id.find(".") == -1:
69 return "%s.%s" % (domain_name, type_id) 68 return "%s.%s" % (domain_name, type_id)
70 return type_id 69 return type_id
71 70
72 71
73 def fix_camel_case(name): 72 def fix_camel_case(name):
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 import sys 283 import sys
285 import os.path 284 import os.path
286 program_name = os.path.basename(__file__) 285 program_name = os.path.basename(__file__)
287 if len(sys.argv) < 5 or sys.argv[1] != "-o": 286 if len(sys.argv) < 5 or sys.argv[1] != "-o":
288 sys.stderr.write("Usage: %s -o OUTPUT_FILE INPUT_FILE_1 INPUT_FILE_2\n" % program_name) 287 sys.stderr.write("Usage: %s -o OUTPUT_FILE INPUT_FILE_1 INPUT_FILE_2\n" % program_name)
289 exit(1) 288 exit(1)
290 output_path = sys.argv[2] 289 output_path = sys.argv[2]
291 input_path_1 = sys.argv[3] 290 input_path_1 = sys.argv[3]
292 input_path_2 = sys.argv[4] 291 input_path_2 = sys.argv[4]
293 generate_protocol_externs(output_path, input_path_1, input_path_2) 292 generate_protocol_externs(output_path, input_path_1, input_path_2)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698