summaryrefslogtreecommitdiffstats
path: root/ash/launcher
diff options
context:
space:
mode:
authorglotov@chromium.org <glotov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-19 19:17:18 +0000
committerglotov@chromium.org <glotov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-19 19:17:18 +0000
commit7e1df2f66eee586d5800c9e56c6b434be5915dab (patch)
tree90c9fd8545fda4bc5f71dc89093519a147c82eff /ash/launcher
parente2f64d101a1e624bf300f598fea6c336db64f4a2 (diff)
downloadchromium_src-7e1df2f66eee586d5800c9e56c6b434be5915dab.zip
chromium_src-7e1df2f66eee586d5800c9e56c6b434be5915dab.tar.gz
chromium_src-7e1df2f66eee586d5800c9e56c6b434be5915dab.tar.bz2
Hide launcher bar until OOBE is complete
BUG=131382 TEST=units Review URL: https://chromiumcodereview.appspot.com/10693003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147500 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/launcher')
-rw-r--r--ash/launcher/launcher.cc5
-rw-r--r--ash/launcher/launcher.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/ash/launcher/launcher.cc b/ash/launcher/launcher.cc
index 8475097..954da7e 100644
--- a/ash/launcher/launcher.cc
+++ b/ash/launcher/launcher.cc
@@ -136,7 +136,6 @@ Launcher::Launcher(aura::Window* window_container,
// The launcher should not take focus when it is initially shown.
widget_->set_focus_on_creation(false);
widget_->SetContentsView(delegate_view_);
- widget_->Show();
widget_->GetNativeView()->SetName("LauncherView");
}
@@ -217,6 +216,10 @@ bool Launcher::IsShowingOverflowBubble() const {
return launcher_view_->IsShowingOverflowBubble();
}
+void Launcher::SetVisible(bool visible) const {
+ delegate_view_->SetVisible(visible);
+}
+
views::View* Launcher::GetAppListButtonView() const {
return launcher_view_->GetAppListButtonView();
}
diff --git a/ash/launcher/launcher.h b/ash/launcher/launcher.h
index 8ee093a..3b5cbc6 100644
--- a/ash/launcher/launcher.h
+++ b/ash/launcher/launcher.h
@@ -80,6 +80,8 @@ class ASH_EXPORT Launcher : public internal::BackgroundAnimatorDelegate {
bool IsShowingOverflowBubble() const;
+ void SetVisible(bool visible) const;
+
views::View* GetAppListButtonView() const;
// Only to be called for testing. Retrieves the LauncherView.