#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "components/input/render_widget_host_input_event_router.h"
#include "content/browser/renderer_host/render_widget_host_impl.h"
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/content_browser_test.h"
#include "content/public/test/content_browser_test_utils.h"
#include "content/public/test/hit_test_region_observer.h"
#include "content/shell/browser/shell.h"
#include "third_party/blink/public/common/input/synthetic_web_input_event_builders.h"
#include "ui/events/gesture_detection/gesture_configuration.h"
#if BUILDFLAG(IS_ANDROID)
#include "content/browser/renderer_host/render_widget_host_view_android.h"
#endif
WebMouseWheelEvent;
namespace {
void GiveItSomeTime() { … }
const char kWheelEventLatchingDataURL[] = …;
}
namespace content {
class WheelScrollLatchingBrowserTest : public ContentBrowserTest { … };
IN_PROC_BROWSER_TEST_F(WheelScrollLatchingBrowserTest, WheelEventTarget) { … }
IN_PROC_BROWSER_TEST_F(WheelScrollLatchingBrowserTest,
DISABLED_WheelEventRetargetWhenTargetRemoved) { … }
IN_PROC_BROWSER_TEST_F(
WheelScrollLatchingBrowserTest,
DISABLED_WheelScrollingRelatchWhenLatchedScrollerRemoved) { … }
const char kWheelRetargetIfPreventedByDefault[] = …;
IN_PROC_BROWSER_TEST_F(WheelScrollLatchingBrowserTest,
WheelEventRetargetOnPreventDefault) { … }
}