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

Side by Side Diff: chrome/browser/resources/settings/people_page/fingerprint_list.html

Issue 2538303002: md-settings: Added settings for fingerprint unlock. (Closed)
Patch Set: Fixed patch set 1 errors. Created 4 years 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 unified diff | Download patch
OLDNEW
(Empty)
1 <link rel="import" href="chrome://resources/cr_elements/icons.html">
2 <link rel="import" href="chrome://resources/html/i18n_behavior.html">
3 <link rel="import" href="chrome://resources/html/polymer.html">
4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-iconset-svg/iron-i conset-svg.html">
jdufault 2016/12/02 23:02:11 Drop import after addressing comment below
sammiequon 2016/12/03 21:40:51 Done.
5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html">
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html">
7 <link rel="import" href="/settings_shared_css.html">
8
9 <iron-iconset-svg name="fingerprint" size="24">
10 <svg>
11 <defs>
12 <!--
13 Inlined from Polymer's iron-icons to avoid importing everything.
14 See http://goo.gl/Y1OdAq for instructions on adding additional icons.
15 -->
16 <g id="delete">
17 <path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l -1 1H5v2h14V4z">
jdufault 2016/12/02 23:02:11 Reuse existing icon in [1] instead of redefining i
sammiequon 2016/12/03 21:40:51 Done.
18 </g>
19 </defs>
20 </svg>
21 </iron-iconset-svg>
22
23 <dom-module id="settings-fingerprint-list">
24 <template>
25 <style include="settings-shared"></style>
26 <style>
27 .list-item {
28 border-bottom: 1px solid black;
29 display: flex;
30 }
31
32 .list-item[index='0'] {
33 border-top: 1px solid black;
34 }
35
36 .warning-text {
37 font-style: italic;
38 }
39 </style>
40
41 <div>
42 <div>$i18n{lockScreenRegisteredFingerprints}</div>
43 <div>
44 <template is="dom-repeat" items="{{items}}">
45 <div class="list-item" index$="[[index]]">
46 <paper-input value="{{item.name}}"></paper-input>
47 <paper-icon-button icon="fingerprint:delete" on-tap="onItemDelete_">
48 </paper-icon-button>
49 </div>
50 </template>
51 <div class="settings-box continuation radio-indent">
52 <paper-button is="action-link" on-tap="onAddFingerprint_"
53 disabled="[[!canAddNewFingerprint_(items.length)]]">
54 <div hidden="[[!canAddNewFingerprint_(items.length)]]">
55 $i18n{lockScreenAddFingerprint}
56 </div>
57 <div hidden="[[canAddNewFingerprint_(items.length)]]">
58 [[getFingerprintButtonCannotAddText_()]]
59 </div>
60 </paper-button>
61 </div>
62 </div>
63 <div class="warning-text">
64 $i18n{lockScreenFingerprintWarning}
65 </div>
66 </div>
67 </template>
68 <script src="fingerprint_list.js"></script>
69 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698