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

Issue 2872623002: [Web Payments] Add "pencil" edit button to lists. (Closed)

Created:
3 years, 7 months ago by anthonyvd
Modified:
3 years, 7 months ago
Reviewers:
Mathieu, sky, mathp, Evan Stade
CC:
chromium-reviews, tfarina
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Web Payments] Add "pencil" edit button to lists. BUG=719478 Review-Url: https://codereview.chromium.org/2872623002 Cr-Commit-Position: refs/heads/master@{#471890} Committed: https://chromium.googlesource.com/chromium/src/+/1e0e8bda501273ef5b6669370bed2999efdf0f85

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address comments. #

Total comments: 2

Patch Set 3 : Add comment #

Total comments: 2

Patch Set 4 : Move icon #

Patch Set 5 : Add license #

Patch Set 6 : Rebase and fix unit tests #

Patch Set 7 : Address comments, icon changes #

Total comments: 9

Patch Set 8 : Move and rename icon. #

Total comments: 1

Patch Set 9 : Rebase #

Patch Set 10 : Don't own the edit button #

Total comments: 10

Patch Set 11 : Address comments. #

Total comments: 2

Patch Set 12 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -38 lines) Patch
M chrome/browser/ui/views/payments/payment_method_view_controller.cc View 1 2 3 4 5 6 7 8 2 chunks +27 lines, -19 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_method_view_controller_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_item_list.h View 1 2 3 4 5 6 7 8 9 3 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/ui/views/payments/payment_request_item_list.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +46 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_item_list_unittest.cc View 1 2 3 4 5 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/ui/views/payments/profile_list_view_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +12 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/payments/shipping_option_view_controller.cc View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -1 line 0 comments Download
M ui/vector_icons/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
A ui/vector_icons/edit.icon View 1 2 3 4 5 6 7 8 9 10 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 51 (25 generated)
anthonyvd
Hi Math, PTAL at this CL that adds edit buttons!
3 years, 7 months ago (2017-05-08 13:59:51 UTC) #2
Mathieu
Cool stuff, some comments! https://codereview.chromium.org/2872623002/diff/1/chrome/browser/ui/views/payments/payment_method_view_controller_browsertest.cc File chrome/browser/ui/views/payments/payment_method_view_controller_browsertest.cc (right): https://codereview.chromium.org/2872623002/diff/1/chrome/browser/ui/views/payments/payment_method_view_controller_browsertest.cc#newcode110 chrome/browser/ui/views/payments/payment_method_view_controller_browsertest.cc:110: AddCreditCard(card); nit: you can inline ...
3 years, 7 months ago (2017-05-08 14:08:02 UTC) #3
anthonyvd
Thanks, comments addressed. +Evan, can you please do an OWNERs review of ui/vector_icons/*? Thanks! https://codereview.chromium.org/2872623002/diff/1/chrome/browser/ui/views/payments/payment_method_view_controller_browsertest.cc ...
3 years, 7 months ago (2017-05-08 14:45:54 UTC) #7
mathp
lgtm thanks https://codereview.chromium.org/2872623002/diff/20001/chrome/browser/ui/views/payments/payment_request_item_list.cc File chrome/browser/ui/views/payments/payment_request_item_list.cc (right): https://codereview.chromium.org/2872623002/diff/20001/chrome/browser/ui/views/payments/payment_request_item_list.cc#newcode105 chrome/browser/ui/views/payments/payment_request_item_list.cc:105: constexpr int kExtraViewSpacing = 10; Nit: I ...
3 years, 7 months ago (2017-05-08 14:50:28 UTC) #9
anthonyvd
https://codereview.chromium.org/2872623002/diff/20001/chrome/browser/ui/views/payments/payment_request_item_list.cc File chrome/browser/ui/views/payments/payment_request_item_list.cc (right): https://codereview.chromium.org/2872623002/diff/20001/chrome/browser/ui/views/payments/payment_request_item_list.cc#newcode105 chrome/browser/ui/views/payments/payment_request_item_list.cc:105: constexpr int kExtraViewSpacing = 10; On 2017/05/08 at 14:50:28, ...
3 years, 7 months ago (2017-05-08 15:02:11 UTC) #14
Mathieu
lgtm from the right account
3 years, 7 months ago (2017-05-08 15:04:08 UTC) #17
Evan Stade
what is the source for this pencil? https://codereview.chromium.org/2872623002/diff/40001/ui/vector_icons/edit_pencil.icon File ui/vector_icons/edit_pencil.icon (right): https://codereview.chromium.org/2872623002/diff/40001/ui/vector_icons/edit_pencil.icon#newcode1 ui/vector_icons/edit_pencil.icon:1: CANVAS_DIMENSIONS, 20, ...
3 years, 7 months ago (2017-05-08 19:32:54 UTC) #18
anthonyvd
Comments addressed. PTAL! Our UXer bbergher@, created this icon. https://codereview.chromium.org/2872623002/diff/40001/ui/vector_icons/edit_pencil.icon File ui/vector_icons/edit_pencil.icon (right): https://codereview.chromium.org/2872623002/diff/40001/ui/vector_icons/edit_pencil.icon#newcode1 ui/vector_icons/edit_pencil.icon:1: ...
3 years, 7 months ago (2017-05-08 21:10:54 UTC) #22
Evan Stade
On 2017/05/08 21:10:54, anthonyvd wrote: > Comments addressed. PTAL! > > Our UXer bbergher@, created ...
3 years, 7 months ago (2017-05-08 22:36:24 UTC) #27
bbergher
On 2017/05/08 22:36:24, Evan Stade wrote: > On 2017/05/08 21:10:54, anthonyvd wrote: > > Comments ...
3 years, 7 months ago (2017-05-09 22:02:59 UTC) #30
anthonyvd
Updated the icon file and changed its name. estade@, can you PTAL? Thanks!
3 years, 7 months ago (2017-05-10 15:15:55 UTC) #31
Evan Stade
https://codereview.chromium.org/2872623002/diff/120001/chrome/app/vector_icons/ic_edit.icon File chrome/app/vector_icons/ic_edit.icon (right): https://codereview.chromium.org/2872623002/diff/120001/chrome/app/vector_icons/ic_edit.icon#newcode2 chrome/app/vector_icons/ic_edit.icon:2: // Use of this source code is governed by ...
3 years, 7 months ago (2017-05-10 16:06:25 UTC) #32
anthonyvd
Comments addressed. PTAL! Thanks :) https://codereview.chromium.org/2872623002/diff/120001/chrome/app/vector_icons/ic_edit.icon File chrome/app/vector_icons/ic_edit.icon (right): https://codereview.chromium.org/2872623002/diff/120001/chrome/app/vector_icons/ic_edit.icon#newcode2 chrome/app/vector_icons/ic_edit.icon:2: // Use of this ...
3 years, 7 months ago (2017-05-10 16:39:26 UTC) #33
Evan Stade
https://codereview.chromium.org/2872623002/diff/120001/chrome/browser/ui/views/payments/payment_request_item_list.cc File chrome/browser/ui/views/payments/payment_request_item_list.cc (right): https://codereview.chromium.org/2872623002/diff/120001/chrome/browser/ui/views/payments/payment_request_item_list.cc#newcode69 chrome/browser/ui/views/payments/payment_request_item_list.cc:69: checkmark->set_owned_by_client(); On 2017/05/10 16:39:26, anthonyvd wrote: > On 2017/05/10 ...
3 years, 7 months ago (2017-05-10 17:57:05 UTC) #35
sky
https://codereview.chromium.org/2872623002/diff/140001/chrome/browser/ui/views/payments/payment_request_item_list.h File chrome/browser/ui/views/payments/payment_request_item_list.h (right): https://codereview.chromium.org/2872623002/diff/140001/chrome/browser/ui/views/payments/payment_request_item_list.h#newcode110 chrome/browser/ui/views/payments/payment_request_item_list.h:110: std::unique_ptr<views::ImageButton> edit_button_; I think a better approach here is ...
3 years, 7 months ago (2017-05-12 01:28:49 UTC) #36
sky
On 2017/05/12 01:28:49, sky wrote: > https://codereview.chromium.org/2872623002/diff/140001/chrome/browser/ui/views/payments/payment_request_item_list.h > File chrome/browser/ui/views/payments/payment_request_item_list.h (right): > > https://codereview.chromium.org/2872623002/diff/140001/chrome/browser/ui/views/payments/payment_request_item_list.h#newcode110 > ...
3 years, 7 months ago (2017-05-12 01:36:14 UTC) #37
anthonyvd
On 2017/05/12 at 01:36:14, sky wrote: > On 2017/05/12 01:28:49, sky wrote: > > https://codereview.chromium.org/2872623002/diff/140001/chrome/browser/ui/views/payments/payment_request_item_list.h ...
3 years, 7 months ago (2017-05-12 02:03:12 UTC) #38
Evan Stade
On 2017/05/12 02:03:12, anthonyvd wrote: > On 2017/05/12 at 01:36:14, sky wrote: > > On ...
3 years, 7 months ago (2017-05-12 16:39:50 UTC) #39
sky
On 2017/05/12 16:39:50, Evan Stade wrote: > On 2017/05/12 02:03:12, anthonyvd wrote: > > On ...
3 years, 7 months ago (2017-05-12 17:25:05 UTC) #40
anthonyvd
The latest patch removes the edit button ownership. PTAL. On 2017/05/12 at 17:25:05, sky wrote: ...
3 years, 7 months ago (2017-05-12 17:39:54 UTC) #41
Evan Stade
https://codereview.chromium.org/2872623002/diff/180001/chrome/browser/ui/views/payments/payment_request_item_list.cc File chrome/browser/ui/views/payments/payment_request_item_list.cc (right): https://codereview.chromium.org/2872623002/diff/180001/chrome/browser/ui/views/payments/payment_request_item_list.cc#newcode148 chrome/browser/ui/views/payments/payment_request_item_list.cc:148: if (sender->id() == static_cast<int>(DialogViewID::EDIT_ITEM_BUTTON)) { nit: are both of ...
3 years, 7 months ago (2017-05-12 18:48:07 UTC) #42
anthonyvd
Comments addressed, icon file updated. PTAL. https://codereview.chromium.org/2872623002/diff/180001/chrome/browser/ui/views/payments/payment_request_item_list.cc File chrome/browser/ui/views/payments/payment_request_item_list.cc (right): https://codereview.chromium.org/2872623002/diff/180001/chrome/browser/ui/views/payments/payment_request_item_list.cc#newcode148 chrome/browser/ui/views/payments/payment_request_item_list.cc:148: if (sender->id() == ...
3 years, 7 months ago (2017-05-12 20:16:48 UTC) #43
Evan Stade
vector icon lgtm https://codereview.chromium.org/2872623002/diff/180001/chrome/browser/ui/views/payments/payment_request_item_list.cc File chrome/browser/ui/views/payments/payment_request_item_list.cc (right): https://codereview.chromium.org/2872623002/diff/180001/chrome/browser/ui/views/payments/payment_request_item_list.cc#newcode148 chrome/browser/ui/views/payments/payment_request_item_list.cc:148: if (sender->id() == static_cast<int>(DialogViewID::EDIT_ITEM_BUTTON)) { On ...
3 years, 7 months ago (2017-05-15 17:14:55 UTC) #44
anthonyvd
https://codereview.chromium.org/2872623002/diff/180001/chrome/browser/ui/views/payments/payment_request_item_list.cc File chrome/browser/ui/views/payments/payment_request_item_list.cc (right): https://codereview.chromium.org/2872623002/diff/180001/chrome/browser/ui/views/payments/payment_request_item_list.cc#newcode148 chrome/browser/ui/views/payments/payment_request_item_list.cc:148: if (sender->id() == static_cast<int>(DialogViewID::EDIT_ITEM_BUTTON)) { On 2017/05/15 at 17:14:55, ...
3 years, 7 months ago (2017-05-15 17:27:41 UTC) #45
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/2872623002/220001
3 years, 7 months ago (2017-05-15 17:28:33 UTC) #48
commit-bot: I haz the power
3 years, 7 months ago (2017-05-15 20:46:29 UTC) #51
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/1e0e8bda501273ef5b6669370bed...

Powered by Google App Engine
This is Rietveld 408576698