#ifndef UI_WM_CORE_EASY_RESIZE_WINDOW_TARGETER_H_
#define UI_WM_CORE_EASY_RESIZE_WINDOW_TARGETER_H_
#include "ui/aura/window_targeter.h"
#include "ui/gfx/geometry/insets.h"
#include "ui/wm/core/wm_core_export.h"
namespace wm {
class WM_CORE_EXPORT EasyResizeWindowTargeter : public aura::WindowTargeter {
public:
EasyResizeWindowTargeter(aura::Window* container,
const gfx::Insets& mouse_extend,
const gfx::Insets& touch_extend);
virtual ~EasyResizeWindowTargeter();
protected:
void set_mouse_extend(const gfx::Insets& mouse_extend) {
mouse_extend_ = mouse_extend;
}
void set_touch_extend(const gfx::Insets& touch_extend) {
touch_extend_ = touch_extend;
}
virtual bool EventLocationInsideBounds(
aura::Window* window,
const ui::LocatedEvent& event) const OVERRIDE;
private:
bool ShouldUseExtendedBounds(const aura::Window* window) const;
aura::Window* container_;
gfx::Insets mouse_extend_;
gfx::Insets touch_extend_;
DISALLOW_COPY_AND_ASSIGN(EasyResizeWindowTargeter);
};
}
#endif