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

Unified Diff: ui/events/platform/platform_event_types.h

Issue 203483004: events: Introduce PlatformEventDispatcher and PlatformEventSource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tests Created 6 years, 9 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
Index: ui/events/platform/platform_event_types.h
diff --git a/ui/events/platform/platform_event_types.h b/ui/events/platform/platform_event_types.h
new file mode 100644
index 0000000000000000000000000000000000000000..a6444668bde389a468312bdceff7a399b08925c3
--- /dev/null
+++ b/ui/events/platform/platform_event_types.h
@@ -0,0 +1,24 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_EVENTS_PLATFORM_PLATFORM_EVENT_TYPES_H_
+#define UI_EVENTS_PLATFORM_PLATFORM_EVENT_TYPES_H_
+
+#if defined(USE_X11)
+typedef union _XEvent XEvent;
+#elif defined(OS_WIN)
+#include <windows.h>
+#endif
+
+namespace ui {
+#if defined(USE_X11)
+typedef XEvent* PlatformEvent;
sky 2014/03/25 15:51:15 Aren't you duplicating NativeEvent here?
sadrul 2014/03/25 18:33:15 I am, yes. My plan is to get rid of base::NativeEv
+#elif defined(OS_WIN)
+typedef MSG PlatformEvent;
+#else
+typedef void* PlatformEvent;
sky 2014/03/25 15:51:15 Maybe this should be an error?
+#endif
+} // namespace ui
+
+#endif // UI_EVENTS_PLATFORM_PLATFORM_EVENT_TYPES_H_

Powered by Google App Engine
This is Rietveld 408576698