Index: ui/aura/remote_root_window_host_win.cc |
diff --git a/ui/aura/remote_root_window_host_win.cc b/ui/aura/remote_root_window_host_win.cc |
index c4771108c4744725a5b84044ce62c0e6e0f51c0b..d2e306ca521ca8575747b883df6623e421c4000c 100644 |
--- a/ui/aura/remote_root_window_host_win.cc |
+++ b/ui/aura/remote_root_window_host_win.cc |
@@ -156,6 +156,8 @@ bool RemoteRootWindowHostWin::OnMessageReceived(const IPC::Message& message) { |
OnSelectFolderDone) |
IPC_MESSAGE_HANDLER(MetroViewerHostMsg_WindowActivated, |
OnWindowActivated) |
+ IPC_MESSAGE_HANDLER(MetroViewerHostMsg_WindowSizeChanged, |
+ OnWindowSizeChanged) |
IPC_MESSAGE_UNHANDLED(handled = false) |
IPC_END_MESSAGE_MAP() |
return handled; |
@@ -461,6 +463,10 @@ void RemoteRootWindowHostWin::OnWindowActivated(bool active) { |
active ? GetRootWindow()->Focus() : GetRootWindow()->Blur(); |
} |
+void RemoteRootWindowHostWin::OnWindowSizeChanged(int32 width, int32 height) { |
+ SetBounds(gfx::Rect(0, 0, width, height)); |
+} |
+ |
void RemoteRootWindowHostWin::DispatchKeyboardMessage(ui::EventType type, |
uint32 vkey, |
uint32 repeat_count, |