| Index: ui/base/cocoa/command_dispatcher.mm
|
| diff --git a/ui/base/cocoa/command_dispatcher.mm b/ui/base/cocoa/command_dispatcher.mm
|
| index 64ac8fd1bb229d5c448b7f73195ead700d89e2cd..46a351b4ce8c09b399011bf36313ac34db9fb6ec 100644
|
| --- a/ui/base/cocoa/command_dispatcher.mm
|
| +++ b/ui/base/cocoa/command_dispatcher.mm
|
| @@ -5,6 +5,7 @@
|
| #import "ui/base/cocoa/command_dispatcher.h"
|
|
|
| #include "base/logging.h"
|
| +#include "ui/base/cocoa/cocoa_base_utils.h"
|
|
|
| namespace {
|
|
|
| @@ -15,8 +16,8 @@ NSEvent* KeyEventForWindow(NSWindow* window, NSEvent* event) {
|
| // Convert the event's location from the original window's coordinates into
|
| // our own.
|
| NSPoint location = [event locationInWindow];
|
| - location = [[event window] convertBaseToScreen:location];
|
| - location = [window convertScreenToBase:location];
|
| + location = ui::ConvertPointFromWindowToScreen([event window], location);
|
| + location = ui::ConvertPointFromScreenToWindow(window, location);
|
|
|
| // Various things *only* apply to key down/up.
|
| bool is_a_repeat = false;
|
|
|