| Index: chrome/test/webdriver/automation.cc
|
| diff --git a/chrome/test/webdriver/automation.cc b/chrome/test/webdriver/automation.cc
|
| index de44bebfca7bc951705f5b985a55134f54d94671..33a275c724fdc863f3a31a1d06a7abf0c1d1670a 100644
|
| --- a/chrome/test/webdriver/automation.cc
|
| +++ b/chrome/test/webdriver/automation.cc
|
| @@ -341,6 +341,23 @@ void Automation::MouseDoubleClick(int tab_id,
|
| }
|
| }
|
|
|
| +void Automation::DragAndDropFilePaths(
|
| + int tab_id, const gfx::Point& location,
|
| + const std::vector<std::string>& 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) {
|
|
|