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

Unified Diff: ui/aura_shell/activation_controller.cc

Issue 8956004: Move ActivationClient/Delegate to client namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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 | « ui/aura_shell/activation_controller.h ('k') | ui/aura_shell/test/test_activation_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_shell/activation_controller.cc
===================================================================
--- ui/aura_shell/activation_controller.cc (revision 114593)
+++ ui/aura_shell/activation_controller.cc (working copy)
@@ -37,9 +37,8 @@
bool CanActivateWindow(aura::Window* window) {
return window &&
window->IsVisible() &&
- (!aura::ActivationDelegate::GetActivationDelegate(window) ||
- aura::ActivationDelegate::GetActivationDelegate(window)->
- ShouldActivate(NULL)) &&
+ (!aura::client::GetActivationDelegate(window) ||
+ aura::client::GetActivationDelegate(window)->ShouldActivate(NULL)) &&
SupportsChildActivation(window->parent());
}
@@ -51,7 +50,7 @@
ActivationController::ActivationController()
: updating_activation_(false),
default_container_for_test_(NULL) {
- aura::ActivationClient::SetActivationClient(this);
+ aura::client::SetActivationClient(this);
aura::RootWindow::GetInstance()->AddRootWindowObserver(this);
}
@@ -77,7 +76,7 @@
}
////////////////////////////////////////////////////////////////////////////////
-// StackingController, aura::ActivationClient implementation:
+// ActivationController, aura::client::ActivationClient implementation:
void ActivationController::ActivateWindow(aura::Window* window) {
// Prevent recursion when called from focus.
@@ -103,12 +102,12 @@
// 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.
- if (old_active && aura::ActivationDelegate::GetActivationDelegate(old_active))
- aura::ActivationDelegate::GetActivationDelegate(old_active)->OnLostActive();
+ if (old_active && aura::client::GetActivationDelegate(old_active))
+ aura::client::GetActivationDelegate(old_active)->OnLostActive();
if (window) {
window->parent()->StackChildAtTop(window);
- if (aura::ActivationDelegate::GetActivationDelegate(window))
- aura::ActivationDelegate::GetActivationDelegate(window)->OnActivated();
+ if (aura::client::GetActivationDelegate(window))
+ aura::client::GetActivationDelegate(window)->OnActivated();
}
}
« no previous file with comments | « ui/aura_shell/activation_controller.h ('k') | ui/aura_shell/test/test_activation_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698