| OLD | NEW |
| 1 <!-- Copyright 2015 The Chromium Authors. All rights reserved. | 1 <!-- Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 Use of this source code is governed by a BSD-style license that can be | 2 Use of this source code is governed by a BSD-style license that can be |
| 3 found in the LICENSE file. --> | 3 found in the LICENSE file. --> |
| 4 | 4 |
| 5 <link rel="import" href="chrome://resources/cr_elements/shared_style_css.html"> |
| 6 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html
"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe
s/iron-flex-layout.html"> | 7 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe
s/iron-flex-layout.html"> |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/animatio
ns/slide-from-left-animation.html"> | 8 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/animatio
ns/slide-from-left-animation.html"> |
| 7 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/animatio
ns/slide-from-right-animation.html"> | 9 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/animatio
ns/slide-from-right-animation.html"> |
| 8 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/animatio
ns/slide-left-animation.html"> | 10 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/animatio
ns/slide-left-animation.html"> |
| 9 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/animatio
ns/slide-right-animation.html"> | 11 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/animatio
ns/slide-right-animation.html"> |
| 10 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani
matable.html"> | 12 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani
matable.html"> |
| 11 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani
mated-pages.html"> | 13 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani
mated-pages.html"> |
| 12 <link rel="import" href="chrome://resources/polymer/v1_0/paper-dialog/paper-dial
og.html"> | 14 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> |
| 13 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> | 15 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> |
| 14 | 16 |
| 15 <!-- | 17 <!-- |
| 16 Offline UI for the New Gaia flow. | 18 Offline UI for the New Gaia flow. |
| 17 Contains two cards with a slide transition between them: | 19 Contains two cards with a slide transition between them: |
| 18 1. Email input form. | 20 1. Email input form. |
| 19 2. Password input form. | 21 2. Password input form. |
| 20 | 22 |
| 21 Example: | 23 Example: |
| 22 <offline-gaia></offline-gaia> | 24 <offline-gaia></offline-gaia> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 38 'focus' - focuses current screen (email input or password input); | 40 'focus' - focuses current screen (email input or password input); |
| 39 'setEmail' - accepts an argument |email|. If |email| is empty it sets | 41 'setEmail' - accepts an argument |email|. If |email| is empty it sets |
| 40 current screen to the email input, otherwise it sets current | 42 current screen to the email input, otherwise it sets current |
| 41 screen to password input and shows error that previously | 43 screen to password input and shows error that previously |
| 42 entered password is incorrect. | 44 entered password is incorrect. |
| 43 --> | 45 --> |
| 44 <dom-module id="offline-gaia"> | 46 <dom-module id="offline-gaia"> |
| 45 <link rel="stylesheet" href="offline_gaia.css"> | 47 <link rel="stylesheet" href="offline_gaia.css"> |
| 46 | 48 |
| 47 <template> | 49 <template> |
| 50 <style include="cr-shared-style"></style> |
| 48 <neon-animated-pages id="animatedPages" class="fit" attr-for-selected="id" | 51 <neon-animated-pages id="animatedPages" class="fit" attr-for-selected="id" |
| 49 entry-animation="slide-from-right-animation" | 52 entry-animation="slide-from-right-animation" |
| 50 exit-animation="slide-to-left-animation" | 53 exit-animation="slide-to-left-animation" |
| 51 on-neon-animation-finish="onAnimationFinish_" selected="emailSection"> | 54 on-neon-animation-finish="onAnimationFinish_" selected="emailSection"> |
| 52 | 55 |
| 53 <neon-animatable id="emailSection" class="fit"> | 56 <neon-animatable id="emailSection" class="fit"> |
| 54 <gaia-card class="fit"> | 57 <gaia-card class="fit"> |
| 55 <div class="header flex vertical layout end-justified start"> | 58 <div class="header flex vertical layout end-justified start"> |
| 56 <h1 class="welcome-message" i18n-content="loginWelcomeMessage"></h1> | 59 <h1 class="welcome-message" i18n-content="loginWelcomeMessage"></h1> |
| 57 <p id="managedBy" class="enterprise-info" | 60 <p id="managedBy" class="enterprise-info" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 86 label:offlineLoginPassword"> | 89 label:offlineLoginPassword"> |
| 87 </gaia-input> | 90 </gaia-input> |
| 88 <gaia-button type="link" on-tap="onForgotPasswordClicked_" | 91 <gaia-button type="link" on-tap="onForgotPasswordClicked_" |
| 89 i18n-content="offlineLoginForgotPasswordBtn"> | 92 i18n-content="offlineLoginForgotPasswordBtn"> |
| 90 </gaia-button> | 93 </gaia-button> |
| 91 </gaia-input-form> | 94 </gaia-input-form> |
| 92 </gaia-card> | 95 </gaia-card> |
| 93 </neon-animatable> | 96 </neon-animatable> |
| 94 </neon-animated-pages> | 97 </neon-animated-pages> |
| 95 | 98 |
| 96 <paper-dialog id="forgotPasswordDlg" no-cancel-on-outside-click | 99 <dialog is="cr-dialog" id="forgotPasswordDlg" |
| 97 on-iron-overlay-closed="onDialogOverlayClosed_"> | 100 on-close="onDialogOverlayClosed_"> |
| 98 <p i18n-content="offlineLoginForgotPasswordDlg"></p> | 101 <div class="body" i18n-content="offlineLoginForgotPasswordDlg"></div> |
| 99 <div class="buttons"> | 102 <div class="button-container"> |
| 100 <gaia-button type="dialog" dialog-confirm autofocus | 103 <paper-button autofocus on-tap="onForgotPasswordCloseTap_" |
| 101 i18n-content="offlineLoginCloseBtn"> | 104 i18n-content="offlineLoginCloseBtn" class="action-button"> |
| 102 </gaia-button> | 105 </paper-button> |
| 103 </div> | 106 </div> |
| 104 </paper-dialog> | 107 </dialog> |
| 105 </template> | 108 </template> |
| 106 </dom-module> | 109 </dom-module> |
| OLD | NEW |