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

Unified Diff: ui/events/x/events_x_utils.h

Issue 1602173005: Add PlatformWindow/Event related code for Ozone X11. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix deps problem. 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/x/events_x_utils.h
diff --git a/ui/events/x/events_x_utils.h b/ui/events/x/events_x_utils.h
index 15c4e387f82e7f140b79f491d0f9232abde8f299..9b570dd56097e1b84b8e5484e784a30dc34d2fef 100644
--- a/ui/events/x/events_x_utils.h
+++ b/ui/events/x/events_x_utils.h
@@ -11,21 +11,25 @@
#include "ui/events/event_constants.h"
#include "ui/events/x/events_x_export.h"
#include "ui/gfx/geometry/point.h"
+#include "ui/gfx/x/x11_types.h"
typedef union _XEvent XEvent;
namespace ui {
-// Get the EventType from a XEvent.
+// Gets the XID of XWindow from a XEvent.
+EVENTS_X_EXPORT XID XWindowFromXEvent(const XEvent& xev);
+
+// Gets the EventType from a XEvent.
EVENTS_X_EXPORT EventType EventTypeFromXEvent(const XEvent& xev);
-// Get the EventFlags from a XEvent.
+// Gets the EventFlags from a XEvent.
EVENTS_X_EXPORT int EventFlagsFromXEvent(const XEvent& xev);
-// Get the timestamp from a XEvent.
+// Gets the timestamp from a XEvent.
EVENTS_X_EXPORT base::TimeDelta EventTimeFromXEvent(const XEvent& xev);
-// Get the location from a XEvent. The coordinate system of the resultant
+// Gets the location from a XEvent. The coordinate system of the resultant
// |Point| has the origin at top-left of the "root window". The nature of
// this "root window" and how it maps to platform-specific drawing surfaces is
// defined in ui/aura/root_window.* and ui/aura/window_tree_host*.

Powered by Google App Engine
This is Rietveld 408576698