summaryrefslogtreecommitdiffstats
path: root/ui/base/test/cocoa_test_event_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/base/test/cocoa_test_event_utils.h')
-rw-r--r--ui/base/test/cocoa_test_event_utils.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/ui/base/test/cocoa_test_event_utils.h b/ui/base/test/cocoa_test_event_utils.h
index 121f33e..a16aa63 100644
--- a/ui/base/test/cocoa_test_event_utils.h
+++ b/ui/base/test/cocoa_test_event_utils.h
@@ -32,7 +32,7 @@ namespace cocoa_test_event_utils {
// basic, flesh out as needed. Points are all in window coordinates;
// where the window is not specified, coordinate system is undefined
// (but will be repeated when the event is queried).
-NSEvent* MakeMouseEvent(NSEventType type, NSUInteger modifiers);
+NSEvent* MouseEventWithType(NSEventType type, NSUInteger modifiers);
NSEvent* MouseEventAtPoint(NSPoint point, NSEventType type,
NSUInteger modifiers);
NSEvent* LeftMouseDownAtPoint(NSPoint point);
@@ -46,6 +46,15 @@ std::pair<NSEvent*, NSEvent*> MouseClickInView(NSView* view,
// Returns a key event with the given character.
NSEvent* KeyEventWithCharacter(unichar c);
+// Returns a key event with the given type and modifier flags.
+NSEvent* KeyEventWithType(NSEventType event_type, NSUInteger modifiers);
+
+// Returns a mouse enter/exit event with the given type.
+NSEvent* EnterExitEventWithType(NSEventType event_type);
+
+// Return an "other" event with the given type.
+NSEvent* OtherEventWithType(NSEventType event_type);
+
} // namespace cocoa_test_event_utils
#endif // UI_BASE_TEST_COCOA_TEST_EVENT_UTILS_H_