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

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

Issue 2789093002: [Payments] Desktop: implement shipping address/option change (Closed)
Patch Set: compile fix Created 3 years, 9 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/payment_request_dialog_view.h
diff --git a/chrome/browser/ui/views/payments/payment_request_dialog_view.h b/chrome/browser/ui/views/payments/payment_request_dialog_view.h
index 8c1738e68cb69d0296b5dd317db34aae7e38c179..a8558e15aa7f8fcb5ba751524e9eb10dbe0d1d0a 100644
--- a/chrome/browser/ui/views/payments/payment_request_dialog_view.h
+++ b/chrome/browser/ui/views/payments/payment_request_dialog_view.h
@@ -11,6 +11,7 @@
#include "base/macros.h"
#include "chrome/browser/ui/views/payments/view_stack.h"
#include "components/payments/content/payment_request_dialog.h"
+#include "components/payments/content/payment_request_spec.h"
#include "ui/views/window/dialog_delegate.h"
namespace payments {
@@ -28,7 +29,8 @@ using ControllerMap =
// is responsible for displaying the view associated with the current state of
// the WebPayments flow and managing the transition between those states.
class PaymentRequestDialogView : public views::DialogDelegateView,
- public PaymentRequestDialog {
+ public PaymentRequestDialog,
+ public PaymentRequestSpec::Observer {
public:
class ObserverForTest {
public:
@@ -51,6 +53,8 @@ class PaymentRequestDialogView : public views::DialogDelegateView,
virtual void OnEditorViewUpdated() = 0;
virtual void OnErrorMessageShown() = 0;
+
+ virtual void OnSpecDoneUpdating() = 0;
};
// Build a Dialog around the PaymentRequest object. |observer| is used to
@@ -60,19 +64,23 @@ class PaymentRequestDialogView : public views::DialogDelegateView,
PaymentRequestDialogView::ObserverForTest* observer);
~PaymentRequestDialogView() override;
- // views::WidgetDelegate
+ // views::WidgetDelegate:
ui::ModalType GetModalType() const override;
- // views::DialogDelegate
+ // views::DialogDelegate:
bool Cancel() override;
bool ShouldShowCloseButton() const override;
int GetDialogButtons() const override;
- // payments::PaymentRequestDialog
+ // payments::PaymentRequestDialog:
void ShowDialog() override;
void CloseDialog() override;
void ShowErrorMessage() override;
+ // PaymentRequestSpec::Observer:
+ void OnInvalidSpecProvided() override {}
+ void OnSpecUpdated() override;
+
void Pay();
void GoBack();
void ShowContactProfileSheet();

Powered by Google App Engine
This is Rietveld 408576698