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

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: remove |is_synthetic|, fixed bug for mouse acks, add test for mouse events 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 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 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 "IO.read", 667 "IO.read",
668 "Input.dispatchKeyEvent",
669 "Input.dispatchMouseEvent",
668 "Input.synthesizePinchGesture", 670 "Input.synthesizePinchGesture",
669 "Input.synthesizeScrollGesture", 671 "Input.synthesizeScrollGesture",
670 "Input.synthesizeTapGesture", 672 "Input.synthesizeTapGesture",
671 "Tracing.start", 673 "Tracing.start",
672 "Tracing.end", 674 "Tracing.end",
673 "Tracing.getCategories", 675 "Tracing.getCategories",
674 "Tracing.requestMemoryDump", 676 "Tracing.requestMemoryDump",
675 "SystemInfo.getInfo", 677 "SystemInfo.getInfo",
676 "Tethering.bind", 678 "Tethering.bind",
677 "Tethering.unbind"] 679 "Tethering.unbind"]
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
836 output_h_file.close() 838 output_h_file.close()
837 839
838 output_cc_file.write(template_cc.substitute({}, 840 output_cc_file.write(template_cc.substitute({},
839 major = blink_protocol["version"]["major"], 841 major = blink_protocol["version"]["major"],
840 minor = blink_protocol["version"]["minor"], 842 minor = blink_protocol["version"]["minor"],
841 includes = "".join(sorted(includes)), 843 includes = "".join(sorted(includes)),
842 fields_init = ",\n ".join(fields_init), 844 fields_init = ",\n ".join(fields_init),
843 methods = "\n".join(handler_method_impls), 845 methods = "\n".join(handler_method_impls),
844 types = "\n".join(type_impls))) 846 types = "\n".join(type_impls)))
845 output_cc_file.close() 847 output_cc_file.close()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698