#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "ui/events/ozone/evdev/touch_filter/edge_touch_filter.h"
#include <stddef.h>
#include <cmath>
#include "base/metrics/histogram_macros.h"
#include "ui/gfx/geometry/insets.h"
namespace ui {
namespace {
const int kMaxBorderDistance = …;
bool IsNearBorder(const gfx::Point& point, gfx::Size touchscreen_size) { … }
}
EdgeTouchFilter::EdgeTouchFilter(const gfx::Size& touchscreen_size)
: … { … }
EdgeTouchFilter::~EdgeTouchFilter() { … }
void EdgeTouchFilter::Filter(
const std::vector<InProgressTouchEvdev>& touches,
base::TimeTicks time,
std::bitset<kNumTouchEvdevSlots>* slots_should_delay) { … }
}