Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / views / passwords / manage_passwords_bubble_view.h
index a33c2b0..00f05f5 100644 (file)
@@ -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,
@@ -59,7 +62,7 @@ class ManagePasswordsBubbleView : public ManagePasswordsBubble,
   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
@@ -87,11 +90,16 @@ class ManagePasswordsBubbleView : public ManagePasswordsBubble,
   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_);
@@ -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);
 };