summaryrefslogtreecommitdiffstats
path: root/ash/shelf/shelf.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ash/shelf/shelf.cc')
-rw-r--r--ash/shelf/shelf.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/ash/shelf/shelf.cc b/ash/shelf/shelf.cc
index 18dd34a..58904c4 100644
--- a/ash/shelf/shelf.cc
+++ b/ash/shelf/shelf.cc
@@ -79,6 +79,14 @@ bool Shelf::IsHorizontalAlignment() const {
alignment_ == SHELF_ALIGNMENT_TOP;
}
+void Shelf::SetAutoHideBehavior(ShelfAutoHideBehavior behavior) {
+ shelf_widget_->shelf_layout_manager()->SetAutoHideBehavior(behavior);
+}
+
+ShelfAutoHideBehavior Shelf::GetAutoHideBehavior() const {
+ return shelf_widget_->shelf_layout_manager()->auto_hide_behavior();
+}
+
gfx::Rect Shelf::GetScreenBoundsOfItemIconForWindow(
const aura::Window* window) {
ShelfID id = GetShelfIDForWindow(window);