// Copyright 2018 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_PUBLIC_TEST_HIT_TEST_REGION_OBSERVER_H_ #define CONTENT_PUBLIC_TEST_HIT_TEST_REGION_OBSERVER_H_ #include <memory> #include <vector> #include "base/run_loop.h" #include "components/viz/common/hit_test/aggregated_hit_test_region.h" #include "components/viz/common/hit_test/hit_test_region_observer.h" #include "components/viz/common/surfaces/frame_sink_id.h" namespace content { class RenderFrameHost; class WebContents; // Waits until hit test data for |child_frame| or |guest_web_contents| has been // submitted, see HitTestRegionObserver::WaitForHitTestData(). void WaitForHitTestData(RenderFrameHost* child_frame); void WaitForHitTestData(WebContents* guest_web_contents); // TODO(jonross): Move this to components/viz/host/hit_test/ as a standalone // HitTestDataWaiter (is-a HitTestRegionObserver) once Viz HitTesting is on by // default, and there are no longer dependancies upon content. // // Test API which observes the arrival / change of hit test data within a Viz // host. // // HitTestRegionObserver is bound to a viz::FrameSinkId for which it observers // changes in hit test data. class HitTestRegionObserver : public viz::HitTestRegionObserver { … }; } // namespace content #endif // CONTENT_PUBLIC_TEST_HIT_TEST_REGION_OBSERVER_H_