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

Unified Diff: chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h

Issue 399573002: [Password Generation] Trigger confirmation bubble when a password is saved (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win Again Created 6 years, 5 months 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 side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698