summaryrefslogtreecommitdiffstats
path: root/ash/launcher/launcher.cc
diff options
context:
space:
mode:
authormukai@chromium.org <mukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-10 03:40:21 +0000
committermukai@chromium.org <mukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-10 03:40:21 +0000
commitcbc278fcec48dcbd6d3b61612d3b65d90032ff17 (patch)
tree663dcc32837e445b9dad71f03ca9dda3108cc6ff /ash/launcher/launcher.cc
parent71e0656bf0b09e9c4f539ea66f9433eb5a8c329d (diff)
downloadchromium_src-cbc278fcec48dcbd6d3b61612d3b65d90032ff17.zip
chromium_src-cbc278fcec48dcbd6d3b61612d3b65d90032ff17.tar.gz
chromium_src-cbc278fcec48dcbd6d3b61612d3b65d90032ff17.tar.bz2
Polish launcher tooltip visibility (2nd try).
Previous patch has broken win_aura build so reverted. This also fixes the build breaks. Add ShelfLayoutManager::Observer for two cases: - AutoHide: catches the auto hiding status to close the tooltip property - FullScreen: catches the shelf visibility changes to close it too Check the visibility of Shelf itself in case of tooltip showing. Then the toolip won't show if the shelf is hidden. R=derat@chromium.org,davemoore@chromium.org BUG=133551 TEST=manually done on lumpy, made sure aura_shell_unittests passed Review URL: https://chromiumcodereview.appspot.com/10701051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145837 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/launcher/launcher.cc')
-rw-r--r--ash/launcher/launcher.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/ash/launcher/launcher.cc b/ash/launcher/launcher.cc
index f8314bc..bc879e7 100644
--- a/ash/launcher/launcher.cc
+++ b/ash/launcher/launcher.cc
@@ -95,7 +95,8 @@ void Launcher::DelegateView::Layout() {
// Launcher --------------------------------------------------------------------
-Launcher::Launcher(aura::Window* window_container)
+Launcher::Launcher(aura::Window* window_container,
+ internal::ShelfLayoutManager* shelf_layout_manager)
: widget_(NULL),
window_container_(window_container),
delegate_view_(NULL),
@@ -119,7 +120,8 @@ Launcher::Launcher(aura::Window* window_container)
params.parent = Shell::GetContainer(
window_container_->GetRootWindow(),
ash::internal::kShellWindowId_LauncherContainer);
- launcher_view_ = new internal::LauncherView(model_.get(), delegate_.get());
+ launcher_view_ = new internal::LauncherView(
+ model_.get(), delegate_.get(), shelf_layout_manager);
launcher_view_->Init();
delegate_view_ = new DelegateView(this);
delegate_view_->AddChildView(launcher_view_);