#include "components/viz/service/hit_test/hit_test_manager.h"
#include <utility>
#include <vector>
#include "components/viz/common/hit_test/aggregated_hit_test_region.h"
#include "components/viz/service/hit_test/hit_test_aggregator.h"
#include "components/viz/service/surfaces/latest_local_surface_id_lookup_delegate.h"
#include "components/viz/service/surfaces/surface.h"
namespace viz {
namespace {
constexpr uint32_t kMaxRegionsPerSurface = …;
bool FlagsAndAsyncReasonsMatch(uint32_t flags,
uint32_t async_hit_test_reasons) { … }
}
HitTestManager::HitTestManager(SurfaceManager* surface_manager)
: … { … }
HitTestManager::~HitTestManager() = default;
void HitTestManager::OnSurfaceDestroyed(const SurfaceId& surface_id) { … }
void HitTestManager::OnSurfaceActivated(const SurfaceId& surface_id) { … }
void HitTestManager::SubmitHitTestRegionList(
const SurfaceId& surface_id,
const uint64_t frame_index,
std::optional<HitTestRegionList> hit_test_region_list) { … }
const HitTestRegionList* HitTestManager::GetActiveHitTestRegionList(
LatestLocalSurfaceIdLookupDelegate* delegate,
const FrameSinkId& frame_sink_id,
uint64_t* store_active_frame_index) const { … }
int64_t HitTestManager::GetTraceId(const SurfaceId& id) const { … }
bool HitTestManager::ValidateHitTestRegionList(
const SurfaceId& surface_id,
HitTestRegionList* hit_test_region_list) { … }
}