test: add -pdf-ready-to-print event to WebContents for testing (#43436)
This commit is contained in:
parent
9ce0ca74c3
commit
c1eee18e41
6 changed files with 34 additions and 7 deletions
|
@ -3784,6 +3784,10 @@ void WebContents::SetBackgroundColor(std::optional<SkColor> maybe_color) {
|
|||
}
|
||||
}
|
||||
|
||||
void WebContents::PDFReadyToPrint() {
|
||||
Emit("-pdf-ready-to-print");
|
||||
}
|
||||
|
||||
void WebContents::OnInputEvent(const blink::WebInputEvent& event) {
|
||||
Emit("input-event", event);
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue