diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-06 23:33:08 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-06 23:33:08 +0000 |
commit | 3dda0dcf7d4856d598a2a0e7553e71dbd59134eb (patch) | |
tree | a9f2f93ce239ff603b05f900e34fa6a2a460227b /chrome/browser/gtk/custom_button.h | |
parent | ae0f44dd31b81be0d9e0ef5d4478e0ef5ca2805d (diff) | |
download | chromium_src-3dda0dcf7d4856d598a2a0e7553e71dbd59134eb.zip chromium_src-3dda0dcf7d4856d598a2a0e7553e71dbd59134eb.tar.gz chromium_src-3dda0dcf7d4856d598a2a0e7553e71dbd59134eb.tar.bz2 |
Basic infobars on linux.
All infobars consist of nothing but a non-functioning close button.
Review URL: http://codereview.chromium.org/62070
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13206 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/custom_button.h')
-rw-r--r-- | chrome/browser/gtk/custom_button.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/gtk/custom_button.h b/chrome/browser/gtk/custom_button.h index 2bc6cfc..518f069 100644 --- a/chrome/browser/gtk/custom_button.h +++ b/chrome/browser/gtk/custom_button.h @@ -32,6 +32,12 @@ class CustomDrawButton { GtkWidget* widget() const { return widget_.get(); } + // This is a convenience function for creating a widget that closes + // a bar (find bar, download shelf, info bars). The button will be packed in + // |hbox|. + // The caller is responsible for destroying the returned CustomDrawButton. + static CustomDrawButton* AddBarCloseButton(GtkWidget* hbox); + private: // Callback for expose, used to draw the custom graphics. static gboolean OnExpose(GtkWidget* widget, GdkEventExpose* e, |