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

Issue 2656853002: [Web Payments] Refactor the row display code. (Closed)

Created:
3 years, 10 months ago by anthonyvd
Modified:
3 years, 10 months ago
CC:
chromium-reviews, tfarina, tmartino
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Web Payments] Refactor the row display code. This CL extracts the common bits of row views into a separate class. This will allow the hover effect as well as the border styling to be used in multiple screens easily. The rows also now properly display their hover effects. BUG=685209 Review-Url: https://codereview.chromium.org/2656853002 Cr-Commit-Position: refs/heads/master@{#446821} Committed: https://chromium.googlesource.com/chromium/src/+/8580766009627c5aeb0625172c3f3c576d7c3636

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address feedback. #

Total comments: 10

Patch Set 3 : Rebase #

Patch Set 4 : Address feedback #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+219 lines, -93 lines) Patch
M chrome/browser/ui/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/order_summary_view_controller.cc View 1 2 3 4 1 chunk +7 lines, -2 lines 0 comments Download
A chrome/browser/ui/views/payments/payment_request_row_view.h View 1 1 chunk +29 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/payments/payment_request_row_view.cc View 1 1 chunk +32 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_views_util.h View 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_views_util.cc View 1 2 3 6 chunks +43 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_sheet_view_controller.cc View 1 2 3 4 9 chunks +88 lines, -87 lines 0 comments Download
M ui/views/view.h View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M ui/views/view.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 31 (16 generated)
anthonyvd
Hi guys, can you PTAL at this CL? It refactors the rows display code of ...
3 years, 10 months ago (2017-01-25 16:13:53 UTC) #3
please use gerrit instead
lgtm % comments https://codereview.chromium.org/2656853002/diff/20001/chrome/browser/ui/views/payments/payment_request_row_view.cc File chrome/browser/ui/views/payments/payment_request_row_view.cc (right): https://codereview.chromium.org/2656853002/diff/20001/chrome/browser/ui/views/payments/payment_request_row_view.cc#newcode23 chrome/browser/ui/views/payments/payment_request_row_view.cc:23: state() == views::Button::STATE_PRESSED) { nit: I'd ...
3 years, 10 months ago (2017-01-25 16:22:55 UTC) #4
Mathieu
lgtm
3 years, 10 months ago (2017-01-25 16:45:39 UTC) #5
anthonyvd
Thanks Math and Rouslan for the review! sky@ can you PTAL as c/b/ui/views/* owner? In ...
3 years, 10 months ago (2017-01-25 17:56:33 UTC) #7
sky
https://codereview.chromium.org/2656853002/diff/40001/chrome/browser/ui/views/payments/payment_request_row_view.cc File chrome/browser/ui/views/payments/payment_request_row_view.cc (right): https://codereview.chromium.org/2656853002/diff/40001/chrome/browser/ui/views/payments/payment_request_row_view.cc#newcode29 chrome/browser/ui/views/payments/payment_request_row_view.cc:29: } Don't you need a SchedulePaint here? View should ...
3 years, 10 months ago (2017-01-25 21:45:20 UTC) #8
anthonyvd
https://codereview.chromium.org/2656853002/diff/40001/chrome/browser/ui/views/payments/payment_request_row_view.cc File chrome/browser/ui/views/payments/payment_request_row_view.cc (right): https://codereview.chromium.org/2656853002/diff/40001/chrome/browser/ui/views/payments/payment_request_row_view.cc#newcode29 chrome/browser/ui/views/payments/payment_request_row_view.cc:29: } On 2017/01/25 at 21:45:20, sky wrote: > Don't ...
3 years, 10 months ago (2017-01-26 18:56:06 UTC) #9
sky
https://codereview.chromium.org/2656853002/diff/40001/chrome/browser/ui/views/payments/payment_request_views_util.cc File chrome/browser/ui/views/payments/payment_request_views_util.cc (right): https://codereview.chromium.org/2656853002/diff/40001/chrome/browser/ui/views/payments/payment_request_views_util.cc#newcode64 chrome/browser/ui/views/payments/payment_request_views_util.cc:64: int line_height = size.height() - 1; On 2017/01/26 18:56:06, ...
3 years, 10 months ago (2017-01-26 19:11:58 UTC) #10
anthonyvd
https://codereview.chromium.org/2656853002/diff/40001/chrome/browser/ui/views/payments/payment_request_views_util.cc File chrome/browser/ui/views/payments/payment_request_views_util.cc (right): https://codereview.chromium.org/2656853002/diff/40001/chrome/browser/ui/views/payments/payment_request_views_util.cc#newcode64 chrome/browser/ui/views/payments/payment_request_views_util.cc:64: int line_height = size.height() - 1; On 2017/01/26 at ...
3 years, 10 months ago (2017-01-26 21:00:23 UTC) #11
sky
Yes, LGTM
3 years, 10 months ago (2017-01-26 23:01:03 UTC) #12
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/2656853002/80001
3 years, 10 months ago (2017-01-27 13:02:42 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/221872)
3 years, 10 months ago (2017-01-27 14:54:13 UTC) #17
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/2656853002/80001
3 years, 10 months ago (2017-01-27 16:14:03 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_tsan_rel_ng/builds/5176)
3 years, 10 months ago (2017-01-27 17:06:50 UTC) #21
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/2656853002/100001
3 years, 10 months ago (2017-01-27 23:10:37 UTC) #28
commit-bot: I haz the power
3 years, 10 months ago (2017-01-27 23:17:33 UTC) #31
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/8580766009627c5aeb0625172c3f...

Powered by Google App Engine
This is Rietveld 408576698