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

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: added tests Created 3 years, 8 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..14ea93029e9b20723e50bad192181aea7c99a6c4 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,10 @@ class ProfileListViewController : public PaymentRequestSheetController {
virtual bool IsValidProfile(const autofill::AutofillProfile& profile) = 0;
+ // Whether |profile| should be displayed in a disabled state and not
+ // selectable.
+ bool IsDisabled(autofill::AutofillProfile* profile);
+
protected:
// Does not take ownership of the arguments, which should outlive this object.
ProfileListViewController(PaymentRequestSpec* spec,
@@ -79,6 +83,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