diff options
author | skuhne@chromium.org <skuhne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-04 05:17:00 +0000 |
---|---|---|
committer | skuhne@chromium.org <skuhne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-04 05:17:00 +0000 |
commit | de42bccc36817496c10f99df4d204db460602afc (patch) | |
tree | 77d8ff1eb0e20ddc149b328d8514df699f84318d /ash/shell.cc | |
parent | 46e3194153db054636b25cde51efeb0c34aa074e (diff) | |
download | chromium_src-de42bccc36817496c10f99df4d204db460602afc.zip chromium_src-de42bccc36817496c10f99df4d204db460602afc.tar.gz chromium_src-de42bccc36817496c10f99df4d204db460602afc.tar.bz2 |
Adding Overview mode started / ended observable events to the shell
Splitting my CL for the backdrop creation into smaller fragments.
This portion is adding an observable event to the shell which allows to monitor overview mode de-/activations.
BUG=337567
TEST=none
Review URL: https://codereview.chromium.org/185423002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254664 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shell.cc')
-rw-r--r-- | ash/shell.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ash/shell.cc b/ash/shell.cc index d0cf6ec..f1a037b 100644 --- a/ash/shell.cc +++ b/ash/shell.cc @@ -382,6 +382,14 @@ void Shell::OnCastingSessionStartedOrStopped(bool started) { #endif } +void Shell::OnOverviewModeStarting() { + FOR_EACH_OBSERVER(ShellObserver, observers_, OnOverviewModeStarting()); +} + +void Shell::OnOverviewModeEnding() { + FOR_EACH_OBSERVER(ShellObserver, observers_, OnOverviewModeEnding()); +} + void Shell::CreateShelf() { RootWindowControllerList controllers = GetAllRootWindowControllers(); for (RootWindowControllerList::iterator iter = controllers.begin(); |