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

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

Issue 2923533002: [Merge M60][Payments] Do not select an address if the merchant doesn't support it (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/payments/payment_request_item_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/payments/payment_request_item_list.h
diff --git a/chrome/browser/ui/views/payments/payment_request_item_list.h b/chrome/browser/ui/views/payments/payment_request_item_list.h
index c5718ca6702d7ee35eda542a957dc9909ceef73f..8d8251235a12268f8b0018dfe0aab656d437b59e 100644
--- a/chrome/browser/ui/views/payments/payment_request_item_list.h
+++ b/chrome/browser/ui/views/payments/payment_request_item_list.h
@@ -40,16 +40,14 @@ class PaymentRequestItemList {
bool show_edit_button);
~Item() override;
- // Gets the view associated with this item. It's owned by this object so
- // that it can listen to any changes to the underlying model and update the
- // view.
- views::View* GetItemView();
-
bool selected() const { return selected_; }
// Changes the selected state of this item to |selected|.
// SelectedStateChanged is called if |notify| is true.
void SetSelected(bool selected, bool notify);
+ // Creates and returns the view associated with this list item.
+ std::unique_ptr<views::View> CreateItemView();
+
// Returns a pointer to the PaymentRequestItemList that owns this object.
PaymentRequestItemList* list() { return list_; }
@@ -95,13 +93,9 @@ class PaymentRequestItemList {
virtual void EditButtonPressed() = 0;
private:
- // Creates and returns the view associated with this list item.
- std::unique_ptr<views::View> CreateItemView();
-
// views::ButtonListener:
void ButtonPressed(views::Button* sender, const ui::Event& event) override;
- std::unique_ptr<views::View> item_view_;
PaymentRequestSpec* spec_;
PaymentRequestState* state_;
PaymentRequestItemList* list_;
« no previous file with comments | « no previous file | chrome/browser/ui/views/payments/payment_request_item_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698