summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/resources/settings/people_page/setup_fingerprint_dialog.html
blob: fda8a287d760b54e9fbc99cba44409d30d7bbb85 (plain)
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
<link rel="import" href="chrome://resources/html/polymer.html">

<link rel="import" href="chrome://resources/cr_elements/chromeos/fingerprint/cr_fingerprint_progress_arc.html">
<link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html">
<link rel="import" href="chrome://resources/cr_elements/icons.html">
<link rel="import" href="chrome://resources/html/i18n_behavior.html">
<link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-iconset-svg/iron-iconset-svg.html">
<link rel="import" href="../icons.html">
<link rel="import" href="../settings_shared_css.html">
<link rel="import" href="fingerprint_browser_proxy.html">

<dom-module id="settings-setup-fingerprint-dialog">
  <template>
    <style include="settings-shared">
      #dialog {
        --cr-dialog-native: {
          min-width: 500px;
          width: 500px;
        };
      }

      #scannerLocation {
        background: url(chrome://theme/IDR_LOGIN_FINGERPRINT_SCANNER_ANIMATION);
        background-position: center;
        background-repeat: no-repeat;
        background-size: 298px 205px;
        height: 240px;
      }

      #messageDiv {
        height: 20px;
      }

      /* Use this instead of hidden so that the dialog does not resize when the
         message appears or disappears. */
      #messageDiv[invisible] {
        visibility: hidden;
      }

      #closeButton {
        margin-inline-start: 5px;
      }
    </style>

    <cr-dialog id="dialog" on-close="close"
        close-text="$i18n{close}">
      <div slot="title">$i18n{configureFingerprintTitle}</div>
      <div slot="body">
        <div id="messageDiv"
            invisible$="[[!getInstructionMessage_(step_, problemMessage_)]]"
            aria-live="polite">
          <span>[[getInstructionMessage_(step_, problemMessage_)]]</span>
        </div>
        <div id="scannerLocation" hidden="[[!showScannerLocation_(step_)]]"
            aria-label="$i18n{configureFingerprintScannerStepAriaLabel}"
            aria-live="polite" >
        </div>
        <cr-fingerprint-progress-arc id="arc" circle-radius="100"
            hidden="[[!showArc_(step_)]]">
        </cr-fingerprint-progress-arc>
      </div>
      <div slot="button-container">
        <paper-button id="addAnotherButton" on-click="onAddAnotherFingerprint_"
            hidden$="[[hideAddAnother_(step_, allowAddAnotherFinger)]]">
          $i18n{configureFingerprintAddAnotherButton}
        </paper-button>

        <paper-button id="closeButton"
            class$="[[getCloseButtonClass_(step_)]]" on-click="onClose_">
          [[getCloseButtonText_(step_)]]
        </paper-button>
      </div>
    </cr-dialog>
  </template>

  <script src="setup_fingerprint_dialog.js"></script>
</dom-module>