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

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

Issue 23033016: Remove autocheckout code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Even more deletes, and Ilya review. Created 7 years, 4 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 9b48b0a489ae1549da5fe9a148f555fa95fc0366..6ac2c714bab8801b8a4df3ca94b7cd13586ee37d 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_types.h
+++ b/chrome/browser/ui/autofill/autofill_dialog_types.h
@@ -82,8 +82,6 @@ class DialogNotification {
public:
enum Type {
NONE,
- AUTOCHECKOUT_ERROR,
- AUTOCHECKOUT_SUCCESS,
DEVELOPER_WARNING,
EXPLANATORY_MESSAGE,
REQUIRED_ACTION,
@@ -140,35 +138,6 @@ class DialogNotification {
bool interactive_;
};
-// A notification to show in the autofill dialog. Ranges from information to
-// seriously scary security messages, and will give you the color it should be
-// displayed (if you ask it).
-class DialogAutocheckoutStep {
- public:
- DialogAutocheckoutStep(AutocheckoutStepType type,
- AutocheckoutStepStatus status);
-
- // Returns the appropriate color for the display text based on |status_|.
- SkColor GetTextColor() const;
-
- // Returns the appropriate font for the display text based on |status_|.
- gfx::Font GetTextFont() const;
-
- // Returns whether the icon for the view should be visable based on |status_|.
- bool IsIconVisible() const;
-
- // Returns the display text based on |type_| and |status_|.
- string16 GetDisplayText() const;
-
- AutocheckoutStepStatus status() { return status_; }
-
- AutocheckoutStepType type() { return type_; }
-
- private:
- AutocheckoutStepType type_;
- AutocheckoutStepStatus status_;
-};
-
extern SkColor const kWarningColor;
enum DialogSignedInState {
@@ -179,14 +148,6 @@ enum DialogSignedInState {
SIGN_IN_DISABLED,
};
-// Overall state of the Autocheckout flow.
-enum AutocheckoutState {
- AUTOCHECKOUT_ERROR, // There was an error in the flow.
- AUTOCHECKOUT_IN_PROGRESS, // The flow is currently in.
- AUTOCHECKOUT_NOT_STARTED, // The flow has not been initiated by the user yet.
- AUTOCHECKOUT_SUCCESS, // The flow completed successfully.
-};
-
struct SuggestionState {
SuggestionState();
SuggestionState(bool visible,

Powered by Google App Engine
This is Rietveld 408576698