Index: chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h |
diff --git a/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h b/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h |
index 563bcab8f607a2118806e2382099d4c388432adb..bf4357b0836469fd3e37654595e4d6a8572e3d2d 100644 |
--- a/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h |
+++ b/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h |
@@ -14,6 +14,7 @@ |
#include "ui/views/controls/combobox/combobox_listener.h" |
#include "ui/views/controls/link.h" |
#include "ui/views/controls/link_listener.h" |
+#include "ui/views/controls/styled_label_listener.h" |
class ManagePasswordsIconView; |
@@ -128,6 +129,29 @@ class ManagePasswordsBubbleView : public ManagePasswordsBubble, |
views::LabelButton* done_button_; |
}; |
+ // A view confirming to the user that a password was saved and offering a link |
+ // to the Google account manager. |
+ class SaveConfirmationView : public views::View, |
+ public views::ButtonListener, |
+ public views::StyledLabelListener { |
+ public: |
+ explicit SaveConfirmationView(ManagePasswordsBubbleView* parent); |
+ virtual ~SaveConfirmationView(); |
+ |
+ private: |
+ // views::ButtonListener: |
+ virtual void ButtonPressed(views::Button* sender, |
+ const ui::Event& event) OVERRIDE; |
+ |
+ // views::StyledLabelListener implementation |
+ virtual void StyledLabelLinkClicked(const gfx::Range& range, |
+ int event_flags) OVERRIDE; |
+ |
+ ManagePasswordsBubbleView* parent_; |
+ |
+ views::LabelButton* ok_button_; |
+ }; |
+ |
// Shows the bubble. |
static void ShowBubble(content::WebContents* web_contents, |
DisplayReason reason); |