chromium/ui/events/ozone/evdev/touch_filter/edge_touch_filter.cc

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#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 {

// The maximum distance from the border to be considered for filtering
const int kMaxBorderDistance =;

bool IsNearBorder(const gfx::Point& point, gfx::Size touchscreen_size) {}

}  // namespace

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) {}

}  // namespace ui