Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h

Issue 681043002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_
7 7
8 #include "chrome/browser/ui/passwords/manage_passwords_bubble.h" 8 #include "chrome/browser/ui/passwords/manage_passwords_bubble.h"
9 #include "content/public/browser/notification_observer.h" 9 #include "content/public/browser/notification_observer.h"
10 #include "content/public/browser/notification_registrar.h" 10 #include "content/public/browser/notification_registrar.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 private: 55 private:
56 class BlacklistedView; 56 class BlacklistedView;
57 class ConfirmNeverView; 57 class ConfirmNeverView;
58 class ManageView; 58 class ManageView;
59 class PendingView; 59 class PendingView;
60 class SaveConfirmationView; 60 class SaveConfirmationView;
61 61
62 ManagePasswordsBubbleView(content::WebContents* web_contents, 62 ManagePasswordsBubbleView(content::WebContents* web_contents,
63 ManagePasswordsIconView* anchor_view, 63 ManagePasswordsIconView* anchor_view,
64 DisplayReason reason); 64 DisplayReason reason);
65 virtual ~ManagePasswordsBubbleView(); 65 ~ManagePasswordsBubbleView() override;
66 66
67 // If the bubble is not anchored to a view, places the bubble in the top 67 // If the bubble is not anchored to a view, places the bubble in the top
68 // right (left in RTL) of the |screen_bounds| that contain |web_contents_|'s 68 // right (left in RTL) of the |screen_bounds| that contain |web_contents_|'s
69 // browser window. Because the positioning is based on the size of the 69 // browser window. Because the positioning is based on the size of the
70 // bubble, this must be called after the bubble is created. 70 // bubble, this must be called after the bubble is created.
71 void AdjustForFullscreen(const gfx::Rect& screen_bounds); 71 void AdjustForFullscreen(const gfx::Rect& screen_bounds);
72 72
73 // Close the bubble. 73 // Close the bubble.
74 void Close(); 74 void Close();
75 75
76 // Refreshes the bubble's state: called to display a confirmation screen after 76 // Refreshes the bubble's state: called to display a confirmation screen after
77 // a user selects "Never for this site", for instance. 77 // a user selects "Never for this site", for instance.
78 void Refresh(); 78 void Refresh();
79 79
80 // Called from PendingView if the user clicks on "Never for this site" in 80 // Called from PendingView if the user clicks on "Never for this site" in
81 // order to display a confirmation screen. 81 // order to display a confirmation screen.
82 void NotifyNeverForThisSiteClicked(); 82 void NotifyNeverForThisSiteClicked();
83 83
84 // Called from ConfirmNeverView if the user confirms her intention to never 84 // Called from ConfirmNeverView if the user confirms her intention to never
85 // save passwords, and remove existing passwords, for a site. 85 // save passwords, and remove existing passwords, for a site.
86 void NotifyConfirmedNeverForThisSite(); 86 void NotifyConfirmedNeverForThisSite();
87 87
88 // Called from ConfirmNeverView if the user clicks on "Undo" in order to 88 // Called from ConfirmNeverView if the user clicks on "Undo" in order to
89 // undo the action and refresh to PendingView. 89 // undo the action and refresh to PendingView.
90 void NotifyUndoNeverForThisSite(); 90 void NotifyUndoNeverForThisSite();
91 91
92 // views::BubbleDelegateView: 92 // views::BubbleDelegateView:
93 virtual void Init() override; 93 void Init() override;
94 virtual void WindowClosing() override; 94 void WindowClosing() override;
95 95
96 // views::WidgetDelegate: 96 // views::WidgetDelegate:
97 virtual views::View* GetInitiallyFocusedView() override; 97 views::View* GetInitiallyFocusedView() override;
98 98
99 // content::NotificationObserver: 99 // content::NotificationObserver:
100 virtual void Observe(int type, 100 void Observe(int type,
101 const content::NotificationSource& source, 101 const content::NotificationSource& source,
102 const content::NotificationDetails& details) override; 102 const content::NotificationDetails& details) override;
103 103
104 void set_initially_focused_view(views::View* view) { 104 void set_initially_focused_view(views::View* view) {
105 DCHECK(!initially_focused_view_); 105 DCHECK(!initially_focused_view_);
106 initially_focused_view_ = view; 106 initially_focused_view_ = view;
107 } 107 }
108 108
109 // Singleton instance of the Password bubble. The Password bubble can only be 109 // Singleton instance of the Password bubble. The Password bubble can only be
110 // shown on the active browser window, so there is no case in which it will be 110 // shown on the active browser window, so there is no case in which it will be
111 // shown twice at the same time. The instance is owned by the Bubble and will 111 // shown twice at the same time. The instance is owned by the Bubble and will
112 // be deleted when the bubble closes. 112 // be deleted when the bubble closes.
(...skipping 11 matching lines...) Expand all
124 class WebContentMouseHandler; 124 class WebContentMouseHandler;
125 scoped_ptr<WebContentMouseHandler> mouse_handler_; 125 scoped_ptr<WebContentMouseHandler> mouse_handler_;
126 126
127 // Used to register for fullscreen change notifications. 127 // Used to register for fullscreen change notifications.
128 content::NotificationRegistrar registrar_; 128 content::NotificationRegistrar registrar_;
129 129
130 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleView); 130 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleView);
131 }; 131 };
132 132
133 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_ 133 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698