Index: ui/base/events.h |
diff --git a/ui/base/events.h b/ui/base/events.h |
index 1bf5ec4fa31860b6d9e2e5c517fcabfc4f7612c4..c5f6246473e17ea37fde8f002e6bc7002fea6cb7 100644 |
--- a/ui/base/events.h |
+++ b/ui/base/events.h |
@@ -139,6 +139,11 @@ UI_EXPORT base::TimeDelta EventTimeFromNative( |
UI_EXPORT gfx::Point EventLocationFromNative( |
const base::NativeEvent& native_event); |
+// Gets the location relative to the root window from a native event. If this |
+// can't be determined, fall back on the window relative location. |
+UI_EXPORT gfx::Point EventRootLocationFromNative( |
+ const base::NativeEvent& native_event); |
+ |
#if defined(USE_X11) |
// 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 |