| 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_;
|
|
|
|
|