| OLD | NEW |
| 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 Loading... |
| 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() |
| OLD | NEW |