From 59560e0ba999d5edc33453d4a0fbf44831025817 Mon Sep 17 00:00:00 2001 From: "thakis@chromium.org" Date: Thu, 4 Jun 2009 03:30:22 +0000 Subject: Move download shelf from per-tab to per-window. Also disable auto-hiding of the shelf. BUG=9025 TEST=Download file in one tab, open new tab, and check that download shelf is still open. Also try the shelf's close button and the "show all downloads" link. When saving a file, the download animation should not show up. Review URL: http://codereview.chromium.org/115740 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17595 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/browser_window.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'chrome/browser/browser_window.h') diff --git a/chrome/browser/browser_window.h b/chrome/browser/browser_window.h index 3ce7097..743cc94 100644 --- a/chrome/browser/browser_window.h +++ b/chrome/browser/browser_window.h @@ -10,6 +10,8 @@ class Browser; class BrowserList; class BrowserWindowTesting; +class DownloadItem; +class DownloadShelf; class FindBar; class GURL; class LocationBar; @@ -143,6 +145,12 @@ class BrowserWindow { // |already_bookmarked| is true if the url is already bookmarked. virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) = 0; + // Whether or not the shelf view is visible. + virtual bool IsDownloadShelfVisible() const = 0; + + // Returns the DownloadShelf. + virtual DownloadShelf* GetDownloadShelf() = 0; + // Shows the Report a Bug dialog box. virtual void ShowReportBugDialog() = 0; -- cgit v1.1