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

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

Issue 164446: linux: More automation porting. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: automation ipc messages hack fix 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
Index: chrome/browser/automation/ui_controls.h
===================================================================
--- chrome/browser/automation/ui_controls.h (revision 23277)
+++ chrome/browser/automation/ui_controls.h (working copy)
@@ -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 @@
// 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 @@
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.

Powered by Google App Engine
This is Rietveld 408576698