summaryrefslogtreecommitdiffstats
path: root/ash/shell.h
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-25 22:53:59 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-25 22:53:59 +0000
commitc758fbfb081067de767084064c3e94067d922beb (patch)
tree6adbed42b929e6ce20dce0c4eb51f15e343e4dfa /ash/shell.h
parentbbcde910463b8d226b6f077fc4f0009f5c147406 (diff)
downloadchromium_src-c758fbfb081067de767084064c3e94067d922beb.zip
chromium_src-c758fbfb081067de767084064c3e94067d922beb.tar.gz
chromium_src-c758fbfb081067de767084064c3e94067d922beb.tar.bz2
Adds context menu so that shelf always auto-hides (except on lock
screen). This also cleans up code that was forcing shelf to be visible when lock screen up, and it removes the 'snap to grid' menu item on the background. BUG=119804 TEST=none R=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/9854001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128839 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shell.h')
-rw-r--r--ash/shell.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ash/shell.h b/ash/shell.h
index 764587f..5aac16a 100644
--- a/ash/shell.h
+++ b/ash/shell.h
@@ -206,6 +206,14 @@ class ASH_EXPORT Shell {
const ScreenAsh* screen() { return screen_; }
+ // Force the shelf to query for it's current visibility state.
+ void UpdateShelfVisibility();
+
+ // Sets/gets whether the shelf always auto-hides.
+ void SetShelfAlwaysAutoHide(bool value);
+ bool GetShelfAlwaysAutoHide() const;
+
+ // TODO(sky): don't expose this!
internal::ShelfLayoutManager* shelf() const { return shelf_; }
SystemTray* tray() const { return tray_.get(); }