Chromium Code Reviews| 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 9b48b0a489ae1549da5fe9a148f555fa95fc0366..f2ebc2c452d60465231f1f7894482e4ce7c22078 100644 |
| --- a/chrome/browser/ui/autofill/autofill_dialog_types.h |
| +++ b/chrome/browser/ui/autofill/autofill_dialog_types.h |
| @@ -10,6 +10,7 @@ |
| #include "base/callback_forward.h" |
| #include "base/strings/string16.h" |
| +#include "base/time/time.h" |
| #include "components/autofill/core/browser/autofill_metrics.h" |
| #include "components/autofill/core/browser/field_types.h" |
| #include "third_party/skia/include/core/SkColor.h" |
| @@ -213,10 +214,11 @@ struct SuggestionState { |
| struct DialogOverlayString { |
| DialogOverlayString(); |
| ~DialogOverlayString(); |
| - // TODO(estade): need to set a color as well. |
| base::string16 text; |
| + // TODO(estade): should be able to remove this; text is always black. |
|
groby-ooo-7-16
2013/09/03 18:50:04
Remove away. Or will that bite Android, too?
Evan Stade
2013/09/03 19:05:37
Would rather keep this change focused; also verifi
|
| SkColor text_color; |
| gfx::Font font; |
| + // TODO(estade): should be able to remove this; text is always centered. |
| gfx::HorizontalAlignment alignment; |
| }; |
| @@ -229,9 +231,12 @@ struct DialogOverlayState { |
| // more or less front and center. |
| gfx::Image image; |
| // If non-empty, messages to display. |
| + // TODO(estade): make this a single string, no longer need to support multiple |
| + // messages. |
| std::vector<DialogOverlayString> strings; |
| - // If non-empty, holds text that should go on a button. |
| - base::string16 button_text; |
| + // The amount of time this dialog is valid for. After this time has elapsed, |
| + // the view should update the overlay. |
| + base::TimeDelta expiry; |
|
groby-ooo-7-16
2013/09/03 18:50:04
Heh. I learned a new word :)
Should the controlle
Evan Stade
2013/09/03 19:05:37
The reason I did it like this is because the contr
groby-ooo-7-16
2013/09/03 22:21:41
Well, it sort of does track when it stops showing
|
| }; |
| enum ValidationType { |