summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/status_bubble_gtk.h
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-06 19:57:22 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-06 19:57:22 +0000
commit1ed38c7a8e30647e1bc5c0aa857dd1ca8e8a3154 (patch)
treeb2ff03f24b674e8c5a4f12ecf46a1135df670b59 /chrome/browser/gtk/status_bubble_gtk.h
parent328f7367183ea9a87ffa76561cd3a27f97e1bc2d (diff)
downloadchromium_src-1ed38c7a8e30647e1bc5c0aa857dd1ca8e8a3154.zip
chromium_src-1ed38c7a8e30647e1bc5c0aa857dd1ca8e8a3154.tar.gz
chromium_src-1ed38c7a8e30647e1bc5c0aa857dd1ca8e8a3154.tar.bz2
GTK: Rounded corner on status bubble.
http://crbug.com/18309 Review URL: http://codereview.chromium.org/164010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22644 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/status_bubble_gtk.h')
-rw-r--r--chrome/browser/gtk/status_bubble_gtk.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/chrome/browser/gtk/status_bubble_gtk.h b/chrome/browser/gtk/status_bubble_gtk.h
index f5847aa..fbdc5fd 100644
--- a/chrome/browser/gtk/status_bubble_gtk.h
+++ b/chrome/browser/gtk/status_bubble_gtk.h
@@ -69,27 +69,34 @@ class StatusBubbleGtk : public StatusBubble,
// Notification from the window that we should retheme ourself.
void UserChangedTheme();
+ // Draws the inside border.
+ static gboolean OnExpose(GtkWidget* widget, GdkEventExpose* event,
+ StatusBubbleGtk* bubble);
+
+ // When we have a new size, modify our widget shape.
+ static void OnSizeAllocate(GtkWidget* widget, GtkAllocation* allocation,
+ StatusBubbleGtk* bubble);
+
NotificationRegistrar registrar_;
// Provides colors.
GtkThemeProvider* theme_provider_;
- // A GtkAlignment that is the child of |slide_widget_|.
+ // The toplevel event box.
OwnedWidgetGtk container_;
// The GtkLabel holding the text.
GtkWidget* label_;
- // The background event box. We keep this so we can change its background
- // color.
- GtkWidget* bg_box_;
-
// The status text we want to display when there are no URLs to display.
std::string status_text_;
// The url we want to display when there is no status text to display.
std::string url_text_;
+ // Color of the lighter border around the edge of the status bubble.
+ GdkColor border_color_;
+
// A timer that hides our window after a delay.
ScopedRunnableMethodFactory<StatusBubbleGtk> timer_factory_;
};