diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-24 03:10:27 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-24 03:10:27 +0000 |
commit | 1442da5c9fa9df0d8785191d9bf3576931e01d87 (patch) | |
tree | bad79332f360525f415762e6b6afb7c1ddd6f692 /chrome/browser/views/download_shelf_view.cc | |
parent | 80453d922e568f08133f0d8495b73446471d8f82 (diff) | |
download | chromium_src-1442da5c9fa9df0d8785191d9bf3576931e01d87.zip chromium_src-1442da5c9fa9df0d8785191d9bf3576931e01d87.tar.gz chromium_src-1442da5c9fa9df0d8785191d9bf3576931e01d87.tar.bz2 |
When closing the download shelf, hide the buttons of the dangerous download
warning. Also fix the shelf closing animation.
BUG=13632
TEST=Download an exe (e.g. limewire from downloads.com), so that a "dangerous
download" message appears on the shelf. Then close the shelf. The "Yes" and "No"
buttons should be hidden, and the whole download shelf should slide down with
all items on it in place.
Original review url: http://codereview.chromium.org/159261
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21506 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/download_shelf_view.cc')
-rw-r--r-- | chrome/browser/views/download_shelf_view.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome/browser/views/download_shelf_view.cc b/chrome/browser/views/download_shelf_view.cc index dcd7c01..47f0a74 100644 --- a/chrome/browser/views/download_shelf_view.cc +++ b/chrome/browser/views/download_shelf_view.cc @@ -199,7 +199,7 @@ void DownloadShelfView::Layout() { // Let our base class layout our child views views::View::Layout(); - // If there is not enought room to show the first download item, show the + // If there is not enough room to show the first download item, show the // "Show all downloads" link to the left to make it more visible that there is // something to see. bool show_link_only = !CanFitFirstDownloadItem(); @@ -297,8 +297,7 @@ bool DownloadShelfView::IsShowing() const { } bool DownloadShelfView::IsClosing() const { - // TODO(estade): This is never called. For now just return false. - return false; + return shelf_animation_->IsClosing(); } void DownloadShelfView::Show() { |