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

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

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.h
===================================================================
--- chrome/test/webdriver/automation.h (revision 78866)
+++ chrome/test/webdriver/automation.h (working copy)
@@ -55,10 +55,19 @@
std::string* result,
bool* success);
- // Sends a key event to the current browser. Waits until the key has
+ // Sends a webkit key event to the current browser. Waits until the key has
// been processed by the web page.
- void SendWebKeyEvent(int tab_id, const WebKeyEvent& key_event, bool* success);
+ void SendWebKeyEvent(int tab_id,
+ const WebKeyEvent& key_event,
+ bool* success);
+ // Sends an OS level key event to the current browser. Waits until the key
+ // has been processed by the browser.
+ void SendNativeKeyEvent(int tab_id,
+ ui::KeyboardCode key_code,
+ int modifiers,
+ bool* success);
+
void NavigateToURL(int tab_id, const std::string& url, bool* success);
void GoForward(int tab_id, bool* success);
void GoBack(int tab_id, bool* success);

Powered by Google App Engine
This is Rietveld 408576698