#include "components/autofill/core/browser/ui/suggestion.h"
#include <type_traits>
#include <utility>
#include "base/strings/utf_string_conversions.h"
#include "components/autofill/core/browser/data_model/credit_card.h"
#include "components/autofill/core/browser/ui/suggestion_type.h"
namespace autofill {
Suggestion::PasswordSuggestionDetails::PasswordSuggestionDetails() = default;
Suggestion::PasswordSuggestionDetails::PasswordSuggestionDetails(
std::u16string_view username,
std::u16string_view password,
std::string_view signon_realm,
std::u16string_view display_signon_realm,
bool is_cross_domain)
: … { … }
Suggestion::PasswordSuggestionDetails::PasswordSuggestionDetails(
const PasswordSuggestionDetails&) = default;
Suggestion::PasswordSuggestionDetails::PasswordSuggestionDetails(
PasswordSuggestionDetails&) = default;
Suggestion::PasswordSuggestionDetails&
Suggestion::PasswordSuggestionDetails::operator=(
const PasswordSuggestionDetails&) = default;
Suggestion::PasswordSuggestionDetails&
Suggestion::PasswordSuggestionDetails::operator=(PasswordSuggestionDetails&&) =
default;
Suggestion::PasswordSuggestionDetails::~PasswordSuggestionDetails() = default;
Suggestion::PlusAddressPayload::PlusAddressPayload() = default;
Suggestion::PlusAddressPayload::PlusAddressPayload(
std::optional<std::u16string> address)
: … { … }
Suggestion::PlusAddressPayload::PlusAddressPayload(const PlusAddressPayload&) =
default;
Suggestion::PlusAddressPayload::PlusAddressPayload(PlusAddressPayload&&) =
default;
Suggestion::PlusAddressPayload& Suggestion::PlusAddressPayload::operator=(
const PlusAddressPayload&) = default;
Suggestion::PlusAddressPayload& Suggestion::PlusAddressPayload::operator=(
PlusAddressPayload&&) = default;
Suggestion::PlusAddressPayload::~PlusAddressPayload() = default;
Suggestion::Text::Text() = default;
Suggestion::Text::Text(std::u16string value,
IsPrimary is_primary,
ShouldTruncate should_truncate)
: … { … }
Suggestion::Text::Text(const Text& other) = default;
Suggestion::Text::Text(Text& other) = default;
Suggestion::Text& Suggestion::Text::operator=(const Text& other) = default;
Suggestion::Text& Suggestion::Text::operator=(Text&& other) = default;
Suggestion::Text::~Text() = default;
Suggestion::Suggestion() = default;
Suggestion::Suggestion(std::u16string main_text)
: … { … }
Suggestion::Suggestion(SuggestionType type) : … { … }
Suggestion::Suggestion(std::u16string main_text, SuggestionType type)
: … { … }
Suggestion::Suggestion(std::string_view main_text,
std::string_view label,
Icon icon,
SuggestionType type)
: … { … }
Suggestion::Suggestion(std::string_view main_text,
std::vector<std::vector<Text>> labels,
Icon icon,
SuggestionType type)
: … { … }
Suggestion::Suggestion(std::string_view main_text,
std::string_view minor_text,
std::string_view label,
Icon icon,
SuggestionType type)
: … { … }
Suggestion::Suggestion(const Suggestion& other) = default;
Suggestion::Suggestion(Suggestion&& other) = default;
Suggestion& Suggestion::operator=(const Suggestion& other) = default;
Suggestion& Suggestion::operator=(Suggestion&& other) = default;
Suggestion::~Suggestion() = default;
std::string_view ConvertIconToPrintableString(Suggestion::Icon icon) { … }
void PrintTo(const Suggestion& suggestion, std::ostream* os) { … }
}