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

Unified Diff: chrome/browser/ui/views/content_setting_bubble_contents.h

Issue 22975006: Save password functionality added to the save password bubble (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor changes Created 7 years, 4 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/content_setting_bubble_contents.h
diff --git a/chrome/browser/ui/views/content_setting_bubble_contents.h b/chrome/browser/ui/views/content_setting_bubble_contents.h
index 24c4efb90238766db95fd1a0b92c5fefc51e4ad5..61a11d2ed1d7b3d860f764bc998a9ab9fe8ac598 100644
--- a/chrome/browser/ui/views/content_setting_bubble_contents.h
+++ b/chrome/browser/ui/views/content_setting_bubble_contents.h
@@ -92,6 +92,15 @@ class ContentSettingBubbleContents : public content::NotificationObserver,
const content::NotificationSource& source,
const content::NotificationDetails& details) OVERRIDE;
+ // Called when the 'save password' button is pressed. If this function
+ // returns true, the bubble is then immediately closed. Subclasses MUST NOT
+ // return true if in handling this call triggers the infobar to begin
+ // closing.
+ virtual bool Accept();
sky 2013/08/26 20:48:27 Does this and Cancel need to be virtual?
npentrel 2013/08/27 16:35:11 Actually it doesn't need to be there at all. Thank
+
+ // Called when the 'never save password for this site' button is pressed.
+ virtual bool Cancel();
+
// Helper to get the preferred width of the media menu.
int GetPreferredMediaMenuWidth(views::MenuButton* button,
ui::SimpleMenuModel* menu_model);
@@ -113,6 +122,8 @@ class ContentSettingBubbleContents : public content::NotificationObserver,
views::Link* custom_link_;
views::Link* manage_link_;
views::LabelButton* close_button_;
+ views::LabelButton* never_button_;
+ views::LabelButton* save_button_;
scoped_ptr<views::MenuRunner> menu_runner_;
MediaMenuPartsMap media_menus_;

Powered by Google App Engine
This is Rietveld 408576698