projects
/
platform
/
framework
/
web
/
crosswalk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update To 11.40.268.0
[platform/framework/web/crosswalk.git]
/
src
/
chrome
/
browser
/
ui
/
views
/
passwords
/
manage_passwords_bubble_view.h
diff --git
a/src/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h
b/src/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h
index
a33c2b0
..
00f05f5
100644
(file)
--- a/
src/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h
+++ b/
src/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"
#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;
#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,
// 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,
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);
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
// 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:
void NotifyUndoNeverForThisSite();
// views::BubbleDelegateView:
- v
irtual void Init() OVERRIDE
;
- v
irtual void WindowClosing() OVERRIDE
;
+ v
oid Init() override
;
+ v
oid 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_);
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_;
class WebContentMouseHandler;
scoped_ptr<WebContentMouseHandler> mouse_handler_;
+ // Used to register for fullscreen change notifications.
+ content::NotificationRegistrar registrar_;
+
DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleView);
};
DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleView);
};