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

Unified 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: Update after review Created 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/chromeos/login/saml_confirm_password.html
diff --git a/chrome/browser/resources/chromeos/login/saml_confirm_password.html b/chrome/browser/resources/chromeos/login/saml_confirm_password.html
new file mode 100644
index 0000000000000000000000000000000000000000..df6f8efa12129c7ba1b3b71d29470eb393d36cb4
--- /dev/null
+++ b/chrome/browser/resources/chromeos/login/saml_confirm_password.html
@@ -0,0 +1,73 @@
+<link rel="import" href="chrome://resources/polymer/polymer/polymer.html">
+<link rel="import" href="chrome://resources/polymer/polymer/layout.html">
+<link rel="import" href="chrome://resources/polymer/core-animated-pages/core-animated-pages.html">
+<link rel="import" href="chrome://resources/polymer/core-animated-pages/transitions/cross-fade.html">
+
+<!--
+ SAML password confirmation UI for the New Gaia flow.
+ Contains two cards with a fade transition between them:
+ 1. Password input form.
+ 2. Spinner with notice "Please wait";
+
+ Example:
+ <saml-confirm-password id="saml-confirm-password" hidden>
+ </saml-confirm-password>
+
+ Attributes:
+ 'email' - Displayed email in header.
+
+ Events:
+ 'passwordEnter' - Fired when user enters password. Fires with an argument
+ |password|.
+ 'cancel' - Fired when user presses the X-button and then presses YES
+ in the cancel confirmation dialog.
+
+ Methods:
+ 'invalidate' - Mark password input as invalid.
+ 'reset' - Reset element, switches to the first screen, closes
+ the cancel confirm dialog, displays the close button,
bartfab (slow) 2015/05/07 15:05:11 Nit: s/cancel //
Roman Sorokin (ftl) 2015/05/08 09:22:45 Done.
+ empties password field and enables buttons.
+ 'focus' - If the current card is the first one, focuses password input.
+-->
+<polymer-element name="saml-confirm-password" vertical layout
+ attributes="email">
+ <template>
+ <link rel="stylesheet" href="saml_confirm_password.css">
+ <gaia-core-icon-button id="closeButton" icon="close" on-tap="{{onClose}}">
+ </gaia-core-icon-button>
+ <core-animated-pages id="animatedPages" transitions="cross-fade-all" flex
+ on-core-animated-pages-transition-end="{{onTransitionEnd}}">
+ <section flex>
+ <gaia-card id="confirmPasswordCard">
+ <gaia-header class="header" email="{{email}}">
+ </gaia-header>
+ <div horizontal layout center class="footer gaia-body-text">
+ <p i18n-content="confirmPasswordTitle">
+ </p>
+ </div>
+ <gaia-input-form class="footer" id="passwordInput"
+ inputtype="password"
+ i18n-values="errorMsg:confirmPasswordIncorrectPassword;
+ inputLabel:confirmPasswordLabel;
+ buttonText:nextButtonText">
+ </gaia-input-form>
+ <paper-action-dialog class="footer" id="cancelConfirmDlg"
+ layered="false">
+ <p i18n-content="accountSetupCancelDialogTitle"></p>
+ <gaia-paper-button class="dialog-action-button" affirmative
+ autofocus i18n-content="accountSetupCancelDialogNo">
+ </gaia-paper-button>
+ <gaia-paper-button id="confirmCancel" on-tap="{{onConfirmCancel}}"
+ class="dialog-action-button" affirmative
+ i18n-content="accountSetupCancelDialogYes">
+ </gaia-paper-button>
+ </paper-action-dialog>
+ </gaia-card>
+ </section>
+ <section flex vertical layout center-justified>
+ <throbber-notice i18n-values="text:gaiaLoadingNewGaia" self-center>
+ </throbber-notice>
+ </section>
+ </core-animated-pages>
+ </template>
+</polymer-element>

Powered by Google App Engine
This is Rietveld 408576698