test: add -pdf-ready-to-print event to WebContents for testing (#43465)
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
This commit is contained in:
parent
ddc19e3ea0
commit
824b1aeb71
6 changed files with 34 additions and 7 deletions
|
@ -3754,6 +3754,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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue