#include "components/autofill/core/browser/autofill_metrics.h"
#include "components/autofill/core/browser/field_types.h"
#include "third_party/skia/include/core/SkColor.h"
-#include "ui/gfx/font.h"
+#include "ui/gfx/font_list.h"
#include "ui/gfx/image/image.h"
#include "ui/gfx/range/range.h"
#include "ui/gfx/text_constants.h"
base::string16 initial_value;
};
-// Determines whether |type| and |field| match.
-typedef base::Callback<bool(ServerFieldType type,
- const AutofillField& field)>
- InputFieldComparator;
-
// Sections of the dialog --- all fields that may be shown to the user fit under
// one of these sections.
enum DialogSection {
// Text content of the message.
base::string16 text;
- // Font to render the message's text in.
- gfx::Font font;
+ // Font list to render the message's text in.
+ gfx::FontList font_list;
};
// A struct to describe a dialog overlay. If |image| is empty, no overlay should
ValidityMessages();
~ValidityMessages();
+ // Sets the message for |field|, but will not overwrite a previous, invalid
+ // message.
void Set(ServerFieldType field, const ValidityMessage& message);
const ValidityMessage& GetMessageOrDefault(ServerFieldType field) const;