diff options
Diffstat (limited to 'ui/aura/desktop_host_win.cc')
-rw-r--r-- | ui/aura/desktop_host_win.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/aura/desktop_host_win.cc b/ui/aura/desktop_host_win.cc index 36399e2..3ad4f66 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) |