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

Issue 2689363004: [Payments] Add combobox support to editors. (Closed)

Created:
3 years, 10 months ago by Mathieu
Modified:
3 years, 10 months ago
CC:
chromium-reviews, tfarina, srahim+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Payments] Add combobox support to editors. * Refactored the ValidationDelegate to support Textfield and Combobox. * Added the COMBOBOX type for editors to specify when returning field definitions. * Added a constructor to Combobox which takes ownership of its model. * Added new ValidatingCombobox type which validates on first blur and subsequent changes. * Re-enable flaky interactive_ui_tests PaymentRequest*CreditCard*Valid BUG=687601, 691185 TEST=CreditCardEditorViewController unit_tests, PaymentRequest* interactive_ui_tests Review-Url: https://codereview.chromium.org/2689363004 Cr-Commit-Position: refs/heads/master@{#451005} Committed: https://chromium.googlesource.com/chromium/src/+/0e33868f81c5c8a299e14c96b1ce6b49ce325ee5

Patch Set 1 : Initial #

Total comments: 5

Patch Set 2 : added Combobox constructor, tests #

Total comments: 1

Patch Set 3 : fix test #

Total comments: 18

Patch Set 4 : addressed comments #

Total comments: 8

Patch Set 5 : re-enable test, addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+622 lines, -105 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/credit_card_editor_view_controller.h View 1 2 chunks +14 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc View 1 2 3 4 5 chunks +107 lines, -16 lines 0 comments Download
A chrome/browser/ui/views/payments/credit_card_editor_view_controller_unittest.cc View 1 2 3 4 1 chunk +106 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/editor_view_controller.h View 1 5 chunks +35 lines, -13 lines 0 comments Download
M chrome/browser/ui/views/payments/editor_view_controller.cc View 1 3 chunks +32 lines, -13 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_credit_card_editor_interactive_uitest.cc View 1 2 3 4 3 chunks +88 lines, -20 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_interactive_uitest_base.h View 1 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_interactive_uitest_base.cc View 1 3 chunks +20 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_sheet_controller.cc View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
A chrome/browser/ui/views/payments/preselected_combobox_model.h View 1 2 3 4 1 chunk +35 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/payments/preselected_combobox_model.cc View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/payments/validating_combobox.h View 1 2 3 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/payments/validating_combobox.cc View 1 2 3 1 chunk +45 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/validating_textfield.h View 1 2 3 2 chunks +6 lines, -17 lines 0 comments Download
M chrome/browser/ui/views/payments/validating_textfield.cc View 1 2 3 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/payments/validating_textfield_unittest.cc View 3 chunks +9 lines, -6 lines 0 comments Download
A chrome/browser/ui/views/payments/validation_delegate.h View 1 2 3 4 1 chunk +27 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/controls/combobox/combobox.h View 1 4 chunks +10 lines, -3 lines 0 comments Download
M ui/views/controls/combobox/combobox.cc View 1 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 42 (30 generated)
Mathieu
Hi Scott, not a review yet, but see the following two comments because I need ...
3 years, 10 months ago (2017-02-14 21:23:54 UTC) #4
sky
https://codereview.chromium.org/2689363004/diff/20001/chrome/browser/ui/views/payments/credit_card_editor_view_controller.h File chrome/browser/ui/views/payments/credit_card_editor_view_controller.h (right): https://codereview.chromium.org/2689363004/diff/20001/chrome/browser/ui/views/payments/credit_card_editor_view_controller.h#newcode53 chrome/browser/ui/views/payments/credit_card_editor_view_controller.h:53: std::unique_ptr<ui::SimpleComboboxModel> exp_month_model_; On 2017/02/14 21:23:54, Mathieu Perreault wrote: > ...
3 years, 10 months ago (2017-02-14 23:19:24 UTC) #5
Mathieu
+rouslan This is ready for review. Rouslan, PTAL at the whole thing. Scott, per discussion ...
3 years, 10 months ago (2017-02-15 03:15:57 UTC) #9
please use gerrit instead
https://codereview.chromium.org/2689363004/diff/80001/chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc File chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc (right): https://codereview.chromium.org/2689363004/diff/80001/chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc#newcode36 chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc:36: // Returns the items that are in the expiration ...
3 years, 10 months ago (2017-02-15 15:59:40 UTC) #14
sky
I only looked at the combobox change, LGTM (modulo rouslan's comment)
3 years, 10 months ago (2017-02-15 16:50:52 UTC) #15
Mathieu
See my response about the combobox constructor (still addressing others) https://codereview.chromium.org/2689363004/diff/80001/ui/views/controls/combobox/combobox.cc File ui/views/controls/combobox/combobox.cc (right): https://codereview.chromium.org/2689363004/diff/80001/ui/views/controls/combobox/combobox.cc#newcode397 ...
3 years, 10 months ago (2017-02-15 17:04:16 UTC) #16
sky
Makes sense. On Wed, Feb 15, 2017 at 9:04 AM, <mathp@chromium.org> wrote: > See my ...
3 years, 10 months ago (2017-02-15 17:11:49 UTC) #17
Mathieu
PTAL https://codereview.chromium.org/2689363004/diff/80001/chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc File chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc (right): https://codereview.chromium.org/2689363004/diff/80001/chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc#newcode36 chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc:36: // Returns the items that are in the ...
3 years, 10 months ago (2017-02-15 19:55:51 UTC) #22
please use gerrit instead
lgtm % comments https://codereview.chromium.org/2689363004/diff/60002/chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc File chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc (right): https://codereview.chromium.org/2689363004/diff/60002/chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc#newcode38 chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc:38: // that the first month in ...
3 years, 10 months ago (2017-02-16 14:52:19 UTC) #31
Mathieu
Thanks. Also re-enabled a flaky test in this patchset https://codereview.chromium.org/2689363004/diff/60002/chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc File chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc (right): https://codereview.chromium.org/2689363004/diff/60002/chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc#newcode38 chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc:38: ...
3 years, 10 months ago (2017-02-16 16:00:09 UTC) #34
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/2689363004/140001
3 years, 10 months ago (2017-02-16 16:09:55 UTC) #39
commit-bot: I haz the power
3 years, 10 months ago (2017-02-16 17:40:13 UTC) #42
Message was sent while issue was closed.
Committed patchset #5 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/0e33868f81c5c8a299e14c96b1ce...

Powered by Google App Engine
This is Rietveld 408576698