Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4619)

Unified Diff: chrome/browser/automation/ui_controls.h

Issue 174113: Linux: more interactive tests porting.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: compile fixes Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/automation/automation_provider.cc ('k') | chrome/browser/automation/ui_controls_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/ui_controls.h
===================================================================
--- chrome/browser/automation/ui_controls.h (revision 23786)
+++ chrome/browser/automation/ui_controls.h (working copy)
@@ -46,15 +46,9 @@
bool control, bool shift,
bool alt, Task* task);
-// Send a key down event. Use VK_CONTROL for ctrl key,
-// VK_MENU for alt key and VK_SHIFT for shift key.
-// Refer MSDN for more virtual key codes.
-bool SendKeyDown(wchar_t key);
-bool SendKeyUp(wchar_t key);
-
// Simulate a mouse move. (x,y) are absolute screen coordinates.
bool SendMouseMove(long x, long y);
-void SendMouseMoveNotifyWhenDone(long x, long y, Task* task);
+bool SendMouseMoveNotifyWhenDone(long x, long y, Task* task);
enum MouseButton {
LEFT = 0,
@@ -73,8 +67,9 @@
void SendMouseEventsNotifyWhenDone(MouseButton type, int state, Task* task);
// Simulate a single mouse click with given button type.
-bool SendMouseClick(gfx::NativeWindow window, const gfx::Point& point,
- MouseButton type);
+// The click will be sent to whichever window is under the cursor, so make sure
+// the cursor is where you want it before calling this.
+bool SendMouseClick(const gfx::Point& point, MouseButton type);
// A combination of SendMouseMove to the middle of the view followed by
// SendMouseEvents.
« no previous file with comments | « chrome/browser/automation/automation_provider.cc ('k') | chrome/browser/automation/ui_controls_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698