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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "chrome/browser/ui/passwords/manage_passwords_bubble.h" | 9 #include "chrome/browser/ui/passwords/manage_passwords_bubble.h" |
10 #include "chrome/browser/ui/views/passwords/save_password_refusal_combobox_model
.h" | 10 #include "chrome/browser/ui/views/passwords/save_password_refusal_combobox_model
.h" |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 // Shows the bubble. | 131 // Shows the bubble. |
132 static void ShowBubble(content::WebContents* web_contents, | 132 static void ShowBubble(content::WebContents* web_contents, |
133 DisplayReason reason); | 133 DisplayReason reason); |
134 | 134 |
135 // Closes any existing bubble. | 135 // Closes any existing bubble. |
136 static void CloseBubble(); | 136 static void CloseBubble(); |
137 | 137 |
138 // Whether the bubble is currently showing. | 138 // Whether the bubble is currently showing. |
139 static bool IsShowing(); | 139 static bool IsShowing(); |
140 | 140 |
| 141 // Returns a pointer to the bubble. |
| 142 static const ManagePasswordsBubbleView* Bubble(); |
| 143 |
141 private: | 144 private: |
142 ManagePasswordsBubbleView(content::WebContents* web_contents, | 145 ManagePasswordsBubbleView(content::WebContents* web_contents, |
143 ManagePasswordsIconView* anchor_view, | 146 ManagePasswordsIconView* anchor_view, |
144 DisplayReason reason); | 147 DisplayReason reason); |
145 virtual ~ManagePasswordsBubbleView(); | 148 virtual ~ManagePasswordsBubbleView(); |
146 | 149 |
147 // If the bubble is not anchored to a view, places the bubble in the top | 150 // If the bubble is not anchored to a view, places the bubble in the top |
148 // right (left in RTL) of the |screen_bounds| that contain |web_contents_|'s | 151 // right (left in RTL) of the |screen_bounds| that contain |web_contents_|'s |
149 // browser window. Because the positioning is based on the size of the | 152 // browser window. Because the positioning is based on the size of the |
150 // bubble, this must be called after the bubble is created. | 153 // bubble, this must be called after the bubble is created. |
(...skipping 30 matching lines...) Expand all Loading... |
181 ManagePasswordsIconView* anchor_view_; | 184 ManagePasswordsIconView* anchor_view_; |
182 | 185 |
183 // If true upon destruction, the user has confirmed that she never wants to | 186 // If true upon destruction, the user has confirmed that she never wants to |
184 // save passwords for a particular site. | 187 // save passwords for a particular site. |
185 bool never_save_passwords_; | 188 bool never_save_passwords_; |
186 | 189 |
187 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleView); | 190 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleView); |
188 }; | 191 }; |
189 | 192 |
190 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_ | 193 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_ |
OLD | NEW |