Index: chrome_frame/test/simulate_input.h |
diff --git a/chrome_frame/test/simulate_input.h b/chrome_frame/test/simulate_input.h |
index 135c310a7f4e293c414fa0506da22428f261ab88..fab22a81b0c0f5b7ef4a3105e17cd5e9abba298a 100644 |
--- a/chrome_frame/test/simulate_input.h |
+++ b/chrome_frame/test/simulate_input.h |
@@ -37,8 +37,11 @@ void SetKeyboardFocusToWindow(HWND window); |
void SendMnemonic(WORD mnemonic_char, Modifier modifiers, bool extended, |
bool unicode); |
-// Sends a mouse click to the window passed in. |
+// Sends a mouse click to the desktop. |
enum MouseButton { LEFT, RIGHT, MIDDLE, X }; |
+void SendMouseClick(int x, int y, MouseButton button); |
+// Sends a mouse click to the window passed in, after ensuring that the window |
+// is in the foreground. |
void SendMouseClick(HWND window, int x, int y, MouseButton button); |
// Translates a single char to a virtual key. |