forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This CL contains all UI changes related to change password support on Mac. On Windows/Linux UI was implemented in https://codereview.chromium.org/1151373006/ and https://codereview.chromium.org/1271283002/. This CL contains implementation of 2 bubbles: 1.For confirmation from the user that he/she changed password in case when the user has only one credentials for current site. It's the same as password save bubble with "Save"->"Update" 2.For selecting by user which credentials should be updated after change password form submission in case when the user has more than one credentials and we have no clue which credentials is correct. It contains a dropbox with a list of all credentials for current site. Also in case when there are no stored credentials and no username form found username-password row is not shown in the bubble. Screenshots of UI: https://docs.google.com/document/d/1k1SN_e5XQtSTEQnssPlpZRKz66aXC3h6WS35AXtz9BA/edit# Update bubble is currently behind a flag until UI review. BUG=359315 Review URL: https://codereview.chromium.org/1515553006 Cr-Commit-Position: refs/heads/master@{#365796}
- Loading branch information
dvadym
authored and
Commit bot
committed
Dec 17, 2015
1 parent
46e701f
commit 5cc29b8
Showing
19 changed files
with
514 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
chrome/browser/ui/cocoa/passwords/credentials_selection_view.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright 2015 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
#ifndef CHROME_BROWSER_UI_COCOA_PASSWORDS_CREDENTIALS_SELECTION_VIEW_H_ | ||
#define CHROME_BROWSER_UI_COCOA_PASSWORDS_CREDENTIALS_SELECTION_VIEW_H_ | ||
|
||
#import <Cocoa/Cocoa.h> | ||
|
||
#import "base/mac/scoped_nsobject.h" | ||
|
||
class ManagePasswordsBubbleModel; | ||
namespace autofill { | ||
struct PasswordForm; | ||
} // namespace autofill | ||
|
||
// Shows a combobox for choosing username and obscured password in a single row. | ||
@interface CredentialsSelectionView : NSView { | ||
@private | ||
ManagePasswordsBubbleModel* model_; // weak | ||
base::scoped_nsobject<NSPopUpButton> usernamePopUpButton_; | ||
base::scoped_nsobject<NSSecureTextField> passwordField_; | ||
} | ||
- (id)initWithModel:(ManagePasswordsBubbleModel*)model; | ||
- (const autofill::PasswordForm*)getSelectedCredentials; | ||
@end | ||
|
||
#endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_CREDENTIALS_SELECTION_VIEW_H_ |
Oops, something went wrong.