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

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

Issue 2109243003: Introduce --remote-debugging-frontend switch for custom remote debugging front-end (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: support absolute path instead of HTTP endpoint Created 4 years, 5 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sdk/module.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 # Copyright (c) 2012 Intel Corporation. All rights reserved. 3 # Copyright (c) 2012 Intel Corporation. All rights reserved.
4 # 4 #
5 # Redistribution and use in source and binary forms, with or without 5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions are 6 # modification, are permitted provided that the following conditions are
7 # met: 7 # met:
8 # 8 #
9 # * Redistributions of source code must retain the above copyright 9 # * Redistributions of source code must retain the above copyright
10 # notice, this list of conditions and the following disclaimer. 10 # notice, this list of conditions and the following disclaimer.
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 js_reply_list = "[%s]" % ", ".join(backend_js_reply_param_list) 270 js_reply_list = "[%s]" % ", ".join(backend_js_reply_param_list)
271 if "error" in json_command: 271 if "error" in json_command:
272 has_error_data_param = "true" 272 has_error_data_param = "true"
273 else: 273 else:
274 has_error_data_param = "false" 274 has_error_data_param = "false"
275 275
276 Generator.backend_js_domain_initializer_list.append("InspectorBackend.re gisterCommand(\"%s.%s\", [%s], %s, %s);\n" % (domain_name, json_command_name, js _parameters_text, js_reply_list, has_error_data_param)) 276 Generator.backend_js_domain_initializer_list.append("InspectorBackend.re gisterCommand(\"%s.%s\", [%s], %s, %s);\n" % (domain_name, json_command_name, js _parameters_text, js_reply_list, has_error_data_param))
277 277
278 Generator.go() 278 Generator.go()
279 279
280 backend_js_file = open(output_js_dirname + "/InspectorBackendCommands.js", "w") 280 backend_js_file = open(output_js_dirname + "/gen/InspectorBackendCommands.js", " w")
281 281
282 backend_js_file.write(Templates.backend_js.substitute(None, 282 backend_js_file.write(Templates.backend_js.substitute(None,
283 domainInitializers="".join(Generator.backend_js_domain_initializer_list))) 283 domainInitializers="".join(Generator.backend_js_domain_initializer_list)))
284 284
285 backend_js_file.close() 285 backend_js_file.close()
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sdk/module.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698