#include "third_party/blink/renderer/modules/delegated_ink/delegated_ink_trail_presenter.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_core.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_pointer_event_init.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_ink_trail_style.h"
#include "third_party/blink/renderer/core/dom/element.h"
#include "third_party/blink/renderer/core/events/pointer_event.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/html/html_iframe_element.h"
#include "third_party/blink/renderer/core/paint/paint_layer_scrollable_area.h"
#include "third_party/blink/renderer/core/testing/sim/sim_request.h"
#include "third_party/blink/renderer/core/testing/sim/sim_test.h"
#include "ui/gfx/delegated_ink_metadata.h"
namespace blink {
namespace {
class TestDelegatedInkMetadata { … };
DelegatedInkTrailPresenter* CreatePresenter(Element* element,
LocalFrame* frame) { … }
}
class DelegatedInkTrailPresenterUnitTest : public SimTest { … };
class DelegatedInkTrailPresenterCanvasBeyondViewport
: public DelegatedInkTrailPresenterUnitTest,
public testing::WithParamInterface<bool> { … };
TEST_P(DelegatedInkTrailPresenterCanvasBeyondViewport,
CollectAndPropagateMetadata) { … }
TEST_P(DelegatedInkTrailPresenterCanvasBeyondViewport,
NotDefaultDevicePixelRatio) { … }
TEST_P(DelegatedInkTrailPresenterCanvasBeyondViewport,
NotDefaultPageScaleFactor) { … }
TEST_P(DelegatedInkTrailPresenterCanvasBeyondViewport,
NotDefaultPageScaleFactorNonZeroOffset) { … }
TEST_P(DelegatedInkTrailPresenterCanvasBeyondViewport, CanvasNotAtOrigin) { … }
TEST_P(DelegatedInkTrailPresenterCanvasBeyondViewport, CanvasInIFrame) { … }
TEST_P(DelegatedInkTrailPresenterCanvasBeyondViewport, NestedIframe) { … }
TEST_P(DelegatedInkTrailPresenterCanvasBeyondViewport,
IFrameNoPresentationArea) { … }
INSTANTIATE_TEST_SUITE_P(…);
TEST_F(DelegatedInkTrailPresenterUnitTest, PresentationAreaNotProvided) { … }
TEST_F(DelegatedInkTrailPresenterUnitTest, CanvasExtendsOutsideOfIframe) { … }
TEST_F(DelegatedInkTrailPresenterUnitTest, CanvasLeftAndAboveIframeBoundaries) { … }
TEST_F(DelegatedInkTrailPresenterUnitTest, OuterIframeClipsInnerIframe) { … }
}