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

Unified Diff: chrome/browser/gtk/status_bubble_gtk.h

Issue 164010: GTK: Rounded corner on status bubble. (Closed)
Patch Set: Completely different implementation based on region instead of mask Created 11 years, 4 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 | « no previous file | chrome/browser/gtk/status_bubble_gtk.cc » ('j') | chrome/browser/gtk/status_bubble_gtk.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/status_bubble_gtk.h
diff --git a/chrome/browser/gtk/status_bubble_gtk.h b/chrome/browser/gtk/status_bubble_gtk.h
index f5847aaab937c58c7db75ad225e1a9dcfb967c3c..fbdc5fd0d4b9aeadbff08f7db952dc71038f2c73 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_;
};
« no previous file with comments | « no previous file | chrome/browser/gtk/status_bubble_gtk.cc » ('j') | chrome/browser/gtk/status_bubble_gtk.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698