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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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. | 141 // Returns a pointer to the bubble. |
142 static const ManagePasswordsBubbleView* Bubble(); | 142 static const ManagePasswordsBubbleView* Bubble() { |
Peter Kasting
2014/07/24 18:18:08
This doesn't appear to have actually been moved in
vasilii
2014/07/25 08:24:34
Done.
| |
143 return manage_passwords_bubble_; | |
144 } | |
143 | 145 |
144 private: | 146 private: |
145 ManagePasswordsBubbleView(content::WebContents* web_contents, | 147 ManagePasswordsBubbleView(content::WebContents* web_contents, |
146 ManagePasswordsIconView* anchor_view, | 148 ManagePasswordsIconView* anchor_view, |
147 DisplayReason reason); | 149 DisplayReason reason); |
148 virtual ~ManagePasswordsBubbleView(); | 150 virtual ~ManagePasswordsBubbleView(); |
149 | 151 |
150 // If the bubble is not anchored to a view, places the bubble in the top | 152 // If the bubble is not anchored to a view, places the bubble in the top |
151 // right (left in RTL) of the |screen_bounds| that contain |web_contents_|'s | 153 // right (left in RTL) of the |screen_bounds| that contain |web_contents_|'s |
152 // browser window. Because the positioning is based on the size of the | 154 // browser window. Because the positioning is based on the size of the |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
184 ManagePasswordsIconView* anchor_view_; | 186 ManagePasswordsIconView* anchor_view_; |
185 | 187 |
186 // If true upon destruction, the user has confirmed that she never wants to | 188 // If true upon destruction, the user has confirmed that she never wants to |
187 // save passwords for a particular site. | 189 // save passwords for a particular site. |
188 bool never_save_passwords_; | 190 bool never_save_passwords_; |
189 | 191 |
190 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleView); | 192 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleView); |
191 }; | 193 }; |
192 | 194 |
193 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_ | 195 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_ |
OLD | NEW |