summaryrefslogtreecommitdiffstats
path: root/ui/aura/env.cc
diff options
context:
space:
mode:
authorgrt@chromium.org <grt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-15 23:33:44 +0000
committergrt@chromium.org <grt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-15 23:33:44 +0000
commitcbafd1cf102678418fbe04bf170d3e05ffc92af0 (patch)
tree0a2827e07ccc7353546263c83e55fcb0539c8088 /ui/aura/env.cc
parent14eba181af0099a979068beb456570104e0739b8 (diff)
downloadchromium_src-cbafd1cf102678418fbe04bf170d3e05ffc92af0.zip
chromium_src-cbafd1cf102678418fbe04bf170d3e05ffc92af0.tar.gz
chromium_src-cbafd1cf102678418fbe04bf170d3e05ffc92af0.tar.bz2
Track the last active RootWindowHost to determine the most-recently active host desktop type.
This is for use in those places where there's no context from which to figure out if something should be popped on the native or ash desktop. Original approach reviewed here: https://chromiumcodereview.appspot.com/11188064/ BUG=129187 TEST=none Review URL: https://chromiumcodereview.appspot.com/11358090 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168074 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/env.cc')
-rw-r--r--ui/aura/env.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/aura/env.cc b/ui/aura/env.cc
index b967ed7..d46783f 100644
--- a/ui/aura/env.cc
+++ b/ui/aura/env.cc
@@ -96,6 +96,11 @@ MessageLoop::Dispatcher* Env::GetDispatcher() {
}
#endif
+void Env::RootWindowActivated(RootWindow* root_window) {
+ FOR_EACH_OBSERVER(EnvObserver, observers_,
+ OnRootWindowActivated(root_window));
+}
+
////////////////////////////////////////////////////////////////////////////////
// Env, private: