blob: 96f4aa18d37792ede578395736e844471c353f20 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_DIALOG_VIEW_IDS_H_
#define CHROME_BROWSER_UI_VIEWS_AUTOFILL_DIALOG_VIEW_IDS_H_
#include "components/autofill/core/browser/field_types.h"
// This defines an enumeration of IDs that can uniquely identify a view within
// the scope of the local and upload credit card save bubbles.
namespace autofill {
enum DialogViewId : int {
VIEW_ID_NONE = 0,
// The following are the important containing views of the bubble.
MAIN_CONTENT_VIEW_LOCAL, // The main content view, for a local save bubble
MAIN_CONTENT_VIEW_UPLOAD, // The main content view, for an upload save bubble
REQUEST_CVC_VIEW, // Secondary main content view for the CVC fix flow
FOOTNOTE_VIEW, // Contains the legal messages for upload save
// The following are views::LabelButton objects (clickable).
OK_BUTTON, // Can say [Save], [Next], and [Confirm] depend on context
CANCEL_BUTTON, // Typically says [No thanks]
// The following are views::Link objects (clickable).
LEARN_MORE_LINK,
// The following are views::Textfield objects.
CVC_TEXTFIELD, // Used for CVC entry
};
} // namespace autofill
#endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_DIALOG_VIEW_IDS_H_