summaryrefslogtreecommitdiffstats
path: root/ui/aura_shell/shadow_controller.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-13 00:05:33 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-13 00:05:33 +0000
commit9fc206d750355b6bb698e50e9c6bc6ef669a7bfe (patch)
tree6120821a75162a499a66846d762639539ee8bc60 /ui/aura_shell/shadow_controller.cc
parent374b3a6d971aa8f551e521167f8d130c90ffb8f8 (diff)
downloadchromium_src-9fc206d750355b6bb698e50e9c6bc6ef669a7bfe.zip
chromium_src-9fc206d750355b6bb698e50e9c6bc6ef669a7bfe.tar.gz
chromium_src-9fc206d750355b6bb698e50e9c6bc6ef669a7bfe.tar.bz2
Move the concept of Activation to the Shell.
The Active Window is now stored in a property on the RootWindow. Classes wishing to observe changes to this can implement WindowObserver and attach to the RootWindow to be notified of changes in this property. We provide an ActivationClient interface in Aura for customers to use to set/get the active window, and deactivate a window. This is because setting the active window involves more than just changing the property, there is some additional book-keeping that must be done. The ActivationClient is stored in a property on the RootWindow. We also provide an ActivationDelegate interface in Aura that window owners can use to be notified of changes in activation state, and to specify whether or not a window can be activated. The ActivationDelegate should be stored on the relevant window in a property. I moved a lot of Activation-related functionality out of Aura, including all of the unit tests, now on ActivationController, and the associated WindowDelegate implementations which have now become a single TestActivationDelegate implementation. BUG=none TEST=unit tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114095 Review URL: http://codereview.chromium.org/8894018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114121 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura_shell/shadow_controller.cc')
-rw-r--r--ui/aura_shell/shadow_controller.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/aura_shell/shadow_controller.cc b/ui/aura_shell/shadow_controller.cc
index b93876e..46670ff 100644
--- a/ui/aura_shell/shadow_controller.cc
+++ b/ui/aura_shell/shadow_controller.cc
@@ -19,7 +19,7 @@ namespace aura_shell {
namespace internal {
ShadowController::ShadowController() {
- aura::RootWindow::GetInstance()->AddObserver(this);
+ aura::RootWindow::GetInstance()->AddRootWindowObserver(this);
}
ShadowController::~ShadowController() {
@@ -27,7 +27,7 @@ ShadowController::~ShadowController() {
it != window_shadows_.end(); ++it) {
it->first->RemoveObserver(this);
}
- aura::RootWindow::GetInstance()->RemoveObserver(this);
+ aura::RootWindow::GetInstance()->RemoveRootWindowObserver(this);
}
void ShadowController::OnWindowInitialized(aura::Window* window) {