File: dialog_view_ids.h

package info (click to toggle)
chromium 138.0.7204.183-1~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 6,080,960 kB
  • sloc: cpp: 34,937,079; ansic: 7,176,967; javascript: 4,110,704; python: 1,419,954; asm: 946,768; xml: 739,971; pascal: 187,324; sh: 89,623; perl: 88,663; objc: 79,944; sql: 50,304; cs: 41,786; fortran: 24,137; makefile: 21,811; php: 13,980; tcl: 13,166; yacc: 8,925; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (84 lines) | stat: -rw-r--r-- 3,535 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
// Copyright 2017 The Chromium Authors
// 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_PAYMENTS_DIALOG_VIEW_IDS_H_
#define CHROME_BROWSER_UI_VIEWS_AUTOFILL_PAYMENTS_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 various credit-card-related Autofill bubbles and dialogs.

namespace autofill {

enum DialogViewId : int {
  VIEW_ID_NONE = 0,

  // The following views are contained in SaveCardBubbleViews.
  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
  FOOTNOTE_VIEW,             // The footnote view of either an upload
                             // save bubble or a manage cards view.
  LEGAL_MESSAGE_VIEW,        // The view containing terms of service and
                             // the privacy notice
  SIGN_IN_PROMO_VIEW,        // Contains the sign-in promo view
  MANAGE_CARDS_VIEW,         // The manage cards view
  MANAGE_IBANS_VIEW,         // The manage IBANs view
  EXPIRATION_DATE_VIEW,      // Contains the dropdowns for expiration date
  USER_INFORMATION_VIEW,     // User avatar/display picture and email address.

  // The sub-view that contains the sign-in button in the promo.
  SIGN_IN_VIEW,

  // The main content view for a migration offer bubble.
  MAIN_CONTENT_VIEW_MIGRATION_BUBBLE,

  // The main content view for the main migration dialog.
  MAIN_CONTENT_VIEW_MIGRATION_OFFER_DIALOG,

  // The following are views::LabelButton objects (clickable).
  OK_BUTTON,            // Can say [Save], [Next], [Confirm],
                        // or [Done] depending on context
  CANCEL_BUTTON,        // Typically says [No thanks]
  CLOSE_BUTTON,         // Typically says [Close]
  MANAGE_CARDS_BUTTON,  // Typically says [Manage cards]
  MANAGE_IBANS_BUTTON,  // Typically says [Manage payments]

  // The following are views::Link objects (clickable).
  LEARN_MORE_LINK,

  // The following are views::Textfield objects.
  CARDHOLDER_NAME_TEXTFIELD,  // Used for cardholder name entry/confirmation
  NICKNAME_TEXTFIELD,         // Used for IBAN nickname entry/confirmation

  // The following are views::TooltipIcon objects.
  CARDHOLDER_NAME_TOOLTIP,  // Appears during cardholder name entry/confirmation
  UPLOAD_EXPLANATION_TOOLTIP,  // Appears for implicitly-syncing upload saves

  // The following are views::Combobox objects.
  EXPIRATION_DATE_DROPBOX_MONTH,
  EXPIRATION_DATE_DROPBOX_YEAR,

  // The following are views::Label objects.
  EXPIRATION_DATE_LABEL,  // Appears during save offer bubble
  NICKNAME_LABEL,         // Appears during manage saved IBAN bubble.
  DESCRIPTION_LABEL,      // Appears during save card and virtual card enroll
                          // confirmation bubble.

  // The following are views::StyledLabel objects.
  SETTINGS_LABEL,  // Appears in the mandatory reauth opt-in confirmation
                   // bubble.

  // The following are views::Throbber objects.
  LOADING_THROBBER,  // Appears during server card upload in save card offer
                     // bubble and during ongoing enrollment in virtual card
                     //  enroll bubble.

};

}  // namespace autofill

#endif  // CHROME_BROWSER_UI_VIEWS_AUTOFILL_PAYMENTS_DIALOG_VIEW_IDS_H_