blob: 4274c2b31d8c2dfadd4281bd5012c449cb8b21b1 (
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
81
82
83
84
85
86
87
88
89
90
|
<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;
};
}
.fingerprint-scanner-tablet {
background:
url(chrome://theme/IDR_LOGIN_FINGERPRINT_SCANNER_TABLET_ANIMATION);
}
.fingerprint-scanner-laptop {
background:
url(chrome://theme/IDR_LOGIN_FINGERPRINT_SCANNER_LAPTOP_ANIMATION);
}
#scannerLocation {
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_)]]"
class$="[[getFingerprintScannerAnimationClass_()]]"
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>
|