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

Unified Diff: ui/events/platform/x11/x11_event_source_linux.cc

Issue 1602173005: Add PlatformWindow/Event related code for Ozone X11. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: XEventDispatcher added. Created 4 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
Index: ui/events/platform/x11/x11_event_source_linux.cc
diff --git a/ui/events/platform/x11/x11_event_source_linux.cc b/ui/events/platform/x11/x11_event_source_linux.cc
new file mode 100644
index 0000000000000000000000000000000000000000..629393f3b60f773101848c86c868f74bec311010
--- /dev/null
+++ b/ui/events/platform/x11/x11_event_source_linux.cc
@@ -0,0 +1,16 @@
+// Copyright 2016 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.
+
+#include "ui/events/platform/x11/x11_event_source.h"
+
+namespace ui {
+
+uint32_t X11EventSource::DispatchEvent(base::NativeEvent native_event) {
+ XEvent* xevent = static_cast<XEvent*>(native_event);
+ uint32_t action = PlatformEventSource::DispatchEvent(xevent);
+ PostDispatchEvent(xevent);
+ return action;
+}
+
+} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698