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

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: Rebase 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 "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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 // views::LinkListener: 87 // views::LinkListener:
88 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; 88 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE;
89 89
90 ManagePasswordsBubbleView* parent_; 90 ManagePasswordsBubbleView* parent_;
91 91
92 views::Link* manage_link_; 92 views::Link* manage_link_;
93 views::LabelButton* done_button_; 93 views::LabelButton* done_button_;
94 }; 94 };
95 95
96 // A view offering the user the ability to re-enable the password manager for
97 // a specific site after she's decided to "never save passwords".
98 class BlacklistedView : public views::View, public views::ButtonListener {
99 public:
100 explicit BlacklistedView(ManagePasswordsBubbleView* parent);
101 virtual ~BlacklistedView();
102
103 private:
104 // views::ButtonListener:
105 virtual void ButtonPressed(views::Button* sender,
106 const ui::Event& event) OVERRIDE;
107
108 ManagePasswordsBubbleView* parent_;
109
110 views::BlueButton* unblacklist_button_;
111 views::LabelButton* done_button_;
112 };
113
96 // Shows the bubble. 114 // Shows the bubble.
97 static void ShowBubble(content::WebContents* web_contents, 115 static void ShowBubble(content::WebContents* web_contents,
98 DisplayReason reason); 116 DisplayReason reason);
99 117
100 // Closes any existing bubble. 118 // Closes any existing bubble.
101 static void CloseBubble(); 119 static void CloseBubble();
102 120
103 // Whether the bubble is currently showing. 121 // Whether the bubble is currently showing.
104 static bool IsShowing(); 122 static bool IsShowing();
105 123
(...skipping 27 matching lines...) Expand all
133 151
134 // Singleton instance of the Password bubble. The Password bubble can only be 152 // Singleton instance of the Password bubble. The Password bubble can only be
135 // shown on the active browser window, so there is no case in which it will be 153 // shown on the active browser window, so there is no case in which it will be
136 // shown twice at the same time. 154 // shown twice at the same time.
137 static ManagePasswordsBubbleView* manage_passwords_bubble_; 155 static ManagePasswordsBubbleView* manage_passwords_bubble_;
138 156
139 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleView); 157 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleView);
140 }; 158 };
141 159
142 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_ 160 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698