Surface synchronization: Implement auto-resize for OOPIF/BrowserPlugin

https://chromium-review.googlesource.com/c/chromium/src/+/753801
This commit is contained in:
deepak1556 2018-04-12 17:26:37 +05:30 committed by Samuel Attard
parent ea7e273a06
commit 3ad0639b2e
4 changed files with 28 additions and 17 deletions

View file

@ -785,6 +785,14 @@ content::JavaScriptDialogManager* WebContents::GetJavaScriptDialogManager(
return dialog_manager_.get();
}
void WebContents::ResizeDueToAutoResize(
content::WebContents* web_contents,
const gfx::Size& new_size) {
if (IsGuest()) {
guest_delegate_->ResizeDueToAutoResize(new_size);
}
}
void WebContents::BeforeUnloadFired(const base::TimeTicks& proceed_time) {
// Do nothing, we override this method just to avoid compilation error since
// there are two virtual functions named BeforeUnloadFired.