summaryrefslogtreecommitdiffstats
path: root/chrome/browser/automation/ui_controls.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/automation/ui_controls.h')
-rw-r--r--chrome/browser/automation/ui_controls.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/chrome/browser/automation/ui_controls.h b/chrome/browser/automation/ui_controls.h
index 509ee78..b8781e2 100644
--- a/chrome/browser/automation/ui_controls.h
+++ b/chrome/browser/automation/ui_controls.h
@@ -5,12 +5,17 @@
#ifndef CHROME_BROWSER_AUTOMATION_UI_CONTROLS_H_
#define CHROME_BROWSER_AUTOMATION_UI_CONTROLS_H_
+#include "build/build_config.h"
+
#include <string>
#if defined(OS_WIN)
#include <wtypes.h>
#endif
+#include "base/gfx/native_widget_types.h"
+#include "base/gfx/point.h"
+
namespace views {
class View;
}
@@ -24,7 +29,8 @@ namespace ui_controls {
// Once the generated event is processed the Task is Run (and deleted).
// Send a key press with/without modifier keys.
-bool SendKeyPress(wchar_t key, bool control, bool shift, bool alt);
+bool SendKeyPress(gfx::NativeWindow window, wchar_t key, bool control,
+ bool shift, bool alt);
bool SendKeyPressNotifyWhenDone(wchar_t key, bool control, bool shift,
bool alt, Task* task);
@@ -55,7 +61,8 @@ bool SendMouseEvents(MouseButton type, int state);
void SendMouseEventsNotifyWhenDone(MouseButton type, int state, Task* task);
// Simulate a single mouse click with given button type.
-bool SendMouseClick(MouseButton type);
+bool SendMouseClick(gfx::NativeWindow window, const gfx::Point& point,
+ MouseButton type);
// A combination of SendMouseMove to the middle of the view followed by
// SendMouseEvents.