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

Unified Diff: base/event_types.h

Issue 8953037: Aura needs event translation for Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « no previous file | ui/base/cocoa/events_mac.mm » ('j') | ui/base/cocoa/events_mac.mm » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/event_types.h
diff --git a/base/event_types.h b/base/event_types.h
index a1b78f6db2cff8fd72e9f2434bede7662aa04ccd..87abda8c72de7c70b88a330f2dca132ab20fd3f3 100644
--- a/base/event_types.h
+++ b/base/event_types.h
@@ -18,6 +18,12 @@ union WaylandEvent;
}
#elif defined(USE_X11)
typedef union _XEvent XEvent;
+#elif defined(OS_MACOSX)
+#if defined(__OBJC__)
+#import <AppKit/NSEvent.h>
Nico 2011/12/19 20:54:49 isn't "@class NSEvent;" enough?
+#else // __OBJC__
+class NSEvent;
+#endif // __OBJC__
#endif
namespace base {
@@ -29,6 +35,8 @@ typedef MSG NativeEvent;
typedef wayland::WaylandEvent* NativeEvent;
#elif defined(USE_X11)
typedef XEvent* NativeEvent;
+#elif defined(OS_MACOSX)
+typedef NSEvent* NativeEvent;
#else
typedef void* NativeEvent;
Nico 2011/12/19 20:54:49 Why is the concept of "event" something that belon
Ben Goodger (Google) 2011/12/19 21:04:56 It's needed for the message loop dispatcher, which
#endif
« no previous file with comments | « no previous file | ui/base/cocoa/events_mac.mm » ('j') | ui/base/cocoa/events_mac.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698