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

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

Issue 160025: GTK Themes: Theme the bookmark bubble. (And first run bubble). (Closed)
Patch Set: Remove text_color for estade 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/first_run_bubble.cc ('k') | chrome/browser/gtk/info_bubble_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/info_bubble_gtk.h
diff --git a/chrome/browser/gtk/info_bubble_gtk.h b/chrome/browser/gtk/info_bubble_gtk.h
index 270718740d8bca1315c9bdb070176051acb788d1..7bc45b9e6153fa2cc6ff8276895ae93b9d94a33e 100644
--- a/chrome/browser/gtk/info_bubble_gtk.h
+++ b/chrome/browser/gtk/info_bubble_gtk.h
@@ -18,6 +18,7 @@
#include "base/basictypes.h"
#include "chrome/common/notification_registrar.h"
+class GtkThemeProvider;
class InfoBubbleGtk;
namespace gfx {
class Rect;
@@ -43,6 +44,7 @@ class InfoBubbleGtk : public NotificationObserver {
static InfoBubbleGtk* Show(GtkWindow* transient_toplevel,
const gfx::Rect& rect,
GtkWidget* content,
+ GtkThemeProvider* provider,
InfoBubbleGtkDelegate* delegate);
// Close the bubble if it's open. This will delete the widgets and object,
@@ -60,7 +62,7 @@ class InfoBubbleGtk : public NotificationObserver {
static GtkWindow* GetToplevelForInfoBubble(const GdkWindow* bubble_window);
private:
- InfoBubbleGtk();
+ explicit InfoBubbleGtk(GtkThemeProvider* provider);
virtual ~InfoBubbleGtk();
// Creates the InfoBubble.
@@ -121,6 +123,9 @@ class InfoBubbleGtk : public NotificationObserver {
// it deletes us when it is destroyed.
GtkWidget* window_;
+ // Provides colors and stuff.
+ GtkThemeProvider* theme_provider_;
+
// The accel group attached to |window_|, to handle closing with escape.
GtkAccelGroup* accel_group_;
« no previous file with comments | « chrome/browser/gtk/first_run_bubble.cc ('k') | chrome/browser/gtk/info_bubble_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698