| Index: chrome/test/webdriver/automation.cc
|
| diff --git a/chrome/test/webdriver/automation.cc b/chrome/test/webdriver/automation.cc
|
| index 1a0f9d2b07835a678c7c16d4d4a4cdd7870c93af..fc0b2c4f8e9621c2c6b445734bca0945ef3a1034 100644
|
| --- a/chrome/test/webdriver/automation.cc
|
| +++ b/chrome/test/webdriver/automation.cc
|
| @@ -308,6 +308,23 @@ void Automation::MouseDoubleClick(int tab_id,
|
| }
|
| }
|
|
|
| +void Automation::SetFilePathsToFileUploadControl(
|
| + 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 (!SendSetFilePathsToFileUploadControlJSONRequest(
|
| + automation(), windex, tab_index, location.x(), location.y(), paths,
|
| + &error_msg)) {
|
| + *error = CreateChromeError(error_msg);
|
| + }
|
| +}
|
| +
|
| void Automation::SendWebKeyEvent(int tab_id,
|
| const WebKeyEvent& key_event,
|
| Error** error) {
|
|
|