test: add -pdf-ready-to-print event to WebContents for testing (#43647)
This commit is contained in:
parent
f427e05d82
commit
a4938311cd
5 changed files with 30 additions and 11 deletions
|
@ -3744,6 +3744,10 @@ void WebContents::OnInputEvent(const blink::WebInputEvent& event) {
|
|||
Emit("input-event", event);
|
||||
}
|
||||
|
||||
void WebContents::PDFReadyToPrint() {
|
||||
Emit("-pdf-ready-to-print");
|
||||
}
|
||||
|
||||
void WebContents::RunJavaScriptDialog(content::WebContents* web_contents,
|
||||
content::RenderFrameHost* rfh,
|
||||
content::JavaScriptDialogType dialog_type,
|
||||
|
|
|
@ -478,6 +478,8 @@ class WebContents final : 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