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

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

Issue 7055004: File upload API in chromedriver (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixing broken build on Windows Created 9 years, 6 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
diff --git a/chrome/test/webdriver/automation.cc b/chrome/test/webdriver/automation.cc
index 294f0cdbdd27833f38ff0653e906a1838877c1e4..91dd43a562ff119219439f7638864854fa9a162c 100644
--- a/chrome/test/webdriver/automation.cc
+++ b/chrome/test/webdriver/automation.cc
@@ -342,6 +342,23 @@ void Automation::MouseDoubleClick(int tab_id,
}
}
+void Automation::DragAndDropFilePaths(
+ int tab_id, const gfx::Point& location,
+ const std::vector<FilePath::StringType>& paths, Error** error) {
+ int windex = 0, tab_index = 0;
+ *error = GetIndicesForTab(tab_id, &windex, &tab_index);
+ if (*error) {
+ return;
+ }
+
+ std::string error_msg;
+ if (!SendDragAndDropFilePathsJSONRequest(
+ automation(), windex, tab_index, location.x(), location.y(), paths,
+ &error_msg)) {
+ *error = new Error(kUnknownError, error_msg);
+ }
+}
+
void Automation::SendWebKeyEvent(int tab_id,
const WebKeyEvent& key_event,
Error** error) {
« 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