diff options
-rw-r--r-- | chrome/browser/gtk/browser_window_gtk.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/gtk/browser_window_gtk.cc b/chrome/browser/gtk/browser_window_gtk.cc index f1dc892..2c1bb32 100644 --- a/chrome/browser/gtk/browser_window_gtk.cc +++ b/chrome/browser/gtk/browser_window_gtk.cc @@ -1210,6 +1210,12 @@ void BrowserWindowGtk::DestroyBrowser() { void BrowserWindowGtk::OnBoundsChanged(const gfx::Rect& bounds) { GetLocationBar()->location_entry()->ClosePopup(); + // Notify the TabContents that the browser window has been resized or moved. + // This is used to close AutoFill popups in the renderer. + TabContents* tab_contents = browser_->GetSelectedTabContents(); + if (tab_contents) + tab_contents->WindowMoveOrResizeStarted(); + if (bounds_.size() != bounds.size()) OnSizeChanged(bounds.width(), bounds.height()); |