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

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

Issue 149259: GTK Themes: Status bubble obeys GTK colors now. (Closed)
Patch Set: Created 11 years, 5 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 | « chrome/browser/gtk/browser_window_gtk.cc ('k') | chrome/browser/gtk/status_bubble_gtk.cc » ('j') | no next file with comments »
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 006efd0881c09b03ba4d60454bb450e23d9e1193..5359dec927b1f308f97b458cd27b563f50fb565f 100644
--- a/chrome/browser/gtk/status_bubble_gtk.h
+++ b/chrome/browser/gtk/status_bubble_gtk.h
@@ -14,7 +14,9 @@
#include "chrome/browser/status_bubble.h"
#include "chrome/common/owned_widget_gtk.h"
+class GtkThemeProperties;
class GURL;
+class Profile;
// GTK implementation of StatusBubble. Unlike Windows, our status bubble
// doesn't have the nice leave-the-window effect since we can't rely on the
@@ -22,7 +24,7 @@ class GURL;
// We therefore position it absolutely in a GtkFixed, that we don't own.
class StatusBubbleGtk : public StatusBubble {
public:
- StatusBubbleGtk();
+ StatusBubbleGtk(Profile* profile);
virtual ~StatusBubbleGtk();
// StatusBubble implementation.
@@ -41,6 +43,9 @@ class StatusBubbleGtk : public StatusBubble {
// identification.
GtkWidget* widget() { return container_.get(); }
+ // Notification from the window that we should retheme ourself.
+ void UserChangedTheme(GtkThemeProperties* properties);
+
private:
// Sets the text of the label widget and controls visibility. (As contrasted
// with setting the current status or URL text, which may be ignored for now).
@@ -62,6 +67,10 @@ class StatusBubbleGtk : public StatusBubble {
// The GtkLabel holding the text.
GtkWidget* label_;
+ // The background event box. We keep this so we can change it's background
Evan Martin 2009/07/07 17:35:25 s/it's/its/
+ // color.
+ GtkWidget* bg_box_;
+
// The status text we want to display when there are no URLs to display.
std::string status_text_;
« no previous file with comments | « chrome/browser/gtk/browser_window_gtk.cc ('k') | chrome/browser/gtk/status_bubble_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698