| Index: ui/base/test/cocoa_test_event_utils.h
|
| diff --git a/ui/base/test/cocoa_test_event_utils.h b/ui/base/test/cocoa_test_event_utils.h
|
| index 121f33e85779c2a48cd213c4894a3d38bf398dd6..a16aa63946136b6dbb2bbd10b54a1884d2652ae0 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_
|
|
|