Index: ash/shelf/shelf.cc |
diff --git a/ash/shelf/shelf.cc b/ash/shelf/shelf.cc |
index 1f6bea45df969802ca19184ab068ca4a8d8ef903..b7c52cff205d44387b91ea37084217d9512fd3c7 100644 |
--- a/ash/shelf/shelf.cc |
+++ b/ash/shelf/shelf.cc |
@@ -105,6 +105,14 @@ void Shelf::SetAutoHideBehavior(ShelfAutoHideBehavior auto_hide_behavior) { |
shelf_widget_->GetNativeWindow()->GetRootWindow()); |
} |
+ShelfAutoHideState Shelf::GetAutoHideState() const { |
+ return shelf_widget_->shelf_layout_manager()->auto_hide_state(); |
+} |
+ |
+ShelfVisibilityState Shelf::GetVisibilityState() const { |
+ return shelf_widget_->shelf_layout_manager()->visibility_state(); |
+} |
+ |
gfx::Rect Shelf::GetScreenBoundsOfItemIconForWindow( |
const aura::Window* window) { |
ShelfID id = GetShelfIDForWindow(window); |