#ifndef ASH_UTILITY_ROUNDED_WINDOW_TARGETER_H_
#define ASH_UTILITY_ROUNDED_WINDOW_TARGETER_H_
#include "ash/ash_export.h"
#include "ui/aura/window_targeter.h"
#include "ui/gfx/geometry/rrect_f.h"
namespace ash {
class ASH_EXPORT RoundedWindowTargeter : public aura::WindowTargeter {
public:
explicit RoundedWindowTargeter(int radius);
RoundedWindowTargeter(int width, int height, int radius);
RoundedWindowTargeter(const RoundedWindowTargeter&) = delete;
RoundedWindowTargeter& operator=(const RoundedWindowTargeter&) = delete;
~RoundedWindowTargeter() override;
private:
bool EventLocationInsideBounds(aura::Window* target,
const ui::LocatedEvent& event) const override;
gfx::RRectF rrectf_;
};
}
#endif