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

Unified Diff: ui/base/cocoa/events_mac.mm

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/cocoa/events_mac.mm
diff --git a/ui/base/cocoa/events_mac.mm b/ui/base/cocoa/events_mac.mm
index 437b4659a64287f3bef430c6bb43b7749127cf47..7efc7cfdd13143fa3a6ed8d794b73e28207336d8 100644
--- a/ui/base/cocoa/events_mac.mm
+++ b/ui/base/cocoa/events_mac.mm
@@ -128,6 +128,13 @@ gfx::Point EventLocationFromNative(const base::NativeEvent& native_event) {
return gfx::Point(NSPointToCGPoint(location));
}
+gfx::Point EventRootLocationFromNative(const base::NativeEvent& native_event) {
+ // TOOD(erg): I have no idea how to calculate this, and since I doubt we'll
+ // ever ship an aura desktop build on the Mac, just return the normal
+ // location.
+ return EventLocationFromNative(native_event);
+}
+
KeyboardCode KeyboardCodeFromNative(const base::NativeEvent& native_event) {
return ui::KeyboardCodeFromNSEvent(native_event);
}

Powered by Google App Engine
This is Rietveld 408576698