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

Unified Diff: ash/wm/ash_focus_rules.cc

Issue 2629643002: chromeos: Renames WmWindowAura to WmWindow (Closed)
Patch Set: feedback Created 3 years, 11 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/always_on_top_controller_unittest.cc ('k') | ash/wm/dock/docked_window_layout_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/ash_focus_rules.cc
diff --git a/ash/wm/ash_focus_rules.cc b/ash/wm/ash_focus_rules.cc
index c83f06df0757faaeec3f5057a3d5032a38db7c0d..26adb0b801031a1d5305d24bcee4a8fe86a8537f 100644
--- a/ash/wm/ash_focus_rules.cc
+++ b/ash/wm/ash_focus_rules.cc
@@ -4,12 +4,12 @@
#include "ash/wm/ash_focus_rules.h"
-#include "ash/aura/wm_window_aura.h"
#include "ash/common/wm/container_finder.h"
#include "ash/common/wm/focus_rules.h"
#include "ash/common/wm/mru_window_tracker.h"
#include "ash/common/wm/window_state.h"
#include "ash/common/wm_shell.h"
+#include "ash/common/wm_window.h"
#include "ash/public/cpp/shell_window_ids.h"
#include "ash/shell.h"
#include "ash/wm/window_state_aura.h"
@@ -38,14 +38,14 @@ AshFocusRules::AshFocusRules() {}
AshFocusRules::~AshFocusRules() {}
bool AshFocusRules::IsWindowConsideredActivatable(aura::Window* window) const {
- return ash::IsWindowConsideredActivatable(WmWindowAura::Get(window));
+ return ash::IsWindowConsideredActivatable(WmWindow::Get(window));
}
////////////////////////////////////////////////////////////////////////////////
// AshFocusRules, ::wm::FocusRules:
bool AshFocusRules::IsToplevelWindow(aura::Window* window) const {
- return ash::IsToplevelWindow(WmWindowAura::Get(window));
+ return ash::IsToplevelWindow(WmWindow::Get(window));
}
bool AshFocusRules::SupportsChildActivation(aura::Window* window) const {
@@ -54,7 +54,7 @@ bool AshFocusRules::SupportsChildActivation(aura::Window* window) const {
bool AshFocusRules::IsWindowConsideredVisibleForActivation(
aura::Window* window) const {
- return ash::IsWindowConsideredVisibleForActivation(WmWindowAura::Get(window));
+ return ash::IsWindowConsideredVisibleForActivation(WmWindow::Get(window));
}
bool AshFocusRules::CanActivateWindow(aura::Window* window) const {
@@ -83,7 +83,7 @@ aura::Window* AshFocusRules::GetNextActivatableWindow(
MruWindowTracker* mru = WmShell::Get()->mru_window_tracker();
std::vector<WmWindow*> windows = mru->BuildMruWindowList();
aura::Window* starting_window =
- windows.empty() ? ignore : WmWindowAura::GetAuraWindow(windows[0]);
+ windows.empty() ? ignore : WmWindow::GetAuraWindow(windows[0]);
// Look for windows to focus in |starting_window|'s container. If none are
// found, we look in all the containers in front of |starting_window|'s
@@ -121,10 +121,10 @@ aura::Window* AshFocusRules::GetTopmostWindowToActivateForContainerIndex(
aura::Window* window = nullptr;
aura::Window* root = ignore ? ignore->GetRootWindow() : nullptr;
WmWindow::Windows containers = GetContainersFromAllRootWindows(
- kActivatableShellWindowIds[index], WmWindowAura::Get(root));
+ kActivatableShellWindowIds[index], WmWindow::Get(root));
for (WmWindow* container : containers) {
window = GetTopmostWindowToActivateInContainer(
- WmWindowAura::GetAuraWindow(container), ignore);
+ WmWindow::GetAuraWindow(container), ignore);
if (window)
return window;
}
« no previous file with comments | « ash/wm/always_on_top_controller_unittest.cc ('k') | ash/wm/dock/docked_window_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698