Index: chrome_frame/test/simulate_input.h |
=================================================================== |
--- chrome_frame/test/simulate_input.h (revision 48538) |
+++ chrome_frame/test/simulate_input.h (working copy) |
@@ -37,8 +37,11 @@ |
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. |