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

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

Issue 809773006: MacViews: Intercept events for Menus (after AppKit has interpreted keystrokes) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20141205-MacViews-AcceleratedWidget-PLUS-AddingLayers-fromcl-PLUS-bringup
Patch Set: A few more cleanups Created 5 years, 11 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
« no previous file with comments | « ui/events/keycodes/keyboard_code_conversion_mac.mm ('k') | ui/events/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/events/test/cocoa_test_event_utils.h
diff --git a/ui/events/test/cocoa_test_event_utils.h b/ui/events/test/cocoa_test_event_utils.h
index 76c6a32fec5dd424f20ed164cbdacf696229d375..6f6beb0337da59eda6a7ce5eba7e55f308e60c85 100644
--- a/ui/events/test/cocoa_test_event_utils.h
+++ b/ui/events/test/cocoa_test_event_utils.h
@@ -10,6 +10,7 @@
#import <objc/objc-class.h>
#include "base/basictypes.h"
+#include "ui/events/keycodes/keyboard_codes.h"
namespace cocoa_test_event_utils {
@@ -48,6 +49,15 @@ NSEvent* EnterExitEventWithType(NSEventType event_type);
// Return an "other" event with the given type.
NSEvent* OtherEventWithType(NSEventType event_type);
+// Time interval since system startup. Tests shouldn't rely on this.
+NSTimeInterval TimeIntervalSinceSystemStartup();
+
+// Creates a key event in a particular window.
+NSEvent* SynthesizeKeyEvent(NSWindow* window,
+ bool keyDown,
+ ui::KeyboardCode keycode,
+ NSUInteger flags);
+
} // namespace cocoa_test_event_utils
#endif // UI_EVENTS_TEST_COCOA_TEST_EVENT_UTILS_H_
« no previous file with comments | « ui/events/keycodes/keyboard_code_conversion_mac.mm ('k') | ui/events/test/cocoa_test_event_utils.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698