diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-15 21:52:48 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-15 21:52:48 +0000 |
commit | 0a2aeb81a06170cf4d99392b683736c46212f9ef (patch) | |
tree | 1c491dcbe56474ad5bbbd6da0cd47c75eca414d3 /chrome/browser/download | |
parent | 26ee7556422eb077a813c9a15a03867779bb8188 (diff) | |
download | chromium_src-0a2aeb81a06170cf4d99392b683736c46212f9ef.zip chromium_src-0a2aeb81a06170cf4d99392b683736c46212f9ef.tar.gz chromium_src-0a2aeb81a06170cf4d99392b683736c46212f9ef.tar.bz2 |
Linux: Take download shelf and infobar close animations into account during render view sizing.
http://crbug.com/11080
Review URL: http://codereview.chromium.org/113322
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16193 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download')
-rw-r--r-- | chrome/browser/download/download_shelf.h | 3 | ||||
-rw-r--r-- | chrome/browser/download/save_package.cc | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/download/download_shelf.h b/chrome/browser/download/download_shelf.h index 15410ae..1b455c0 100644 --- a/chrome/browser/download/download_shelf.h +++ b/chrome/browser/download/download_shelf.h @@ -43,6 +43,9 @@ class DownloadShelf { // the beginning Show and true at the beginning of a Hide. virtual bool IsShowing() const = 0; + // Returns whether the download shelf is showing the close animation. + virtual bool IsClosing() const = 0; + protected: TabContents* tab_contents_; diff --git a/chrome/browser/download/save_package.cc b/chrome/browser/download/save_package.cc index 85c3003..9356a68 100644 --- a/chrome/browser/download/save_package.cc +++ b/chrome/browser/download/save_package.cc @@ -252,7 +252,7 @@ bool SavePackage::Init() { FilePath(), Time::Now(), 0, -1, -1, false); download_->set_manager(tab_contents_->profile()->GetDownloadManager()); #if !defined(OS_MACOSX) - DownloadShelf* shelf = tab_contents_->GetDownloadShelf(); + DownloadShelf* shelf = tab_contents_->GetDownloadShelf(true); shelf->AddDownload(new SavePageModel(this, download_)); tab_contents_->SetDownloadShelfVisible(true); #else |