Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Unified Diff: ui/aura/remote_root_window_host_win.cc

Issue 27058004: Use WindowActivated message instead of VisibilityChanged message to determine that Ash is the activ… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: +comment Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,

Powered by Google App Engine
This is Rietveld 408576698