| Index: chrome/test/webdriver/automation.cc
|
| ===================================================================
|
| --- chrome/test/webdriver/automation.cc (revision 77600)
|
| +++ chrome/test/webdriver/automation.cc (working copy)
|
| @@ -219,6 +219,7 @@
|
|
|
| void Automation::SendWebKeyEvent(int tab_id,
|
| const WebKeyEvent& key_event,
|
| + bool use_native_events,
|
| bool* success) {
|
| int windex = 0, tab_index = 0;
|
| if (!GetIndicesForTab(tab_id, &windex, &tab_index)) {
|
| @@ -226,8 +227,13 @@
|
| return;
|
| }
|
|
|
| - *success = SendWebKeyEventJSONRequest(
|
| - automation(), windex, tab_index, key_event);
|
| + if (use_native_events) {
|
| + *success = SendNativeWebKeyEventJSONRequest(
|
| + automation(), windex, tab_index, key_event);
|
| + } else {
|
| + *success = SendWebKeyEventJSONRequest(
|
| + automation(), windex, tab_index, key_event);
|
| + }
|
| }
|
|
|
| void Automation::NavigateToURL(int tab_id,
|
|
|