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

Unified Diff: ui/base/test/cocoa_test_event_utils.h

Issue 8953037: Aura needs event translation for Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Nico's comment #5. Created 9 years 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
« no previous file with comments | « ui/base/keycodes/keyboard_code_conversion_mac.mm ('k') | ui/base/test/cocoa_test_event_utils.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « ui/base/keycodes/keyboard_code_conversion_mac.mm ('k') | ui/base/test/cocoa_test_event_utils.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698