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

Unified Diff: ash/wm/focus_rules.cc

Issue 2814243002: Removes a couple more functions from WmWindow (Closed)
Patch Set: cleanup 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
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;
}

Powered by Google App Engine
This is Rietveld 408576698