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

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

Issue 6482014: Implement sendKeys webdriver API in ChromeDriver. (Closed) Base URL: svn://chrome-svn/chrome/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/session.h
===================================================================
--- chrome/test/webdriver/session.h (revision 74135)
+++ chrome/test/webdriver/session.h (working copy)
@@ -8,6 +8,8 @@
#include <string>
#include "base/scoped_ptr.h"
+#include "base/string16.h"
+#include "base/values.h"
#include "chrome/test/webdriver/automation.h"
#include "chrome/test/webdriver/error_codes.h"
@@ -42,6 +44,9 @@
const ListValue* const args,
Value** value);
+ // Send the given keys to the given element dictionary. This function takes
+ // ownership of |element|.
+ ErrorCode SendKeys(DictionaryValue* element, const string16& keys);
bool NavigateToURL(const std::string& url);
bool GoForward();
@@ -78,6 +83,7 @@
base::WaitableEvent* done_event);
void InitOnSessionThread(bool* success);
void TerminateOnSessionThread();
+ void SendKeysOnSessionThread(const string16& keys, bool* success);
scoped_ptr<Automation> automation_;
base::Thread thread_;

Powered by Google App Engine
This is Rietveld 408576698