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

Side by Side Diff: chrome/browser/resources/chromeos/login/saml_confirm_password.html

Issue 1115993002: ChromeOS Gaia: SAML password confirmation dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 7 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
(Empty)
1 <link rel="import" href="chrome://resources/polymer/polymer/polymer.html">
2 <link rel="import" href="chrome://resources/polymer/polymer/layout.html">
3 <link rel="import" href="chrome://resources/polymer/core-animated-pages/core-ani mated-pages.html">
4 <link rel="import" href="chrome://resources/polymer/core-animated-pages/transiti ons/cross-fade.html">
5
6 <!--
7 SAML password confirmation UI for the New Gaia flow.
8 Contains two cards with a fade transition between them:
9 1. Password input form.
10 2. Spinner with notice "Please wait";
11
12 Example:
13 <saml-confirm-password id="saml-confirm-password" hidden>
14 </saml-confirm-password>
15
16 Attributes:
17 'email' - Displayed email in header.
18
19 Events:
20 'passwordEnter' - Fired when user enters password. Fires with an argument
21 |password|.
22 'cancel' - Fired when user presses the X-button and then presses YES
23 in the cancel confirmation dialog.
24
25 Methods:
26 'invalidate' - Mark password input as invalid.
27 'reset' - Reset element, switches to the first screen, closes
28 the confirm dialog, displays the close button,
29 empties password field and enables buttons.
30 'focus' - If the current card is the first one, focuses password input.
31 -->
32 <polymer-element name="saml-confirm-password" vertical layout
33 attributes="email">
34 <template>
35 <link rel="stylesheet" href="saml_confirm_password.css">
36 <gaia-core-icon-button id="closeButton" icon="close" on-tap="{{onClose}}">
37 </gaia-core-icon-button>
38 <core-animated-pages id="animatedPages" transitions="cross-fade-all" flex
39 on-core-animated-pages-transition-end="{{onTransitionEnd}}">
40 <section flex>
41 <gaia-card id="confirmPasswordCard">
42 <gaia-header class="header" email="{{email}}">
43 </gaia-header>
44 <div horizontal layout center class="footer gaia-body-text">
45 <p i18n-content="confirmPasswordTitle">
46 </p>
47 </div>
48 <gaia-input-form id="inputForm" class="footer"
49 on-submit="{{onPasswordSubmitted}}"
50 i18n-values="buttonText:nextButtonText">
51 <gaia-input id="passwordInput" type="password" required
52 i18n-values="error:confirmPasswordIncorrectPassword;
53 label:confirmPasswordLabel;">
54 </gaia-input>
55 </gaia-input-form>
56 <paper-action-dialog class="footer" id="cancelConfirmDlg"
57 layered="false">
58 <p i18n-content="accountSetupCancelDialogTitle"></p>
59 <gaia-paper-button class="dialog-action-button" affirmative
60 autofocus i18n-content="accountSetupCancelDialogNo">
61 </gaia-paper-button>
62 <gaia-paper-button id="confirmCancel" on-tap="{{onConfirmCancel}}"
63 class="dialog-action-button" affirmative
64 i18n-content="accountSetupCancelDialogYes">
65 </gaia-paper-button>
66 </paper-action-dialog>
67 </gaia-card>
68 </section>
69 <section flex vertical layout center-justified>
70 <throbber-notice i18n-values="text:gaiaLoadingNewGaia" self-center>
71 </throbber-notice>
72 </section>
73 </core-animated-pages>
74 </template>
75 </polymer-element>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698