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 57f633c3a85da78a12da86b615c4846d21a513f9..8e548364bbdecd619ab91728de5bbb96628d35ba 100644 |
--- a/ui/aura/remote_root_window_host_win.cc |
+++ b/ui/aura/remote_root_window_host_win.cc |
@@ -157,8 +157,8 @@ bool RemoteRootWindowHostWin::OnMessageReceived(const IPC::Message& message) { |
IPC_MESSAGE_HANDLER(MetroViewerHostMsg_KeyDown, OnKeyDown) |
IPC_MESSAGE_HANDLER(MetroViewerHostMsg_KeyUp, OnKeyUp) |
IPC_MESSAGE_HANDLER(MetroViewerHostMsg_Character, OnChar) |
- IPC_MESSAGE_HANDLER(MetroViewerHostMsg_VisibilityChanged, |
- OnVisibilityChanged) |
+ IPC_MESSAGE_HANDLER(MetroViewerHostMsg_WindowActivated, |
+ OnWindowActivated) |
IPC_MESSAGE_HANDLER(MetroViewerHostMsg_TouchDown, |
OnTouchDown) |
IPC_MESSAGE_HANDLER(MetroViewerHostMsg_TouchUp, |
@@ -471,9 +471,8 @@ void RemoteRootWindowHostWin::OnChar(uint32 key_code, |
scan_code, flags, true); |
} |
-void RemoteRootWindowHostWin::OnVisibilityChanged(bool visible) { |
- if (visible) |
- delegate_->OnHostActivated(); |
+void RemoteRootWindowHostWin::OnWindowActivated() { |
+ delegate_->OnHostActivated(); |
} |
void RemoteRootWindowHostWin::OnTouchDown(int32 x, |