virtual bool GetDisplayText(base::string16* vertically_compact,
base::string16* horizontally_compact);
+ // Returns the BCP 47 language code that should be used for formatting the
+ // data for display.
+ virtual const std::string& GetLanguageCode() const = 0;
+
// Fills in |form_structure| with the data that this model contains. |inputs|
// and |comparator| are used to determine whether each field in the
// FormStructure should be filled in or left alone. Returns whether any fields
virtual base::string16 GetInfo(const AutofillType& type) const OVERRIDE;
virtual base::string16 GetInfoForDisplay(const AutofillType& type) const
OVERRIDE;
+ virtual const std::string& GetLanguageCode() const OVERRIDE;
protected:
// Returns the variant that should be used when dealing with an element that
virtual gfx::Image GetIcon() OVERRIDE;
virtual bool GetDisplayText(base::string16* vertically_compact,
base::string16* horizontally_compact) OVERRIDE;
+ virtual const std::string& GetLanguageCode() const OVERRIDE;
private:
const CreditCard* card_;
OVERRIDE;
virtual bool GetDisplayText(base::string16* vertically_compact,
base::string16* horizontally_compact) OVERRIDE;
+ virtual const std::string& GetLanguageCode() const OVERRIDE;
private:
const wallet::Address* address_;
virtual gfx::Image GetIcon() OVERRIDE;
virtual bool GetDisplayText(base::string16* vertically_compact,
base::string16* horizontally_compact) OVERRIDE;
+ virtual const std::string& GetLanguageCode() const OVERRIDE;
private:
const wallet::WalletItems::MaskedInstrument* instrument_;
virtual base::string16 GetInfo(const AutofillType& type) const OVERRIDE;
virtual bool GetDisplayText(base::string16* vertically_compact,
base::string16* horizontally_compact) OVERRIDE;
+ virtual const std::string& GetLanguageCode() const OVERRIDE;
private:
wallet::FullWallet* full_wallet_;
virtual ~FullWalletShippingWrapper();
virtual base::string16 GetInfo(const AutofillType& type) const OVERRIDE;
+ virtual const std::string& GetLanguageCode() const OVERRIDE;
private:
wallet::FullWallet* full_wallet_;
virtual ~I18nAddressDataWrapper();
virtual base::string16 GetInfo(const AutofillType& type) const OVERRIDE;
+ virtual const std::string& GetLanguageCode() const OVERRIDE;
private:
const ::i18n::addressinput::AddressData* address_;