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

Unified Diff: ui/base/events.h

Issue 10381063: Aura/ash split: Don't use X11 window borders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Now with windows/mac implementations Created 8 years, 7 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/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

Powered by Google App Engine
This is Rietveld 408576698