Chromium Code Reviews| Index: chrome/test/webdriver/automation.cc |
| =================================================================== |
| --- chrome/test/webdriver/automation.cc (revision 77771) |
| +++ chrome/test/webdriver/automation.cc (working copy) |
| @@ -217,6 +217,20 @@ |
| automation(), windex, tab_index, start.x(), start.y(), end.x(), end.y()); |
| } |
| +void Automation::SendNativeKeyEvent(int tab_id, |
| + ui::KeyboardCode keycode, |
| + int modifiers, |
| + bool* success) { |
| + int windex = 0, tab_index = 0; |
| + if (!GetIndicesForTab(tab_id, &windex, &tab_index)) { |
| + *success = false; |
| + return; |
| + } |
| + *success = SendNativeKeyEventJSONRequest( |
| + automation(), windex, tab_index, keycode, modifiers); |
|
kkania
2011/03/11 16:32:13
key_code
timothe
2011/03/21 18:02:05
Done.
|
| +} |
| + |
| + |
| void Automation::SendWebKeyEvent(int tab_id, |
| const WebKeyEvent& key_event, |
| bool* success) { |
| @@ -225,7 +239,6 @@ |
| *success = false; |
| return; |
| } |
| - |
| *success = SendWebKeyEventJSONRequest( |
| automation(), windex, tab_index, key_event); |
| } |