#include "content/public/test/hit_test_region_observer.h"
#include <algorithm>
#include "base/test/test_timeouts.h"
#include "components/viz/common/hit_test/hit_test_query.h"
#include "components/viz/host/host_frame_sink_manager.h"
#include "content/browser/compositor/surface_utils.h"
#include "content/browser/renderer_host/render_frame_host_impl.h"
#include "content/browser/renderer_host/render_widget_host_impl.h"
#include "content/browser/renderer_host/render_widget_host_view_base.h"
#include "content/browser/renderer_host/render_widget_host_view_child_frame.h"
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_test_utils.h"
namespace content {
void WaitForHitTestData(RenderFrameHost* child_frame) { … }
void WaitForHitTestData(WebContents* guest_web_contents) { … }
HitTestRegionObserver::HitTestRegionObserver(
const viz::FrameSinkId& frame_sink_id)
: … { … }
HitTestRegionObserver::~HitTestRegionObserver() { … }
void HitTestRegionObserver::WaitForHitTestData() { … }
void HitTestRegionObserver::WaitForHitTestDataChange() { … }
void HitTestRegionObserver::OnAggregatedHitTestRegionListUpdated(
const viz::FrameSinkId& frame_sink_id,
const std::vector<viz::AggregatedHitTestRegion>& hit_test_data) { … }
const std::vector<viz::AggregatedHitTestRegion>&
HitTestRegionObserver::GetHitTestData() { … }
}