diff options
Diffstat (limited to 'chromium/chrome/browser/resources/pdf/elements/viewer-password-screen.html')
-rw-r--r-- | chromium/chrome/browser/resources/pdf/elements/viewer-password-screen.html | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/chromium/chrome/browser/resources/pdf/elements/viewer-password-screen.html b/chromium/chrome/browser/resources/pdf/elements/viewer-password-screen.html new file mode 100644 index 00000000000..aebc16bf138 --- /dev/null +++ b/chromium/chrome/browser/resources/pdf/elements/viewer-password-screen.html @@ -0,0 +1,35 @@ +<link rel="import" href="chrome://resources/html/polymer.html"> + +<link rel="import" href="chrome://resources/cr_elements/cr_button/cr_button.html"> +<link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html"> +<link rel="import" href="chrome://resources/cr_elements/cr_input/cr_input.html"> +<link rel="import" href="chrome://resources/cr_elements/shared_style_css.html"> +<link rel="import" href="chrome://resources/cr_elements/shared_vars_css.html"> + +<dom-module id="viewer-password-screen"> + <template> + <style include="cr-shared-style"> + #password { + margin-top: var(--cr-form-field-bottom-spacing); + } + </style> + <cr-dialog id="dialog" no-cancel> + <div slot="title">[[strings.passwordDialogTitle]]</div> + <div slot="body"> + <div id="message">[[strings.passwordPrompt]]</div> + <cr-input id="password" + type="password" + error-message="[[strings.passwordInvalid]]" + invalid="[[invalid]]" + autofocus> + </cr-input> + </div> + <div slot="button-container"> + <cr-button id="submit" class="action-button" on-click="submit"> + [[strings.passwordSubmit]] + </cr-button> + </div> + </cr-dialog> + </template> + <script src="viewer-password-screen.js"></script> +</dom-module> |