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

Side by Side Diff: chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h

Issue 259153004: Password bubble: Give users the option of unblacklisting a site. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "ui/views/bubble/bubble_delegate.h" 10 #include "ui/views/bubble/bubble_delegate.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 // views::LinkListener: 80 // views::LinkListener:
81 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; 81 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE;
82 82
83 ManagePasswordsBubbleView* parent_; 83 ManagePasswordsBubbleView* parent_;
84 84
85 views::Link* manage_link_; 85 views::Link* manage_link_;
86 views::LabelButton* done_button_; 86 views::LabelButton* done_button_;
87 }; 87 };
88 88
89 // A view offering the user the ability to re-enable the password manager for
90 // a specific site after she's decided to "never save passwords".
91 class BlacklistedView : public views::View, public views::ButtonListener {
92 public:
93 explicit BlacklistedView(ManagePasswordsBubbleView* parent);
94 virtual ~BlacklistedView();
95
96 private:
97 // views::ButtonListener:
98 virtual void ButtonPressed(views::Button* sender,
99 const ui::Event& event) OVERRIDE;
100
101 ManagePasswordsBubbleView* parent_;
102
103 views::BlueButton* unblacklist_button_;
104 views::LabelButton* done_button_;
105 };
106
89 // Shows the bubble. 107 // Shows the bubble.
90 static void ShowBubble(content::WebContents* web_contents, 108 static void ShowBubble(content::WebContents* web_contents,
91 DisplayReason reason); 109 DisplayReason reason);
92 110
93 // Closes any existing bubble. 111 // Closes any existing bubble.
94 static void CloseBubble(); 112 static void CloseBubble();
95 113
96 // Whether the bubble is currently showing. 114 // Whether the bubble is currently showing.
97 static bool IsShowing(); 115 static bool IsShowing();
98 116
(...skipping 27 matching lines...) Expand all
126 144
127 // Singleton instance of the Password bubble. The Password bubble can only be 145 // Singleton instance of the Password bubble. The Password bubble can only be
128 // shown on the active browser window, so there is no case in which it will be 146 // shown on the active browser window, so there is no case in which it will be
129 // shown twice at the same time. 147 // shown twice at the same time.
130 static ManagePasswordsBubbleView* manage_passwords_bubble_; 148 static ManagePasswordsBubbleView* manage_passwords_bubble_;
131 149
132 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleView); 150 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleView);
133 }; 151 };
134 152
135 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_ 153 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698