#ifndef ASH_WM_DEFAULT_WINDOW_RESIZER_H_
#define ASH_WM_DEFAULT_WINDOW_RESIZER_H_
#include "ash/wm/window_resizer.h"
#include "base/compiler_specific.h"
namespace ash {
class ASH_EXPORT DefaultWindowResizer : public WindowResizer {
public:
virtual ~DefaultWindowResizer();
static DefaultWindowResizer* Create(wm::WindowState* window_state);
bool is_resizable() const { return details().is_resizable; }
bool changed_size() const {
return !(details().bounds_change & kBoundsChange_Repositions);
}
virtual void Drag(const gfx::Point& location, int event_flags) OVERRIDE;
virtual void CompleteDrag() OVERRIDE;
virtual void RevertDrag() OVERRIDE;
private:
explicit DefaultWindowResizer(wm::WindowState* window_state);
bool did_move_or_resize_;
DISALLOW_COPY_AND_ASSIGN(DefaultWindowResizer);
};
}
#endif