#ifndef UI_VIEWS_MOUSE_WATCHER_VIEW_HOST_H_
#define UI_VIEWS_MOUSE_WATCHER_VIEW_HOST_H_
#include "base/memory/raw_ptr.h"
#include "ui/views/mouse_watcher.h"
namespace views {
class View;
class VIEWS_EXPORT MouseWatcherViewHost : public MouseWatcherHost {
public:
MouseWatcherViewHost(const View* view, const gfx::Insets& hot_zone_insets);
MouseWatcherViewHost(const MouseWatcherViewHost&) = delete;
MouseWatcherViewHost& operator=(const MouseWatcherViewHost&) = delete;
~MouseWatcherViewHost() override;
bool Contains(const gfx::Point& screen_point, EventType type) override;
private:
bool IsCursorInViewZone(const gfx::Point& screen_point);
bool IsMouseOverWindow();
const raw_ptr<const View> view_;
const gfx::Insets hot_zone_insets_;
};
}
#endif