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 d6b72dff54aae86e7029140ca7ac52a4bf314c54..3601ea221182e544d0944a421aad9921b7b9182b 100644 |
--- a/ui/aura/remote_root_window_host_win.cc |
+++ b/ui/aura/remote_root_window_host_win.cc |
@@ -161,6 +161,8 @@ bool RemoteRootWindowHostWin::OnMessageReceived(const IPC::Message& message) { |
OnWindowActivated) |
IPC_MESSAGE_HANDLER(MetroViewerHostMsg_SetCursorPosAck, |
OnSetCursorPosAck) |
+ IPC_MESSAGE_HANDLER(MetroViewerHostMsg_WindowSizeChanged, |
+ OnWindowSizeChanged) |
IPC_MESSAGE_UNHANDLED(handled = false) |
IPC_END_MESSAGE_MAP() |
return handled; |
@@ -502,6 +504,10 @@ void RemoteRootWindowHostWin::OnSetCursorPosAck() { |
ignore_mouse_moves_until_set_cursor_ack_ = false; |
} |
+void RemoteRootWindowHostWin::OnWindowSizeChanged(uint32 width, uint32 height) { |
+ SetBounds(gfx::Rect(0, 0, width, height)); |
+} |
+ |
void RemoteRootWindowHostWin::DispatchKeyboardMessage(ui::EventType type, |
uint32 vkey, |
uint32 repeat_count, |