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

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

Issue 2236213002: Add quick unlock Settings in options page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporate comments from jdufault@ Created 4 years, 4 months 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
1 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html "> 1 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html ">
2 <link rel="import" href="chrome://resources/html/i18n_behavior.html"
2 <link rel="import" href="chrome://resources/html/polymer.html"> 3 <link rel="import" href="chrome://resources/html/polymer.html">
3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html">
4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html"> 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html">
5 <link rel="import" href="/settings_shared_css.html"> 6 <link rel="import" href="/settings_shared_css.html">
6 <link rel="import" href="/settings_shared_css.html"> 7 <link rel="import" href="/settings_shared_css.html">
7 8
8 <dom-module id="settings-password-prompt-dialog"> 9 <dom-module id="settings-password-prompt-dialog">
9 <template> 10 <template>
10 <style include="settings-shared"> 11 <style include="settings-shared">
11 #passwordInput { 12 #passwordInput {
12 display: inline-block; 13 display: inline-block;
13 } 14 }
14 15
15 .settings-box { 16 .settings-box {
16 padding: 0; 17 padding: 0;
17 } 18 }
18 </style> 19 </style>
19 20
21 <!--TODO(xiaoyinh@): Use this format $i18n{passwordPromptPasswordLabel} once
jdufault 2016/08/16 17:43:14 Is there trailing whitespace at the end of this li
xiaoyinh(OOO Sep 11-29) 2016/08/17 20:52:11 Removed. Thanks!
22 we don't need to support options. -->
20 <dialog is="cr-dialog" id="dialog"> 23 <dialog is="cr-dialog" id="dialog">
21 <div class="title">$i18n{passwordPromptTitle}</div> 24 <div class="title">[[i18n('passwordPromptTitle')]]</div>
22 <div class="body"> 25 <div class="body">
23 26
24 <div class="settings-box first">$i18n{passwordPromptEnterPassword}</div> 27 <div class="settings-box first">[[i18n('passwordPromptEnterPassword')]]< /div>
25 28
26 <paper-input id="passwordInput" type="password" autofocus 29 <paper-input id="passwordInput" type="password" autofocus
27 label="$i18n{passwordPromptPasswordLabel}" 30 label="[[i18n('passwordPromptPasswordLabel')]]"
28 no-label-float 31 no-label-float
29 value="{{password_}}" 32 value="{{password_}}"
30 on-change="checkPassword_" 33 on-change="checkPassword_"
31 invalid$="[[passwordInvalid_]]" 34 invalid$="[[passwordInvalid_]]"
32 error-message="$i18n{passwordPromptInvalidPassword}" 35 error-message="[[i18n('passwordPromptInvalidPassword')]]"
33 aria-disabled="false"> 36 aria-disabled="false">
34 </paper-input> 37 </paper-input>
35 38
36 <div class="button-strip"> 39 <div class="button-strip">
37 <paper-button class="cancel-button" on-tap="cancel"> 40 <paper-button class="cancel-button" on-tap="cancel">
38 $i18n{cancel} 41 [[i18n('cancel')]]
39 </paper-button> 42 </paper-button>
40 43
41 <paper-button class="action-button" on-tap="checkPassword_" 44 <paper-button class="action-button" on-tap="checkPassword_"
42 disabled$="[[!enableConfirm_(password_, 45 disabled$="[[!enableConfirm_(password_,
43 passwordInvalid_)]]"> 46 passwordInvalid_)]]">
44 $i18n{confirm} 47 [[i18n('confirm')]]
45 </paper-button> 48 </paper-button>
46 </div> 49 </div>
47 </div> 50 </div>
48 </dialog> 51 </dialog>
49 </template> 52 </template>
50 <script src="password_prompt_dialog.js"></script> 53 <script src="password_prompt_dialog.js"></script>
51 </dom-module> 54 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698