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

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
« no previous file with comments | « chrome/test/webdriver/automation.h ('k') | chrome/test/webdriver/chromedriver_tests.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/webdriver/automation.cc
===================================================================
--- chrome/test/webdriver/automation.cc (revision 79882)
+++ chrome/test/webdriver/automation.cc (working copy)
@@ -227,11 +227,23 @@
*success = false;
return;
}
-
*success = SendWebKeyEventJSONRequest(
automation(), windex, tab_index, key_event);
}
+void Automation::SendNativeKeyEvent(int tab_id,
+ ui::KeyboardCode key_code,
+ 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, key_code, modifiers);
+}
+
void Automation::CaptureEntirePageAsPNG(int tab_id,
const FilePath& path,
bool* success) {
« no previous file with comments | « chrome/test/webdriver/automation.h ('k') | chrome/test/webdriver/chromedriver_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698