diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-04 23:24:47 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-04 23:24:47 +0000 |
commit | 5043b9832a86dcbe10b0eec99efafd8e304a9502 (patch) | |
tree | fd9ffc524e804a94f6ce7e6465f3adf92a7825e9 /chrome/browser/gtk/download_item_gtk.h | |
parent | e078d3267684d1c8649cc717401d5c0e4df7526f (diff) | |
download | chromium_src-5043b9832a86dcbe10b0eec99efafd8e304a9502.zip chromium_src-5043b9832a86dcbe10b0eec99efafd8e304a9502.tar.gz chromium_src-5043b9832a86dcbe10b0eec99efafd8e304a9502.tar.bz2 |
Add download items to the download shelf in linux.
Review URL: http://codereview.chromium.org/40136
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10935 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/download_item_gtk.h')
-rw-r--r-- | chrome/browser/gtk/download_item_gtk.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/chrome/browser/gtk/download_item_gtk.h b/chrome/browser/gtk/download_item_gtk.h new file mode 100644 index 0000000..f9b15e8 --- /dev/null +++ b/chrome/browser/gtk/download_item_gtk.h @@ -0,0 +1,45 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_BROWSER_GTK_DOWNLOAD_ITEM_GTK_H_ +#define CHROME_BROWSER_GTK_DOWNLOAD_ITEM_GTK_H_ + +#include <gtk/gtk.h> + +#include "base/scoped_ptr.h" + +class BaseDownloadItemModel; +class NineBox; + +class DownloadItemGtk { + public: + // DownloadItemGtk takes ownership of |download_item_model|; + DownloadItemGtk(BaseDownloadItemModel* download_item_model, + GtkWidget* parent_shelf); + + private: + static void InitNineBoxes(); + + static gboolean OnBodyExpose(GtkWidget* widget, GdkEventExpose* e, + DownloadItemGtk* download_item); + + static NineBox* nine_box_normal_; + static NineBox* nine_box_prelight_; + static NineBox* nine_box_active_; + + // The widget that contains the body and menu dropdown. + GtkWidget* hbox_; + + // The widget that contains the name of the download and the progress + // animation. + GtkWidget* body_; + + // The download item model we represent. + scoped_ptr<BaseDownloadItemModel> download_model_; + + // The shelf we show ourselves on. We do not own this widget. + GtkWidget* parent_shelf_; +}; + +#endif // CHROME_BROWSER_GTK_DOWNLOAD_ITEM_GTK_H_ |