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

Unified Diff: ash/wm/focus_rules.cc

Issue 2814243002: Removes a couple more functions from WmWindow (Closed)
Patch Set: feedback Created 3 years, 8 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/wm/default_state.cc ('k') | ash/wm/maximize_mode/workspace_backdrop_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/focus_rules.cc
diff --git a/ash/wm/focus_rules.cc b/ash/wm/focus_rules.cc
index 4477e9d485c56a1f82fe68b7da04f7dfaf9e8cde..6bb9484d256d2011963d7e3730700dee325c83c1 100644
--- a/ash/wm/focus_rules.cc
+++ b/ash/wm/focus_rules.cc
@@ -20,7 +20,7 @@ bool IsToplevelWindow(WmWindow* window) {
// The window must exist within a container that supports activation.
// The window cannot be blocked by a modal transient.
- return IsActivatableShellWindowId(window->GetParent()->GetShellWindowId());
+ return IsActivatableShellWindowId(window->GetParent()->aura_window()->id());
}
bool IsWindowConsideredActivatable(WmWindow* window) {
@@ -51,7 +51,7 @@ bool IsWindowConsideredVisibleForActivation(WmWindow* window) {
if (!window->GetTargetVisibility())
return false;
- const int parent_shell_window_id = window->GetParent()->GetShellWindowId();
+ const int parent_shell_window_id = window->GetParent()->aura_window()->id();
return parent_shell_window_id == kShellWindowId_DefaultContainer ||
parent_shell_window_id == kShellWindowId_LockScreenContainer;
}
« no previous file with comments | « ash/wm/default_state.cc ('k') | ash/wm/maximize_mode/workspace_backdrop_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698