Index: ui/aura/desktop_host_win.cc |
diff --git a/ui/aura/desktop_host_win.cc b/ui/aura/desktop_host_win.cc |
index 36399e2da5e38ceaaf6499eb2390d28ea92b62f2..3ad4f66d76253c298371942004e0094e6eecbd55 100644 |
--- a/ui/aura/desktop_host_win.cc |
+++ b/ui/aura/desktop_host_win.cc |
@@ -206,6 +206,13 @@ void DesktopHostWin::SetSize(const gfx::Size& size) { |
SWP_NOMOVE | SWP_NOOWNERZORDER | SWP_NOREDRAW | SWP_NOREPOSITION); |
} |
+gfx::Point DesktopHostWin::GetLocationOnNativeScreen() const { |
+ RECT r; |
+ GetClientRect(hwnd(), &r); |
+ return gfx::Point(r.left, r.top); |
+} |
+ |
+ |
void DesktopHostWin::SetCursor(gfx::NativeCursor native_cursor) { |
// Custom web cursors are handled directly. |
if (native_cursor == kCursorCustom) |