#ifndef ASH_WM_STATUS_AREA_LAYOUT_MANAGER_H_
#define ASH_WM_STATUS_AREA_LAYOUT_MANAGER_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "ui/aura/layout_manager.h"
namespace ash {
class ShelfWidget;
class StatusAreaLayoutManager : public aura::LayoutManager {
public:
explicit StatusAreaLayoutManager(ShelfWidget* shelf);
virtual ~StatusAreaLayoutManager();
virtual void OnWindowResized() OVERRIDE;
virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE;
virtual void OnWillRemoveWindowFromLayout(aura::Window* child) OVERRIDE;
virtual void OnWindowRemovedFromLayout(aura::Window* child) OVERRIDE;
virtual void OnChildWindowVisibilityChanged(aura::Window* child,
bool visible) OVERRIDE;
virtual void SetChildBounds(aura::Window* child,
const gfx::Rect& requested_bounds) OVERRIDE;
private:
void LayoutStatusArea();
bool in_layout_;
ShelfWidget* shelf_;
DISALLOW_COPY_AND_ASSIGN(StatusAreaLayoutManager);
};
}
#endif