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

Unified Diff: chrome/test/webdriver/automation.cc

Issue 6630001: Allow webdriver users to choose between sending the key events when... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/webdriver/automation.cc
===================================================================
--- chrome/test/webdriver/automation.cc (revision 76851)
+++ chrome/test/webdriver/automation.cc (working copy)
@@ -242,11 +242,16 @@
void Automation::SendWebKeyEvent(int tab_id,
kkania 2011/03/10 00:28:58 I would prefer creating a separate method here for
timothe faudot 2011/03/10 05:34:32 Done. I created a SendNativeWebKeyEvent uses diffe
const WebKeyEvent& key_event,
+ bool use_native_events,
bool* success) {
std::string reply;
DictionaryValue dict;
- dict.SetString("command", "SendKeyEventToActiveTab");
+ if (use_native_events){
+ dict.SetString("command", "SendKeyEventToActiveBrowserWindow");
kkania 2011/03/10 00:28:58 Modify the command name to say something about the
timothe faudot 2011/03/10 05:34:32 Changed to SendOSLevelKeyEvent
+ } else {
+ dict.SetString("command", "SendKeyEventToActiveTab");
+ }
dict.SetInteger("type", key_event.type);
dict.SetInteger("nativeKeyCode", key_event.key_code);
dict.SetInteger("windowsKeyCode", key_event.key_code);

Powered by Google App Engine
This is Rietveld 408576698