diff options
Diffstat (limited to 'aura/desktop_host_win.cc')
-rw-r--r-- | aura/desktop_host_win.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/aura/desktop_host_win.cc b/aura/desktop_host_win.cc index f235b6e..d922221 100644 --- a/aura/desktop_host_win.cc +++ b/aura/desktop_host_win.cc @@ -47,6 +47,17 @@ gfx::Size DesktopHostWin::GetSize() { return gfx::Rect(r).size(); } +void DesktopHostWin::SetSize(const gfx::Size& size) { + SetWindowPos( + hwnd(), + NULL, + 0, + 0, + size.width(), + size.height(), + SWP_NOMOVE | SWP_NOOWNERZORDER | SWP_NOREDRAW | SWP_NOREPOSITION); +} + void DesktopHostWin::OnClose() { // TODO: this obviously shouldn't be here. MessageLoopForUI::current()->Quit(); |