test: add -pdf-ready-to-print event to WebContents for testing (#43436)

This commit is contained in:
John Kleinschmidt 2024-08-23 13:34:26 -04:00 committed by GitHub
parent 9ce0ca74c3
commit c1eee18e41
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 34 additions and 7 deletions

View file

@ -492,6 +492,8 @@ class WebContents : public ExclusiveAccessContext,
void SetBackgroundColor(std::optional<SkColor> color);
void PDFReadyToPrint();
SkRegion* draggable_region() {
return force_non_draggable_ ? nullptr : draggable_region_.get();
}