Index: chrome/test/base/interactive_test_utils.h |
diff --git a/chrome/test/base/interactive_test_utils.h b/chrome/test/base/interactive_test_utils.h |
index f0ccc770f2a8cfae8ca6437cdfc83364527badf7..49fddc9273491e6475c096b39c74046afbc9a277 100644 |
--- a/chrome/test/base/interactive_test_utils.h |
+++ b/chrome/test/base/interactive_test_utils.h |
@@ -21,6 +21,16 @@ class View; |
namespace ui_test_utils { |
+// Moves the mouse to the |from| position, presses left mouse button, |
+// then moves mouse to the |to| position, waits the |delay|, releases left mouse |
+// button. |
+// |steps| indicates number of intermediate points that are interpolated between |
+// |from| and |to|. |
+void DragAndDrop(const gfx::Point& from, |
+ const gfx::Point& to, |
+ base::TimeDelta delay = base::TimeDelta(), |
+ unsigned int steps = 1); |
+ |
// Brings the native window for |browser| to the foreground. Returns true on |
// success. |
bool BringBrowserWindowToFront(const Browser* browser) WARN_UNUSED_RESULT; |