diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-11 01:02:06 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-11 01:02:06 +0000 |
commit | a3c98974f2b681ee3d84cf50f45c39a7d8de378a (patch) | |
tree | e4461e1f910309fbbbcb91e47a32bfe3909fddc3 /chrome | |
parent | b5e8a7f62ba4037c1a30d861a4a5de3a80fa1de0 (diff) | |
download | chromium_src-a3c98974f2b681ee3d84cf50f45c39a7d8de378a.zip chromium_src-a3c98974f2b681ee3d84cf50f45c39a7d8de378a.tar.gz chromium_src-a3c98974f2b681ee3d84cf50f45c39a7d8de378a.tar.bz2 |
gtk: Notify the TabContents when the browser window has been moved or resized. This is used to close the AutoFill popup in the renderer.
BUG=31865
TEST=none
Review URL: http://codereview.chromium.org/805006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41230 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-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()); |