| Index: chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h
|
| diff --git a/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h b/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h
|
| index 3b3b2b8ce191a7067df60f1b3979460b4f6972b3..bd07c13f5f0de89c9ef845c716cacc453b2605d1 100644
|
| --- a/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h
|
| +++ b/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h
|
| @@ -6,6 +6,8 @@
|
| #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;
|
| @@ -23,7 +25,8 @@ class WebContents;
|
| // 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,
|
| @@ -90,9 +93,14 @@ class ManagePasswordsBubbleView : public ManagePasswordsBubble,
|
| virtual void Init() override;
|
| virtual void WindowClosing() override;
|
|
|
| - // views::WidgetDelegate
|
| + // views::WidgetDelegate:
|
| virtual views::View* GetInitiallyFocusedView() override;
|
|
|
| + // content::NotificationObserver:
|
| + virtual 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_);
|
| initially_focused_view_ = view;
|
| @@ -116,6 +124,9 @@ class ManagePasswordsBubbleView : public ManagePasswordsBubble,
|
| class WebContentMouseHandler;
|
| scoped_ptr<WebContentMouseHandler> mouse_handler_;
|
|
|
| + // Used to register for fullscreen change notifications.
|
| + content::NotificationRegistrar registrar_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleView);
|
| };
|
|
|
|
|