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

Unified Diff: ash/wm/activation_controller.cc

Issue 10442017: Rename GetRootWindow() -> GetPrimaryRootWindow() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: git-try -b linux_chromeos,win_aura Created 8 years, 7 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/tooltips/tooltip_controller_unittest.cc ('k') | ash/wm/activation_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/activation_controller.cc
diff --git a/ash/wm/activation_controller.cc b/ash/wm/activation_controller.cc
index e2cefe63ff552a518a2ab66e50a23b33826b3130..8507508a17895bbb203153496c294c755966a4b3 100644
--- a/ash/wm/activation_controller.cc
+++ b/ash/wm/activation_controller.cc
@@ -118,13 +118,13 @@ void StackTransientParentsBelowModalWindow(aura::Window* window) {
ActivationController::ActivationController()
: updating_activation_(false),
ALLOW_THIS_IN_INITIALIZER_LIST(observer_manager_(this)) {
- aura::client::SetActivationClient(Shell::GetRootWindow(), this);
+ aura::client::SetActivationClient(Shell::GetPrimaryRootWindow(), this);
aura::Env::GetInstance()->AddObserver(this);
- Shell::GetRootWindow()->AddRootWindowObserver(this);
+ Shell::GetPrimaryRootWindow()->AddRootWindowObserver(this);
}
ActivationController::~ActivationController() {
- Shell::GetRootWindow()->RemoveRootWindowObserver(this);
+ Shell::GetPrimaryRootWindow()->RemoveRootWindowObserver(this);
aura::Env::GetInstance()->RemoveObserver(this);
}
@@ -165,7 +165,7 @@ void ActivationController::DeactivateWindow(aura::Window* window) {
}
aura::Window* ActivationController::GetActiveWindow() {
- return Shell::GetRootWindow()->GetProperty(
+ return Shell::GetPrimaryRootWindow()->GetProperty(
aura::client::kRootWindowActiveWindowKey);
}
@@ -196,7 +196,7 @@ void ActivationController::OnWindowDestroying(aura::Window* window) {
// Clear the property before activating something else, since
// ActivateWindow() will attempt to notify the window stored in this value
// otherwise.
- Shell::GetRootWindow()->ClearProperty(
+ Shell::GetPrimaryRootWindow()->ClearProperty(
aura::client::kRootWindowActiveWindowKey);
ActivateWindow(GetTopmostWindowToActivate(window));
}
@@ -258,8 +258,8 @@ void ActivationController::ActivateWindowWithEvent(aura::Window* window,
!window->Contains(window->GetFocusManager()->GetFocusedWindow())) {
window->GetFocusManager()->SetFocusedWindow(window, event);
}
- Shell::GetRootWindow()->SetProperty(aura::client::kRootWindowActiveWindowKey,
- window);
+ Shell::GetPrimaryRootWindow()->SetProperty(
+ aura::client::kRootWindowActiveWindowKey, window);
// Invoke OnLostActive after we've changed the active window. That way if the
// delegate queries for active state it doesn't think the window is still
// active.
« no previous file with comments | « ash/tooltips/tooltip_controller_unittest.cc ('k') | ash/wm/activation_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698