#include "chrome/browser/ui/views/payments/shipping_option_view_controller.h"
#include <memory>
#include <string>
#include "base/memory/raw_ptr.h"
#include "chrome/browser/ui/views/payments/payment_request_dialog_view.h"
#include "chrome/browser/ui/views/payments/payment_request_views_util.h"
#include "components/payments/content/payment_request_spec.h"
#include "components/payments/content/payment_request_state.h"
#include "components/payments/core/strings_util.h"
#include "components/strings/grit/components_strings.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/views/layout/fill_layout.h"
namespace payments {
namespace {
class ShippingOptionItem final : public PaymentRequestItemList::Item { … };
}
ShippingOptionViewController::ShippingOptionViewController(
base::WeakPtr<PaymentRequestSpec> spec,
base::WeakPtr<PaymentRequestState> state,
base::WeakPtr<PaymentRequestDialogView> dialog)
: … { … }
ShippingOptionViewController::~ShippingOptionViewController() { … }
void ShippingOptionViewController::OnSpecUpdated() { … }
std::u16string ShippingOptionViewController::GetSheetTitle() { … }
void ShippingOptionViewController::FillContentView(views::View* content_view) { … }
std::unique_ptr<views::View>
ShippingOptionViewController::CreateExtraFooterView() { … }
bool ShippingOptionViewController::ShouldShowPrimaryButton() { … }
bool ShippingOptionViewController::ShouldShowSecondaryButton() { … }
base::WeakPtr<PaymentRequestSheetController>
ShippingOptionViewController::GetWeakPtr() { … }
}