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

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

Issue 2795353002: WebUI: For cr-dialog, handle Enter keys in paper-inputs. (Closed)
Patch Set: update tests Created 3 years, 8 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/polymer.html"> 2 <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"> 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-input/paper-input .html"> 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html">
5 <link rel="import" href="lock_screen_constants.html"> 5 <link rel="import" href="lock_screen_constants.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 <link rel="import" href="../settings_shared_css.html">
8 8
9 <dom-module id="settings-password-prompt-dialog"> 9 <dom-module id="settings-password-prompt-dialog">
10 <template> 10 <template>
(...skipping 11 matching lines...) Expand all
22 close-text="$i18n{close}"> 22 close-text="$i18n{close}">
23 <div class="title">$i18n{passwordPromptTitle}</div> 23 <div class="title">$i18n{passwordPromptTitle}</div>
24 <div class="body"> 24 <div class="body">
25 25
26 <div class="settings-box first">$i18n{passwordPromptEnterPassword}</div> 26 <div class="settings-box first">$i18n{passwordPromptEnterPassword}</div>
27 27
28 <paper-input id="passwordInput" type="password" autofocus 28 <paper-input id="passwordInput" type="password" autofocus
29 label="$i18n{passwordPromptPasswordLabel}" 29 label="$i18n{passwordPromptPasswordLabel}"
30 no-label-float 30 no-label-float
31 value="{{password_}}" 31 value="{{password_}}"
32 on-keydown="onKeydown_"
33 invalid$="[[passwordInvalid_]]" 32 invalid$="[[passwordInvalid_]]"
34 error-message="$i18n{passwordPromptInvalidPassword}" 33 error-message="$i18n{passwordPromptInvalidPassword}"
35 aria-disabled="false"> 34 aria-disabled="false">
36 </paper-input> 35 </paper-input>
37 36
38 <div class="button-strip"> 37 <div class="button-strip">
39 <paper-button class="cancel-button" on-tap="onCancelTap_"> 38 <paper-button class="cancel-button" on-tap="onCancelTap_">
40 $i18n{cancel} 39 $i18n{cancel}
41 </paper-button> 40 </paper-button>
42 41
43 <paper-button class="action-button" on-tap="submitPassword_" 42 <paper-button class="action-button" on-tap="submitPassword_"
44 disabled$="[[!enableConfirm_(password_, 43 disabled$="[[!enableConfirm_(password_,
45 passwordInvalid_)]]"> 44 passwordInvalid_)]]">
46 $i18n{confirm} 45 $i18n{confirm}
47 </paper-button> 46 </paper-button>
48 </div> 47 </div>
49 </div> 48 </div>
50 </dialog> 49 </dialog>
51 </template> 50 </template>
52 <script src="password_prompt_dialog.js"></script> 51 <script src="password_prompt_dialog.js"></script>
53 </dom-module> 52 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698