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

Unified Diff: chrome/test/webdriver/server.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, 10 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/server.cc
===================================================================
--- chrome/test/webdriver/server.cc (revision 76851)
+++ chrome/test/webdriver/server.cc (working copy)
@@ -208,6 +208,8 @@
}
manager->set_chrome_dir(chrome_dir);
}
+ if (cmd_line->HasSwitch("native-events"))
+ manager->set_use_native_events(true);
// Initialize SHTTPD context.
// Listen on port 9515 or port specified on command line.
@@ -229,6 +231,9 @@
// so all other logging should happen after this.
std::cout << "Started ChromeDriver" << std::endl
<< "port=" << port << std::endl;
+ if (manager->use_native_events()) {
+ std::cout << "Using native events" << std::endl;
+ }
if (root.length()) {
VLOG(1) << "Serving files from the current working directory";

Powered by Google App Engine
This is Rietveld 408576698