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

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

Issue 2441163002: DevTools: clean up scripts folder (Closed)
Patch Set: Fix sys.path for chromevox to load rjsmin 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
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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 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)) 282 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))
283 283
284 Generator.go() 284 Generator.go()
285 285
286 backend_js_file = open(output_js_dirname + "/InspectorBackendCommands.js", "w") 286 backend_js_file = open(output_js_dirname + "/InspectorBackendCommands.js", "w")
287 287
288 backend_js_file.write(Templates.backend_js.substitute(None, 288 backend_js_file.write(Templates.backend_js.substitute(None,
289 domainInitializers="".join(Generator.backend_js_domain_initializer_list))) 289 domainInitializers="".join(Generator.backend_js_domain_initializer_list)))
290 290
291 backend_js_file.close() 291 backend_js_file.close()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698