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

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: merge up to r229418 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
« no previous file with comments | « ui/aura/remote_root_window_host_win.h ('k') | ui/metro_viewer/metro_viewer_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « ui/aura/remote_root_window_host_win.h ('k') | ui/metro_viewer/metro_viewer_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698