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

Side by Side Diff: chrome/test/data/extensions/test_file_with_ctrl-d_keybinding.html

Issue 2503453003: Remove all calls to domAutomationController.setAutomationId.
Patch Set: Fix nacl_browsertest_util.cc Created 3 years, 5 months 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 <head> 1 <head>
2 <script type="text/javascript"> 2 <script type="text/javascript">
3 var ctrlDown = false; 3 var ctrlDown = false;
4 document.onkeyup = function(e) { 4 document.onkeyup = function(e) {
5 // Ctrl is 17, left Command is 91, right Command is 93 5 // Ctrl is 17, left Command is 91, right Command is 93
6 if (e.keyCode == 17 || e.keyCode == 91 || e.keyCode == 93) 6 if (e.keyCode == 17 || e.keyCode == 91 || e.keyCode == 93)
7 ctrlDown = false; 7 ctrlDown = false;
8 } 8 }
9 document.onkeydown = function(e) { 9 document.onkeydown = function(e) {
10 // Ctrl is 17, left Command is 91, right Command is 93 10 // Ctrl is 17, left Command is 91, right Command is 93
11 if (e.keyCode == 17 || e.keyCode == 91 || e.keyCode == 93) { 11 if (e.keyCode == 17 || e.keyCode == 91 || e.keyCode == 93) {
12 ctrlDown = true; 12 ctrlDown = true;
13 } else if (String.fromCharCode(e.keyCode) == 'D' && ctrlDown) { 13 } else if (String.fromCharCode(e.keyCode) == 'D' && ctrlDown) {
14 window.domAutomationController.setAutomationId(0);
15 window.domAutomationController.send('web page received'); 14 window.domAutomationController.send('web page received');
16 return false; 15 return false;
17 } 16 }
18 }; 17 };
19 </script> 18 </script>
20 </head> 19 </head>
OLDNEW
« no previous file with comments | « chrome/test/data/drag_and_drop/event_monitoring.js ('k') | chrome/test/data/gpu/canvas_popup.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698