#ifndef ASH_SYSTEM_TRAY_FIXED_SIZED_SCROLL_VIEW_H_
#define ASH_SYSTEM_TRAY_FIXED_SIZED_SCROLL_VIEW_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "ui/views/controls/scroll_view.h"
namespace ash {
class FixedSizedScrollView : public views::ScrollView {
public:
FixedSizedScrollView();
virtual ~FixedSizedScrollView();
void SetContentsView(views::View* view);
void SetFixedSize(const gfx::Size& size);
void set_fixed_size(const gfx::Size& size) { fixed_size_ = size; }
virtual gfx::Size GetPreferredSize() OVERRIDE;
virtual void Layout() OVERRIDE;
protected:
virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE;
private:
gfx::Size fixed_size_;
DISALLOW_COPY_AND_ASSIGN(FixedSizedScrollView);
};
}
#endif