| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 import sys | 6 import sys |
| 7 import string | 7 import string |
| 8 import json | 8 import json |
| 9 | 9 |
| 10 blink_protocol_path = sys.argv[1] | 10 blink_protocol_path = sys.argv[1] |
| (...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 657 "Network.setCookie", | 657 "Network.setCookie", |
| 658 "Network.canEmulateNetworkConditions", | 658 "Network.canEmulateNetworkConditions", |
| 659 "Network.emulateNetworkConditions"] | 659 "Network.emulateNetworkConditions"] |
| 660 async_commands_list = [ | 660 async_commands_list = [ |
| 661 "Page.getResourceContent", | 661 "Page.getResourceContent", |
| 662 "Page.searchInResource", | 662 "Page.searchInResource", |
| 663 "Page.captureScreenshot", | 663 "Page.captureScreenshot", |
| 664 "Network.getCookies", | 664 "Network.getCookies", |
| 665 "Network.deleteCookie", | 665 "Network.deleteCookie", |
| 666 "Network.setCookie", | 666 "Network.setCookie", |
| 667 "Input.dispatchKeyEvent", |
| 668 "Input.dispatchMouseEvent", |
| 667 "Input.synthesizePinchGesture", | 669 "Input.synthesizePinchGesture", |
| 668 "Input.synthesizeScrollGesture", | 670 "Input.synthesizeScrollGesture", |
| 669 "Input.synthesizeTapGesture", | 671 "Input.synthesizeTapGesture", |
| 670 "SystemInfo.getInfo", | 672 "SystemInfo.getInfo", |
| 671 "Tethering.bind", | 673 "Tethering.bind", |
| 672 "Tethering.unbind"] | 674 "Tethering.unbind"] |
| 673 | 675 |
| 674 for json_domain in all_domains: | 676 for json_domain in all_domains: |
| 675 domain_map = {} | 677 domain_map = {} |
| 676 domain_map["Domain"] = json_domain["domain"] | 678 domain_map["Domain"] = json_domain["domain"] |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 831 output_h_file.close() | 833 output_h_file.close() |
| 832 | 834 |
| 833 output_cc_file.write(template_cc.substitute({}, | 835 output_cc_file.write(template_cc.substitute({}, |
| 834 major = blink_protocol["version"]["major"], | 836 major = blink_protocol["version"]["major"], |
| 835 minor = blink_protocol["version"]["minor"], | 837 minor = blink_protocol["version"]["minor"], |
| 836 includes = "".join(sorted(includes)), | 838 includes = "".join(sorted(includes)), |
| 837 fields_init = ",\n ".join(fields_init), | 839 fields_init = ",\n ".join(fields_init), |
| 838 methods = "\n".join(handler_method_impls), | 840 methods = "\n".join(handler_method_impls), |
| 839 types = "\n".join(type_impls))) | 841 types = "\n".join(type_impls))) |
| 840 output_cc_file.close() | 842 output_cc_file.close() |
| OLD | NEW |