#include "chrome/browser/ui/views/autofill/address_editor_view.h"
#include <cstddef>
#include <memory>
#include "base/check.h"
#include "base/functional/bind.h"
#include "base/task/single_thread_task_runner.h"
#include "chrome/browser/ui/views/chrome_layout_provider.h"
#include "components/autofill/core/browser/geo/autofill_country.h"
#include "components/autofill/core/browser/ui/country_combobox_model.h"
#include "components/strings/grit/components_strings.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/color/color_id.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/border.h"
#include "ui/views/controls/combobox/combobox.h"
#include "ui/views/controls/label.h"
#include "ui/views/controls/textfield/textfield.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/layout/box_layout_view.h"
#include "ui/views/metadata/view_factory.h"
#include "ui/views/view.h"
#include "ui/views/window/dialog_delegate.h"
namespace autofill {
namespace {
int GetInputFieldViewId(autofill::FieldType type) { … }
}
AddressEditorView::AddressEditorView(
std::unique_ptr<AddressEditorController> controller)
: … { … }
AddressEditorView::~AddressEditorView() = default;
void AddressEditorView::PreferredSizeChanged() { … }
const autofill::AutofillProfile& AddressEditorView::GetAddressProfile() { … }
bool AddressEditorView::ValidateAllFields() { … }
void AddressEditorView::SelectCountryForTesting(const std::u16string& country) { … }
void AddressEditorView::SetTextInputFieldValueForTesting(
autofill::FieldType type,
const std::u16string& value) { … }
std::u16string AddressEditorView::GetValidationErrorForTesting() const { … }
void AddressEditorView::CreateEditorView() { … }
views::View* AddressEditorView::CreateInputField(const EditorField& field) { … }
std::unique_ptr<views::Combobox> AddressEditorView::CreateCountryCombobox(
const std::u16string& label) { … }
void AddressEditorView::UpdateEditorView() { … }
void AddressEditorView::SaveFieldsToProfile() { … }
void AddressEditorView::OnSelectedCountryChanged(views::Combobox* combobox) { … }
void AddressEditorView::ValidateField(views::Textfield* textfield) { … }
BEGIN_METADATA(…)
}