chromium/chrome/browser/ui/views/autofill/address_editor_view.cc

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {
// Returns the View ID that can be used to lookup the input field for |type|.
int GetInputFieldViewId(autofill::FieldType type) {}

}  // namespace

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() {}

// Field views have a width of 196/260dp (short/long fields) as per spec.
// __________________________________
// |Label | 16dp pad | Field (flex) |
// |______|__________|______________|
//
// Each input field is a 2 cells.
// +----------------------------------------------------------+
// | Field Label           | Input field (textfield/combobox) |
// +----------------------------------------------------------+
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()

}  // namespace autofill