Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Unified Diff: chrome/browser/ui/autofill/autofill_dialog_types.h

Issue 18850006: retry r210334 with fix for android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/autofill/autofill_dialog_types.h
diff --git a/chrome/browser/ui/autofill/autofill_dialog_types.h b/chrome/browser/ui/autofill/autofill_dialog_types.h
index a65820bf23c48cd857f08330b723aa82ebe8560b..63e0a481a5f33cf5bb0ec36cd8007e419164bc21 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_types.h
+++ b/chrome/browser/ui/autofill/autofill_dialog_types.h
@@ -15,6 +15,7 @@
#include "third_party/skia/include/core/SkColor.h"
#include "ui/gfx/font.h"
#include "ui/gfx/image/image.h"
+#include "ui/gfx/text_constants.h"
namespace autofill {
@@ -189,6 +190,30 @@ struct SuggestionState {
gfx::Image extra_icon;
};
+// A struct to describe a textual message within a dialog overlay.
+struct DialogOverlayString {
+ DialogOverlayString();
+ ~DialogOverlayString();
+ // TODO(estade): need to set a color as well.
+ base::string16 text;
+ gfx::Font font;
+ gfx::HorizontalAlignment alignment;
+};
+
+// A struct to describe a dialog overlay. If |image| is empty, no overlay should
+// be shown.
+struct DialogOverlayState {
+ DialogOverlayState();
+ ~DialogOverlayState();
+ // If empty, there should not be an overlay. If non-empty, an image that is
+ // more or less front and center.
+ gfx::Image image;
+ // If non-empty, messages to display.
+ std::vector<DialogOverlayString> strings;
+ // If non-empty, holds text that should go on a button.
+ base::string16 button_text;
+};
+
enum ValidationType {
VALIDATE_EDIT, // Validate user edits. Allow for empty fields.
VALIDATE_FINAL, // Full form validation. Required fields can't be empty.

Powered by Google App Engine
This is Rietveld 408576698