#define CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_
#include "chrome/browser/ui/passwords/manage_passwords_bubble.h"
+#include "content/public/browser/notification_observer.h"
+#include "content/public/browser/notification_registrar.h"
#include "ui/views/bubble/bubble_delegate.h"
class ManagePasswordsIconView;
// 3. BlacklistedView: Informs the user that the current page is blacklisted.
//
class ManagePasswordsBubbleView : public ManagePasswordsBubble,
- public views::BubbleDelegateView {
+ public views::BubbleDelegateView,
+ public content::NotificationObserver {
public:
// Shows the bubble.
static void ShowBubble(content::WebContents* web_contents,
ManagePasswordsBubbleView(content::WebContents* web_contents,
ManagePasswordsIconView* anchor_view,
DisplayReason reason);
- virtual ~ManagePasswordsBubbleView();
+ ~ManagePasswordsBubbleView() override;
// If the bubble is not anchored to a view, places the bubble in the top
// right (left in RTL) of the |screen_bounds| that contain |web_contents_|'s
void NotifyUndoNeverForThisSite();
// views::BubbleDelegateView:
- virtual void Init() OVERRIDE;
- virtual void WindowClosing() OVERRIDE;
+ void Init() override;
+ void WindowClosing() override;
- // views::WidgetDelegate
- virtual views::View* GetInitiallyFocusedView() OVERRIDE;
+ // views::WidgetDelegate:
+ views::View* GetInitiallyFocusedView() override;
+
+ // content::NotificationObserver:
+ void Observe(int type,
+ const content::NotificationSource& source,
+ const content::NotificationDetails& details) override;
void set_initially_focused_view(views::View* view) {
DCHECK(!initially_focused_view_);
class WebContentMouseHandler;
scoped_ptr<WebContentMouseHandler> mouse_handler_;
+ // Used to register for fullscreen change notifications.
+ content::NotificationRegistrar registrar_;
+
DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleView);
};