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

Unified Diff: ash/mus/bridge/wm_shell_mus.cc

Issue 2042913002: Converts MruWindowTracker to work with common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: not equal Created 4 years, 6 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 | « ash/mus/bridge/wm_shell_mus.h ('k') | ash/mus/bridge/wm_window_mus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/bridge/wm_shell_mus.cc
diff --git a/ash/mus/bridge/wm_shell_mus.cc b/ash/mus/bridge/wm_shell_mus.cc
index 67fa439caf3c92ea749f7cd0ca5892a9ce3d99ee..dc0c299e59838c4160d6d0a95107fa0345818203 100644
--- a/ash/mus/bridge/wm_shell_mus.cc
+++ b/ash/mus/bridge/wm_shell_mus.cc
@@ -119,6 +119,11 @@ bool WmShellMus::IsScreenLocked() {
return false;
}
+bool WmShellMus::CanShowWindowForUser(WmWindow* window) {
+ NOTIMPLEMENTED();
+ return true;
+}
+
void WmShellMus::LockCursor() {
NOTIMPLEMENTED();
}
@@ -181,15 +186,8 @@ void WmShellMus::RemoveOverviewModeObserver(WmOverviewModeObserver* observer) {
// static
bool WmShellMus::IsActivationParent(::mus::Window* window) {
- if (!window)
- return false;
-
- const int shell_window_id = WmWindowMus::Get(window)->GetShellWindowId();
- for (size_t i = 0; i < kNumActivatableShellWindowIds; ++i) {
- if (shell_window_id == kActivatableShellWindowIds[i])
- return true;
- }
- return false;
+ return window && IsActivatableShellWindowId(
+ WmWindowMus::Get(window)->GetShellWindowId());
}
void WmShellMus::RemoveClientObserver() {
« no previous file with comments | « ash/mus/bridge/wm_shell_mus.h ('k') | ash/mus/bridge/wm_window_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698