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

Issue 2960843002: Edit button makes username editable in the password manager bubble. (Closed)

Created:
3 years, 5 months ago by irmakk
Modified:
3 years, 5 months ago
Reviewers:
vasilii, melandory
CC:
chromium-reviews, tfarina, gcasto+watchlist_chromium.org, srahim+watch_chromium.org, vabr+watchlistpasswordmanager_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Edit button makes username editable in the password manager bubble. When user clicks on the edit button in the password manager bubble; - Username becomes editable - Focus is on editable field - Edit button becomes disabled While username is editable, if user hits tab/enter/esc keys; - Username field becomes a label again - Focus is on save button - Edit button is enabled again Known issue: Since this cl doesn't contain any communication with the username in the background and currently only has the ui part of the project, edited username will be restored to its original state after editing is done. This problem will be solved with the next cl sending the information to back-end and communication with the manager itself. BUG=734965 Review-Url: https://codereview.chromium.org/2960843002 Cr-Commit-Position: refs/heads/master@{#484635} Committed: https://chromium.googlesource.com/chromium/src/+/2fd1706822e4bd350826788f822d9a738ffca034

Patch Set 1 : Implemented clickable edit button #

Patch Set 2 : Implemented delegate logic #

Patch Set 3 : Removed unnecessary function. #

Patch Set 4 : Label/Editable conversion upon focus changes are implemented. #

Patch Set 5 : Minor improvements. #

Patch Set 6 : Merge with ToT #

Total comments: 30

Patch Set 7 : Moved all manage password items view functionality inside pending view. #

Patch Set 8 : Reverted RowStatus enum and made label generators stand-alone. #

Patch Set 9 : Minor fixes. #

Total comments: 32

Patch Set 10 : Moved standalone functions out of anonymous namespace & did some more fixing. #

Total comments: 10

Patch Set 11 : Updated comments. #

Patch Set 12 : Added new helper function. #

Total comments: 6

Patch Set 13 : Renamed helper function and did forward declaration for view generator functions. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -49 lines) Patch
M chrome/browser/ui/views/passwords/manage_password_items_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +13 lines, -1 line 0 comments Download
M chrome/browser/ui/views/passwords/manage_password_items_view.cc View 1 2 3 4 5 6 7 8 9 4 chunks +32 lines, -23 lines 0 comments Download
M chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +115 lines, -25 lines 0 comments Download

Messages

Total messages: 36 (21 generated)
irmakk
Implemented ui side of the editable username view.
3 years, 5 months ago (2017-06-29 16:19:52 UTC) #4
vasilii
I suspect you didn't merge with the top of the tree.
3 years, 5 months ago (2017-06-30 08:51:12 UTC) #8
irmakk
On 2017/06/30 08:51:12, vasilii wrote: > I suspect you didn't merge with the top of ...
3 years, 5 months ago (2017-06-30 10:20:56 UTC) #11
vasilii
I feel like we introduce too much complexity. The current state with PendingView wrapping ManagePasswordItemsView ...
3 years, 5 months ago (2017-06-30 15:28:07 UTC) #14
irmakk
I have finished refactoring. Some of the comments became irrelevant, therefore I did not reply ...
3 years, 5 months ago (2017-07-03 14:56:54 UTC) #17
vasilii
How about the new screenshots? https://codereview.chromium.org/2960843002/diff/100001/chrome/browser/ui/views/passwords/manage_password_items_view.cc File chrome/browser/ui/views/passwords/manage_password_items_view.cc (right): https://codereview.chromium.org/2960843002/diff/100001/chrome/browser/ui/views/passwords/manage_password_items_view.cc#newcode87 chrome/browser/ui/views/passwords/manage_password_items_view.cc:87: editable->SetHorizontalAlignment(gfx::ALIGN_LEFT); On 2017/07/03 14:56:53, ...
3 years, 5 months ago (2017-07-03 17:15:32 UTC) #22
irmakk
About the screenshots, we only moved the functionality from one class to another, so I ...
3 years, 5 months ago (2017-07-06 10:42:46 UTC) #23
vasilii
Comments on manage_password_items_view.h aren't addressed. I realized that UpdatePendingView still uses ManagePasswordItemsView. It would be ...
3 years, 5 months ago (2017-07-06 11:46:38 UTC) #26
vasilii
https://codereview.chromium.org/2960843002/diff/160001/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc File chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc (right): https://codereview.chromium.org/2960843002/diff/160001/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc#newcode438 chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc:438: this->GetFocusManager()->RemoveFocusChangeListener(this); On 2017/07/06 10:42:46, irmakk wrote: > On 2017/07/03 ...
3 years, 5 months ago (2017-07-06 11:59:32 UTC) #27
irmakk
PTAL https://codereview.chromium.org/2960843002/diff/160001/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc File chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc (right): https://codereview.chromium.org/2960843002/diff/160001/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc#newcode438 chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc:438: this->GetFocusManager()->RemoveFocusChangeListener(this); On 2017/07/06 11:59:32, vasilii wrote: > On ...
3 years, 5 months ago (2017-07-06 12:53:14 UTC) #28
vasilii
https://codereview.chromium.org/2960843002/diff/160001/chrome/browser/ui/views/passwords/manage_password_items_view.h File chrome/browser/ui/views/passwords/manage_password_items_view.h (right): https://codereview.chromium.org/2960843002/diff/160001/chrome/browser/ui/views/passwords/manage_password_items_view.h#newcode14 chrome/browser/ui/views/passwords/manage_password_items_view.h:14: #include "ui/views/controls/textfield/textfield.h" On 2017/07/03 17:15:31, vasilii wrote: > Label ...
3 years, 5 months ago (2017-07-06 13:46:43 UTC) #29
irmakk
We had a discussion about adding edit button to the update pending state as well ...
3 years, 5 months ago (2017-07-06 14:19:12 UTC) #30
vasilii
lgtm https://codereview.chromium.org/2960843002/diff/160001/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc File chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc (right): https://codereview.chromium.org/2960843002/diff/160001/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc#newcode438 chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc:438: this->GetFocusManager()->RemoveFocusChangeListener(this); On 2017/07/06 14:19:12, irmakk wrote: > On ...
3 years, 5 months ago (2017-07-06 15:33:21 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2960843002/240001
3 years, 5 months ago (2017-07-06 15:35:22 UTC) #33
commit-bot: I haz the power
3 years, 5 months ago (2017-07-06 16:45:20 UTC) #36
Message was sent while issue was closed.
Committed patchset #13 (id:240001) as
https://chromium.googlesource.com/chromium/src/+/2fd1706822e4bd350826788f822d...

Powered by Google App Engine
This is Rietveld 408576698