#ifndef UI_WM_CORE_MASKED_WINDOW_TARGETER_H_
#define UI_WM_CORE_MASKED_WINDOW_TARGETER_H_
#include "ui/aura/window_targeter.h"
#include "ui/wm/core/wm_core_export.h"
namespace gfx {
class Path;
}
namespace wm {
class WM_CORE_EXPORT MaskedWindowTargeter : public aura::WindowTargeter {
public:
explicit MaskedWindowTargeter(aura::Window* masked_window);
virtual ~MaskedWindowTargeter();
protected:
virtual bool GetHitTestMask(aura::Window* window, gfx::Path* mask) const = 0;
virtual bool EventLocationInsideBounds(
aura::Window* window,
const ui::LocatedEvent& event) const OVERRIDE;
private:
aura::Window* masked_window_;
DISALLOW_COPY_AND_ASSIGN(MaskedWindowTargeter);
};
}
#endif