summaryrefslogtreecommitdiffstats
path: root/chrome/test/automation
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-07 20:24:24 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-07 20:24:24 +0000
commit3351370c9cc1e3a3d2a23cf698561c013276d316 (patch)
tree3f8148f6d5ba2a7c28bdea8e358c64b62a550da9 /chrome/test/automation
parentec65780c4dddd415ab46ff3ecf39b4c5a75ef3f3 (diff)
downloadchromium_src-3351370c9cc1e3a3d2a23cf698561c013276d316.zip
chromium_src-3351370c9cc1e3a3d2a23cf698561c013276d316.tar.gz
chromium_src-3351370c9cc1e3a3d2a23cf698561c013276d316.tar.bz2
Make AutomationProvider::WindowSimulateDrag use SendInput instead of sending messages directly to the targeted window.
http://crbug.com/4067 Review URL: http://codereview.chromium.org/9485 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5014 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automation')
-rw-r--r--chrome/test/automation/automation_messages_internal.h4
-rw-r--r--chrome/test/automation/browser_proxy.cc6
2 files changed, 3 insertions, 7 deletions
diff --git a/chrome/test/automation/automation_messages_internal.h b/chrome/test/automation/automation_messages_internal.h
index e6cf72a..d6a321a8 100644
--- a/chrome/test/automation/automation_messages_internal.h
+++ b/chrome/test/automation/automation_messages_internal.h
@@ -293,8 +293,8 @@ IPC_BEGIN_MESSAGES(Automation, 0)
// defined in chrome/views/event.h
// Response:
// bool - true if the drag could be performed
- IPC_MESSAGE_ROUTED4(AutomationMsg_WindowDragRequest,
- int, std::vector<POINT>, int, bool)
+ IPC_MESSAGE_ROUTED5(AutomationMsg_WindowDragRequest,
+ int, POINT, POINT, int, bool)
IPC_MESSAGE_ROUTED1(AutomationMsg_WindowDragResponse, bool)
// Similar to AutomationMsg_InitialLoadsComplete, this indicates that the
diff --git a/chrome/test/automation/browser_proxy.cc b/chrome/test/automation/browser_proxy.cc
index ce47335..58543e1 100644
--- a/chrome/test/automation/browser_proxy.cc
+++ b/chrome/test/automation/browser_proxy.cc
@@ -247,13 +247,9 @@ bool BrowserProxy::SimulateDragWithTimeout(const POINT& start,
if (!is_valid())
return false;
- std::vector<POINT> drag_path;
- drag_path.push_back(start);
- drag_path.push_back(end);
-
IPC::Message* response = NULL;
bool succeeded = sender_->SendAndWaitForResponseWithTimeout(
- new AutomationMsg_WindowDragRequest(0, handle_, drag_path, flags,
+ new AutomationMsg_WindowDragRequest(0, handle_, start, end, flags,
press_escape_en_route),
&response, AutomationMsg_WindowDragResponse::ID, timeout_ms, is_timeout);