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

Unified Diff: chrome/browser/resources/settings/people_page/password_prompt_dialog.html

Issue 2208473007: Rework quick unlock settings to follow new specs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Fix closure (bad merge) 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/people_page/password_prompt_dialog.html
diff --git a/chrome/browser/resources/settings/people_page/password_prompt_dialog.html b/chrome/browser/resources/settings/people_page/password_prompt_dialog.html
new file mode 100644
index 0000000000000000000000000000000000000000..8221eff3e19efa2766bb4bb47290a6074b02c9f4
--- /dev/null
+++ b/chrome/browser/resources/settings/people_page/password_prompt_dialog.html
@@ -0,0 +1,51 @@
+<link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html">
+<link rel="import" href="chrome://resources/html/polymer.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input.html">
+<link rel="import" href="/settings_shared_css.html">
+<link rel="import" href="/settings_shared_css.html">
+
+<dom-module id="settings-password-prompt-dialog">
+ <template>
+ <style include="settings-shared">
+ #passwordInput {
+ display: inline-block;
+ }
+
+ .settings-box {
+ padding: 0;
+ }
+ </style>
+
+ <dialog is="cr-dialog" id="dialog">
+ <div class="title">$i18n{passwordPromptTitle}</div>
+ <div class="body">
+
+ <div class="settings-box first">$i18n{passwordPromptEnterPassword}</div>
+
+ <paper-input id="passwordInput" type="password" autofocus
+ label="$i18n{passwordPromptPasswordLabel}"
+ no-label-float
+ value="{{password_}}"
+ on-change="checkPassword_"
+ invalid$="[[passwordInvalid_]]"
+ error-message="$i18n{passwordPromptInvalidPassword}"
+ aria-disabled="false">
+ </paper-input>
+
+ <div class="button-strip">
+ <paper-button class="cancel-button" on-tap="cancel">
+ $i18n{cancel}
+ </paper-button>
+
+ <paper-button class="action-button" on-tap="checkPassword_"
+ disabled$="[[!enableConfirm_(password_,
+ passwordInvalid_)]]">
+ $i18n{confirm}
+ </paper-button>
+ </div>
+ </div>
+ </dialog>
+ </template>
+ <script src="password_prompt_dialog.js"></script>
+</dom-module>

Powered by Google App Engine
This is Rietveld 408576698