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

Unified Diff: views/native_types.h

Issue 7464027: Wayland support for views. views_desktop on Wayland. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Updated native_widget_wayland.cc to match compositor changes Created 9 years, 4 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 | « views/mouse_watcher.cc ('k') | views/view_wayland.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/native_types.h
diff --git a/views/native_types.h b/views/native_types.h
index 0941879b0f4797c23b23e55b76a7dadfceefe0e9..a5070e7295cc731473374f7c01683666f2f0bcdc 100644
--- a/views/native_types.h
+++ b/views/native_types.h
@@ -14,6 +14,11 @@ typedef union _GdkEvent GdkEvent;
#if defined(USE_X11)
typedef union _XEvent XEvent;
#endif
+#if defined(USE_WAYLAND)
+namespace ui {
+union WaylandEvent;
+}
+#endif
#if defined(USE_AURA)
namespace aura {
@@ -40,9 +45,15 @@ typedef aura::Event* NativeEvent;
#elif defined(OS_WIN)
typedef MSG NativeEvent;
#elif defined(OS_LINUX)
+
+#if defined(USE_WAYLAND)
+typedef ui::WaylandEvent* NativeEvent;
+#else
typedef GdkEvent* NativeEvent;
#endif
+#endif
+
#if defined(USE_X11)
typedef XEvent* NativeEvent2;
#else
« no previous file with comments | « views/mouse_watcher.cc ('k') | views/view_wayland.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698