Index: chrome/browser/gtk/blocked_popup_container_view_gtk.h |
diff --git a/chrome/browser/gtk/blocked_popup_container_view_gtk.h b/chrome/browser/gtk/blocked_popup_container_view_gtk.h |
index c5fdc1aa31497061ce0c98193f6e3ecf1d570e02..dab57f462f3fa3e509f4101956a2f92e4c842e13 100644 |
--- a/chrome/browser/gtk/blocked_popup_container_view_gtk.h |
+++ b/chrome/browser/gtk/blocked_popup_container_view_gtk.h |
@@ -15,6 +15,7 @@ |
class BlockedPopupContainerInternalView; |
class CustomDrawButton; |
+class GtkThemeProperties; |
class MenuGtk; |
class PrefService; |
class Profile; |
@@ -41,6 +42,10 @@ class BlockedPopupContainerViewGtk : public BlockedPopupContainerView, |
string16* url, |
string16* title) const; |
+ // Notification that the theme has changed at that we should detect new |
+ // values. |
+ void UserChangedTheme(GtkThemeProperties* properties); |
+ |
GtkWidget* widget() { return container_.get(); } |
// Overridden from BlockedPopupContainerView: |
@@ -72,7 +77,8 @@ class BlockedPopupContainerViewGtk : public BlockedPopupContainerView, |
BlockedPopupContainerViewGtk* container); |
// Draws |container_| with a custom background. |
- static gboolean OnContainerExpose(GtkWidget* widget, GdkEventExpose* event); |
+ static gboolean OnContainerExpose(GtkWidget* widget, GdkEventExpose* event, |
+ BlockedPopupContainerViewGtk* container); |
// Our model; calling the shots. |
BlockedPopupContainer* model_; |
@@ -83,6 +89,9 @@ class BlockedPopupContainerViewGtk : public BlockedPopupContainerView, |
// The "Blocked Popups: XXX" button. |
GtkWidget* menu_button_; |
+ // Whether we should let GTK paint the background and the button decorations. |
+ bool use_gtk_rendering_; |
+ |
// Closes the container. |
scoped_ptr<CustomDrawButton> close_button_; |