summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/custom_button.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/gtk/custom_button.h')
-rw-r--r--chrome/browser/gtk/custom_button.h6
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,