#ifndef UI_VIEWS_TEST_TEST_VIEWS_H_
#define UI_VIEWS_TEST_TEST_VIEWS_H_
#include "ui/views/view.h"
namespace views {
class StaticSizedView : public View {
public:
explicit StaticSizedView(const gfx::Size& size);
virtual ~StaticSizedView();
virtual gfx::Size GetPreferredSize() OVERRIDE;
private:
gfx::Size size_;
DISALLOW_COPY_AND_ASSIGN(StaticSizedView);
};
class ProportionallySizedView : public View {
public:
explicit ProportionallySizedView(int factor);
virtual ~ProportionallySizedView();
virtual int GetHeightForWidth(int w) OVERRIDE;
private:
int factor_;
DISALLOW_COPY_AND_ASSIGN(ProportionallySizedView);
};
}
#endif