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

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

Issue 149277: GTK Themes: Theme the popup notification. (Closed)
Patch Set: lint + comments 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
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_;

Powered by Google App Engine
This is Rietveld 408576698