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

Unified Diff: ui/events/event_utils.h

Issue 750593003: Ozone X11 platform Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove new evernt type, add direct route from event -> platform window Created 6 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
Index: ui/events/event_utils.h
diff --git a/ui/events/event_utils.h b/ui/events/event_utils.h
index 2a0e699c28f8ccb02a16a6d213e68cc3274f745f..94b58b1a9642596eb6a943908861627833a80ae9 100644
--- a/ui/events/event_utils.h
+++ b/ui/events/event_utils.h
@@ -68,7 +68,7 @@ EVENTS_EXPORT gfx::Point EventLocationFromNative(
EVENTS_EXPORT gfx::Point EventSystemLocationFromNative(
const base::NativeEvent& native_event);
-#if defined(USE_X11)
+#if defined(USE_X11) || defined(USE_OZONE)
// Returns the 'real' button for an event. The button reported in slave events
// does not take into account any remapping (e.g. using xmodmap), while the
// button reported in master events do. This is a utility function to always

Powered by Google App Engine
This is Rietveld 408576698