OLD | NEW |
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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 } | 108 } |
109 | 109 |
110 // Singleton instance of the Password bubble. The Password bubble can only be | 110 // Singleton instance of the Password bubble. The Password bubble can only be |
111 // shown on the active browser window, so there is no case in which it will be | 111 // shown on the active browser window, so there is no case in which it will be |
112 // shown twice at the same time. The instance is owned by the Bubble and will | 112 // shown twice at the same time. The instance is owned by the Bubble and will |
113 // be deleted when the bubble closes. | 113 // be deleted when the bubble closes. |
114 static ManagePasswordsBubbleView* manage_passwords_bubble_; | 114 static ManagePasswordsBubbleView* manage_passwords_bubble_; |
115 | 115 |
116 ManagePasswordsIconView* anchor_view_; | 116 ManagePasswordsIconView* anchor_view_; |
117 | 117 |
118 // If true upon destruction, the user has confirmed that she never wants to | |
119 // save passwords for a particular site. | |
120 bool never_save_passwords_; | |
121 | |
122 views::View* initially_focused_view_; | 118 views::View* initially_focused_view_; |
123 | 119 |
124 // A helper to intercept mouse click events on the web contents. | 120 // A helper to intercept mouse click events on the web contents. |
125 class WebContentMouseHandler; | 121 class WebContentMouseHandler; |
126 scoped_ptr<WebContentMouseHandler> mouse_handler_; | 122 scoped_ptr<WebContentMouseHandler> mouse_handler_; |
127 | 123 |
128 // Used to register for fullscreen change notifications. | 124 // Used to register for fullscreen change notifications. |
129 content::NotificationRegistrar registrar_; | 125 content::NotificationRegistrar registrar_; |
130 | 126 |
131 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleView); | 127 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleView); |
132 }; | 128 }; |
133 | 129 |
134 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_ | 130 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_ |
OLD | NEW |