| <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> |
| <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-flex-layout.html"> |
| <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/animations/fade-in-animation.html"> |
| <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/animations/fade-out-animation.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-dialog/paper-dialog.html"> |
| <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input.html"> |
| |
| <dom-module id="viewer-password-screen"> |
| <template> |
| <paper-dialog id="dialog" modal no-cancel-on-esc-key |
| entry-animation="fade-in-animation" exit-animation="fade-out-animation"> |
| <div id="message" i18n-content="passwordPrompt"></div> |
| <div class="horizontal layout start"> |
| <paper-input-container id="password-container" class="flex" |
| no-label-float invalid="[[invalid]]"> |
| <input is="iron-input" id="password" type="password" size="20" |
| on-keypress="handleKey" autofocus> |
| </input> |
| <paper-input-error hidden$="[[!invalid]]" |
| i18n-content="passwordInvalid"></paper-input-error> |
| </paper-input-container> |
| <paper-button id="submit" on-click="submit" |
| i18n-content="passwordSubmit"></paper-button> |
| </div> |
| </paper-dialog> |
| </template> |
| </dom-module> |
| <script src="viewer-password-screen.js"></script> |