Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1676)

Unified Diff: chrome/browser/views/download_shelf_view.h

Issue 115740: Move download shelf from per-tab to per-window (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view_gtk.cc ('k') | chrome/browser/views/download_shelf_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/download_shelf_view.h
===================================================================
--- chrome/browser/views/download_shelf_view.h (revision 17483)
+++ chrome/browser/views/download_shelf_view.h (working copy)
@@ -16,7 +16,8 @@
}
class BaseDownloadItemModel;
-class TabContents;
+class Browser;
+class BrowserView;
class DownloadAnimation;
@@ -33,7 +34,7 @@
public views::LinkController,
public AnimationDelegate {
public:
- explicit DownloadShelfView(TabContents* tab_contents);
+ explicit DownloadShelfView(Browser* browser, BrowserView* parent);
// Implementation of View.
virtual gfx::Size GetPreferredSize();
@@ -57,6 +58,8 @@
virtual void AddDownload(BaseDownloadItemModel* download_model);
virtual bool IsShowing() const;
virtual bool IsClosing() const;
+ virtual void Show();
+ virtual void Close();
// Removes a specified download view. The supplied view is deleted after
// it's removed.
@@ -97,6 +100,9 @@
// deleted by View.
views::ImageButton* close_button_;
+ // The window this shelf belongs to.
+ BrowserView* parent_;
+
DISALLOW_COPY_AND_ASSIGN(DownloadShelfView);
};
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view_gtk.cc ('k') | chrome/browser/views/download_shelf_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698