Index: ui/base/test/ui_controls.h |
diff --git a/ui/base/test/ui_controls.h b/ui/base/test/ui_controls.h |
index 4fc54abb126c56a822c587540300e742c586f143..c1ed4be11ba8b58eb8f7e22ce2a9a048d6b95e64 100644 |
--- a/ui/base/test/ui_controls.h |
+++ b/ui/base/test/ui_controls.h |
@@ -10,6 +10,10 @@ |
#include "ui/events/keycodes/keyboard_codes.h" |
#include "ui/gfx/native_widget_types.h" |
+namespace gfx { |
+class Point; |
+} // namespace gfx |
+ |
namespace ui_controls { |
// A set of utility functions to generate native events in platform |
@@ -106,6 +110,20 @@ void InstallUIControlsAura(UIControlsAura* instance); |
// to traverse to the desired item; because the application is configured to |
// traverse more elements for accessibility reasons. |
bool IsFullKeyboardAccessEnabled(); |
+ |
+// When |enable_cgevents| is true, all simulated mouse events will be posted to |
+// the WindowServer, and the actual mouse will move on the screen. |
+void SetSendMouseEventsAsCGEvents(bool enable_cgevents); |
+bool SendMouseEventsAsCGEvents(); |
+ |
+// Invokes |task| when an application starts processing an event that matches |
+// |event|. |
+void NotifyWhenEventIsProcessed(NSEvent* event, const base::Closure& task); |
+ |
+// If |enable_override| is true, overrides result returned by +[NSEvent |
+// mouseLocation] to |p| without generating mouse move events. Override is in |
+// effect until called with |enable_override| == false. |
+void SetMousePositionOverride(bool enable_override, const gfx::Point& p); |
#endif |
} // namespace ui_controls |