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

Unified Diff: chrome/browser/ui/views/payments/profile_list_view_controller.h

Issue 2855203002: [Payments] Display the shipping option error alongside the address (Closed)
Patch Set: android test fix Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/payments/profile_list_view_controller.h
diff --git a/chrome/browser/ui/views/payments/profile_list_view_controller.h b/chrome/browser/ui/views/payments/profile_list_view_controller.h
index 1f1705a84e2641f579a1930820eefe3149b84413..4f7ce65b1e053467c15e5f34ae952000f471cef7 100644
--- a/chrome/browser/ui/views/payments/profile_list_view_controller.h
+++ b/chrome/browser/ui/views/payments/profile_list_view_controller.h
@@ -67,6 +67,9 @@ class ProfileListViewController : public PaymentRequestSheetController {
virtual bool IsValidProfile(const autofill::AutofillProfile& profile) = 0;
+ // Whether |profile| should be displayed in an enabled state and selectable.
+ bool IsEnabled(autofill::AutofillProfile* profile);
+
protected:
// Does not take ownership of the arguments, which should outlive this object.
ProfileListViewController(PaymentRequestSpec* spec,
@@ -79,6 +82,10 @@ class ProfileListViewController : public PaymentRequestSheetController {
virtual DialogViewID GetDialogViewId() = 0;
+ // Subclasses may choose to provide a header view to go on top of the item
+ // list view.
+ virtual std::unique_ptr<views::View> CreateHeaderView();
+
void PopulateList();
// PaymentRequestSheetController:

Powered by Google App Engine
This is Rietveld 408576698