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

Side by Side Diff: content/browser/devtools/protocol/devtools_protocol_handler_generator.py

Issue 2387353004: Delay Input.dispatchKeyEvent response until after key event ack. (Closed)
Patch Set: undo weakptr change, rebase to pull in dgozman's fix (crrev.com/437658) Created 4 years 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 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 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 "Network.setCookie", 656 "Network.setCookie",
657 "Network.canEmulateNetworkConditions", 657 "Network.canEmulateNetworkConditions",
658 "Network.emulateNetworkConditions"] 658 "Network.emulateNetworkConditions"]
659 async_commands_list = [ 659 async_commands_list = [
660 "Page.getResourceContent", 660 "Page.getResourceContent",
661 "Page.searchInResource", 661 "Page.searchInResource",
662 "Page.captureScreenshot", 662 "Page.captureScreenshot",
663 "Network.getCookies", 663 "Network.getCookies",
664 "Network.deleteCookie", 664 "Network.deleteCookie",
665 "Network.setCookie", 665 "Network.setCookie",
666 "Input.dispatchKeyEvent",
667 "Input.dispatchMouseEvent",
666 "Input.synthesizePinchGesture", 668 "Input.synthesizePinchGesture",
667 "Input.synthesizeScrollGesture", 669 "Input.synthesizeScrollGesture",
668 "Input.synthesizeTapGesture"] 670 "Input.synthesizeTapGesture"]
669 671
670 for json_domain in all_domains: 672 for json_domain in all_domains:
671 domain_map = {} 673 domain_map = {}
672 domain_map["Domain"] = json_domain["domain"] 674 domain_map["Domain"] = json_domain["domain"]
673 domain_map["domain"] = Uncamelcase(json_domain["domain"]) 675 domain_map["domain"] = Uncamelcase(json_domain["domain"])
674 676
675 initializations = [] 677 initializations = []
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 output_h_file.close() 829 output_h_file.close()
828 830
829 output_cc_file.write(template_cc.substitute({}, 831 output_cc_file.write(template_cc.substitute({},
830 major = blink_protocol["version"]["major"], 832 major = blink_protocol["version"]["major"],
831 minor = blink_protocol["version"]["minor"], 833 minor = blink_protocol["version"]["minor"],
832 includes = "".join(sorted(includes)), 834 includes = "".join(sorted(includes)),
833 fields_init = ",\n ".join(fields_init), 835 fields_init = ",\n ".join(fields_init),
834 methods = "\n".join(handler_method_impls), 836 methods = "\n".join(handler_method_impls),
835 types = "\n".join(type_impls))) 837 types = "\n".join(type_impls)))
836 output_cc_file.close() 838 output_cc_file.close()
OLDNEW
« no previous file with comments | « content/browser/devtools/protocol/devtools_protocol_browsertest.cc ('k') | content/browser/devtools/protocol/input_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698