diff options
Diffstat (limited to 'ui/base/cocoa')
-rw-r--r-- | ui/base/cocoa/events_mac.mm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/base/cocoa/events_mac.mm b/ui/base/cocoa/events_mac.mm index 437b465..4471882 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 EventSystemLocationFromNative( + const base::NativeEvent& native_event) { + // TODO(port): Needs to always return screen position here. Returning normal + // origin for now since that's obviously wrong. + return gfx::Point(0, 0); +} + KeyboardCode KeyboardCodeFromNative(const base::NativeEvent& native_event) { return ui::KeyboardCodeFromNSEvent(native_event); } |