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 9d5cb8cf93abdda2e5976bed9da8a3ae2ea333dd..484f5e52a4bc691c576773e64473eec9ceafdbc0 100644 |
--- a/ui/aura/remote_root_window_host_win.cc |
+++ b/ui/aura/remote_root_window_host_win.cc |
@@ -151,8 +151,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, |
@@ -460,9 +460,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, |