test: add -pdf-ready-to-print event to WebContents for testing (#43651)
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
		
					parent
					
						
							
								4b5d29201c
							
						
					
				
			
			
				commit
				
					
						96fe03b200
					
				
			
		
					 5 changed files with 30 additions and 11 deletions
				
			
		| 
						 | 
				
			
			@ -3739,6 +3739,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 : 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