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

Unified Diff: chrome/browser/gtk/download_shelf_gtk.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/gtk/download_item_gtk.cc ('k') | chrome/browser/gtk/download_shelf_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/download_shelf_gtk.h
===================================================================
--- chrome/browser/gtk/download_shelf_gtk.h (revision 17483)
+++ chrome/browser/gtk/download_shelf_gtk.h (working copy)
@@ -9,18 +9,20 @@
#include <vector>
+#include "base/gfx/native_widget_types.h"
#include "base/scoped_ptr.h"
#include "chrome/browser/download/download_shelf.h"
#include "chrome/common/owned_widget_gtk.h"
class BaseDownloadItemModel;
+class Browser;
class CustomDrawButton;
class DownloadItemGtk;
class SlideAnimatorGtk;
class DownloadShelfGtk : public DownloadShelf {
public:
- explicit DownloadShelfGtk(TabContents* tab_contents);
+ explicit DownloadShelfGtk(Browser* browser, gfx::NativeView view);
~DownloadShelfGtk();
@@ -28,7 +30,12 @@
virtual void AddDownload(BaseDownloadItemModel* download_model);
virtual bool IsShowing() const;
virtual bool IsClosing() const;
+ virtual void Show();
+ virtual void Close();
+ // Returns the current height of the shelf.
+ int GetHeight() const;
+
private:
// Remove |download_item| from the download shelf and delete it.
void RemoveDownloadItem(DownloadItemGtk* download_item);
@@ -45,7 +52,7 @@
scoped_ptr<SlideAnimatorGtk> slide_widget_;
// |hbox_| holds the download items and buttons of the shelf.
- GtkWidget* hbox_;
+ OwnedWidgetGtk hbox_;
// |shelf_| is the second highest level widget. See the constructor
// for an explanation of the widget layout.
« no previous file with comments | « chrome/browser/gtk/download_item_gtk.cc ('k') | chrome/browser/gtk/download_shelf_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698