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

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

Issue 155860: GTK: Popup notification is readable with dark themes in chrome theme mode. (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
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 02bd7910262b4b807b0f40aea98038589294bec6..f74e88076eeee5a56494534c4d7cbf814b784553 100644
--- a/chrome/browser/gtk/blocked_popup_container_view_gtk.h
+++ b/chrome/browser/gtk/blocked_popup_container_view_gtk.h
@@ -11,12 +11,15 @@
#include "base/scoped_ptr.h"
#include "chrome/browser/blocked_popup_container.h"
#include "chrome/browser/gtk/menu_gtk.h"
+#include "chrome/common/notification_observer.h"
+#include "chrome/common/notification_registrar.h"
#include "chrome/common/owned_widget_gtk.h"
class BlockedPopupContainerInternalView;
class CustomDrawButton;
class GtkThemeProvider;
class MenuGtk;
+class NotificationObserver;
class PrefService;
class Profile;
class TabContents;
@@ -29,6 +32,7 @@ class ImageButton;
// The GTK blocked popup container notification.
class BlockedPopupContainerViewGtk : public BlockedPopupContainerView,
+ public NotificationObserver,
public MenuGtk::Delegate {
public:
virtual ~BlockedPopupContainerViewGtk();
@@ -51,6 +55,11 @@ class BlockedPopupContainerViewGtk : public BlockedPopupContainerView,
virtual void HideView();
virtual void Destroy();
+ // Overridden from NotificationObserver:
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
+
// Overridden from MenuGtk::Delegate:
virtual bool IsCommandEnabled(int command_id) const;
virtual bool IsItemChecked(int command_id) const;
@@ -76,6 +85,8 @@ class BlockedPopupContainerViewGtk : public BlockedPopupContainerView,
static gboolean OnContainerExpose(GtkWidget* widget, GdkEventExpose* event,
BlockedPopupContainerViewGtk* container);
+ NotificationRegistrar registrar_;
+
// Our model; calling the shots.
BlockedPopupContainer* model_;

Powered by Google App Engine
This is Rietveld 408576698